51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 5436|回复: 3
打印 上一主题 下一主题

求助: JMeter打开Badboy生成的jmx文件出错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2010-8-24 20:52:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
各位高手牛人冒个泡.
小弟刚开始用JMeter,菜鸟一枚.用Badboy录制脚本,Export to JMeter.
用JMeter打开刚才录制的文件,弹出错误框,错误如下


查看log文件,错误显示如下
2010/08/24 20:32:07 INFO  - jmeter.util.JMeterUtils: Setting Locale to zh_CN
2010/08/24 20:32:07 INFO  - jmeter.JMeter: Loading user properties from: E:\Performance\jakarta-jmeter-2.4\bin\user.properties
2010/08/24 20:32:07 INFO  - jmeter.JMeter: Loading system properties from: E:\Performance\jakarta-jmeter-2.4\bin\system.properties
2010/08/24 20:32:07 INFO  - jmeter.JMeter: Copyright (c) 1998-2010 The Apache Software Foundation
2010/08/24 20:32:07 INFO  - jmeter.JMeter: Version 2.4 r961953
2010/08/24 20:32:07 INFO  - jmeter.JMeter: java.version=1.7.0-ea
2010/08/24 20:32:07 INFO  - jmeter.JMeter: java.vm.name=Java HotSpot(TM) Client VM
2010/08/24 20:32:07 INFO  - jmeter.JMeter: os.name=Windows XP
2010/08/24 20:32:07 INFO  - jmeter.JMeter: os.arch=x86
2010/08/24 20:32:07 INFO  - jmeter.JMeter: os.version=5.1
2010/08/24 20:32:07 INFO  - jmeter.JMeter: file.encoding=GBK
2010/08/24 20:32:07 INFO  - jmeter.JMeter: Default Locale=中文 (中国)
2010/08/24 20:32:07 INFO  - jmeter.JMeter: JMeter  Locale=中文 (中国)
2010/08/24 20:32:07 INFO  - jmeter.JMeter: JMeterHome=E:\Performance\jakarta-jmeter-2.4
2010/08/24 20:32:07 INFO  - jmeter.JMeter: user.dir  =E:\Performance\jakarta-jmeter-2.4\bin
2010/08/24 20:32:07 INFO  - jmeter.JMeter: PWD       =E:\Performance\jakarta-jmeter-2.4\bin
2010/08/24 20:32:07 INFO  - jmeter.JMeter: IP: 192.168.1.100 Name: xiwei FullName: xiwei
2010/08/24 20:32:07 INFO  - jmeter.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties
2010/08/24 20:32:08 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.'
2010/08/24 20:32:08 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.'
2010/08/24 20:32:08 INFO  - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22
2010/08/24 20:32:08 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default
2010/08/24 20:32:08 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is  
2010/08/24 20:32:08 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is  
2010/08/24 20:32:08 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is  
2010/08/24 20:32:08 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is  
2010/08/24 20:32:08 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2010/08/24 20:32:09 INFO  - jmeter.protocol.http.sampler.HTTPSampler: Maximum connection retries = 10
2010/08/24 20:32:09 INFO  - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times
2010/08/24 20:32:09 INFO  - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2010/08/24 20:32:20 INFO  - jmeter.services.FileServer: Default base=E:\Performance\jakarta-jmeter-2.4\bin
2010/08/24 20:32:20 INFO  - jmeter.gui.action.Load: Loading file: E:\Performance\JMeterProject\baidu_login.jmx
2010/08/24 20:32:20 INFO  - jmeter.services.FileServer: Set new base=E:\Performance\JMeterProject
2010/08/24 20:32:20 INFO  - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
2010/08/24 20:32:20 INFO  - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8
2010/08/24 20:32:20 INFO  - jmeter.save.SaveService: Using SaveService properties file version 959116
2010/08/24 20:32:20 INFO  - jmeter.save.SaveService: Using SaveService properties version 2.1
2010/08/24 20:32:20 INFO  - jmeter.save.SaveService: All converter versions present and correct
2010/08/24 20:32:20 WARN  - jmeter.save.SaveService: Problem loading XML: node : node
2010/08/24 20:32:20 WARN  - jmeter.gui.action.Load: Unexpected error java.lang.Exception: Error in TestPlan - see log file
        at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:153)
        at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:108)
        at org.apache.jmeter.gui.action.Load.doAction(Load.java:89)
        at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:82)
        at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42)
        at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:61)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


2010/08/24 20:32:43 INFO  - jmeter.gui.action.Load: Loading file: E:\Performance\JMeterProject\baidu_login.jmx
2010/08/24 20:32:43 INFO  - jmeter.services.FileServer: Set new base=E:\Performance\JMeterProject
2010/08/24 20:32:43 WARN  - jmeter.save.SaveService: Problem loading XML: node : node
2010/08/24 20:32:43 WARN  - jmeter.gui.action.Load: Unexpected error java.lang.Exception: Error in TestPlan - see log file
        at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:153)
        at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:108)
        at org.apache.jmeter.gui.action.Load.doAction(Load.java:89)
        at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:82)
        at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42)
        at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:61)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


用Badboy录制并导出的jmx文件如下


各位高手牛人帮忙分析下问题出在哪里,我的环境配置有问题还是其他,整了一个晚上没闹明白,多谢各位..Thx..

[ 本帖最后由 oneinhslcn 于 2010-8-25 13:49 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2010-8-30 14:30:08 | 只看该作者
已解决..
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2010-10-18 16:34:56 | 只看该作者
谢谢楼主我也是遇到同样的问题  我回头试下  等下告诉你结果
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2010-11-4 23:19:00 | 只看该作者
just to let everyone know that this issue is now fixed in the Badboy 2.1.1 beta release that is now available for download
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-23 02:21 , Processed in 0.069975 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表