JMeter打开Badboy生成的jmx文件出错 error in testplan 收藏
刚使用badboy录制了一个简单的操作,使用badboy的“Export to JMeter”,生成jmx文件,使用jmeter打开,却报错:
日志显示:
- 2010/09/19 10:40:37 INFO - jmeter.gui.action.Load: Loading file: E:\sofeware testing\test tools\JMeter+Badboy\Examples\Script.jmx
- 2010/09/19 10:40:37 INFO - jmeter.services.FileServer: Set new base=E:\sofeware testing\test tools\JMeter+Badboy\Examples
- 2010/09/19 10:40:37 WARN - jmeter.save.SaveService: Problem loading XML: node : node
- 2010/09/19 10:40:37 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 与 jmeter版本不支持
解决办法:
1. 降低jmeter版本
2.获取最新badboy 版本。官方下载地址:http://www.badboy.com.au/download/
我的使用组合是: badboy:2.1.1 Beta 1
jmeter:2.4