Magento performance toolkit的Github链接包含Magento Enterprise版本1.12到1.14的文件夹。我也将其下载为Jmeter plugins Extras Set,然后尝试从1.14文件夹加载benchmark.jmx。它在加载时在日志文件中给出了各种错误。如何减少这些错误以查看更多测试计划?我想用它作为模板来开发我自己的Magento 1.9测试脚本。
2016/01/31 23:42:55 WARN - jmeter.gui.util.MenuFactory:缺少jar?无法创建kg.apc.jmeter.vizualizers.MergeResultsGui。 java.lang.NoClassDefFoundError:org / jmeterplugins / save / MergeResultsService 2016/01/31 23:42:55 INFO - jmeter.util.BSFTestElement:将JMeter版本的JavaScript引擎注册为BSF-22的工作轮
2016/01/31 23:42:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase:使用默认值找不到htmlParser的.className属性
2016/01/31 23:42:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase:text / html的解析器是
2016/01/31 23:42:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase:application / xhtml + xml的解析器是
2016/01/31 23:42:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase:application / xml的解析器是
2016/01/31 23:42:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase:text / xml的解析器是
2016/01/31 23:42:55 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase:text / vnd.wap.wml的解析器是org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2016/01/31 23:42:55 INFO - jmeter.gui.util.MenuFactory:正在跳过org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui
2016/01/31 23:42:55 INFO - jmeter.gui.util.MenuFactory:正在跳过org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
2016/01/31 23:42:56 INFO - jorphan.exec.KeyToolUtils:keytool位于' C:\ Program Files \ Java \ jre1.8.0_71 \ bin \ keytool'
2016/01/31 23:42:56 INFO - jmeter.protocol.http.proxy.ProxyControl:HTTP(S)测试脚本记录器SSL代理将使用支持文件F:\ Tools \中嵌入的第三方资源的密钥apache-jmeter-2.13 \ bin \ proxyserver.jks
2016/01/31 23:42:56 INFO - jmeter.samplers.SampleResult:注意:TimeStamps示例是START时间
2016/01/31 23:42:56 INFO - jmeter.samplers.SampleResult:sampleresult.default.encoding设置为ISO-8859-1
2016/01/31 23:42:56 INFO - jmeter.samplers.SampleResult:sampleresult.useNanoTime = true
2016/01/31 23:42:56 INFO - jmeter.samplers.SampleResult:sampleresult.nanoThreadSleep = 5000
2016/01/31 23:43:16 INFO - jmeter.services.FileServer:默认基数=' F:\ Tools \ apache-jmeter-2.13'
2016/01/31 23:43:16 INFO - jmeter.gui.action.Load:加载文件:E:\ TestFolder \ Tools \ magento-performance-toolkit-master \ 1.14 \ benchmark.mym
2016/01/31 23:43:16 INFO - jmeter.services.FileServer:设置新的基数=' E:\ TestFolder \ Tools \ magento-performance-toolkit-master \ 1.14'
2016/01/31 23:43:16 INFO - jmeter.save.SaveService:Testplan(JMX)版本:2.2。 Testlog(JTL)版本:2.2
2016/01/31 23:43:16 INFO - jmeter.save.SaveService:使用SaveService属性文件编码UTF-8
2016/01/31 23:43:16 INFO - jmeter.save.SaveService:使用SaveService属性文件版本1656252
2016/01/31 23:43:16 INFO - jmeter.save.SaveService:使用SaveService属性2.8版
2016/01/31 23:43:16 INFO - jmeter.save.SaveService:所有转换器版本都存在且正确
2016/01/31 23:43:16 INFO - jmeter.save.SaveService:加载文件:E:\ TestFolder \ Tools \ magento-performance-toolkit-master \ 1.14 \ benchmark.mym
2016/01/31 23:43:16 INFO - jmeter.protocol.http.control.CookieManager:设置:删除null:true检查:true允许变量:true保存:false前缀:COOKIE_
2016/01/31 23:43:17错误 - jmeter.gui.GuiPackage:无法获取kg.apc.jmeter.vizualizers.CorrectedResultCollector@5fdf156b的GUI.java.lang.ClassNotFoundException:kg.apc.jmeter.vizualizers .ThreadsStateOverTimeGui at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) 在org.apache.jmeter.gui.GuiPackage.getGui(GuiPackage.java:212) at org.apache.jmeter.gui.tree.JMeterTreeModel.addComponent(JMeterTreeModel.java:153) 在org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:129) 在org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:121) 在org.apache.jmeter.gui.GuiPackage.addSubTree(GuiPackage.java:495) 在org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:193) 在org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:131) 在org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:102) 在org.apache.jmeter.gui.action.Load.doAction(Load.java:89) 在org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81) 在org.apache.jmeter.gui.action.ActionRouter.access $ 000(ActionRouter.java:40) at org.apache.jmeter.gui.action.ActionRouter $ 1.run(ActionRouter.java:63) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) 在java.awt.EventQueue.access $ 500(未知来源) 在java.awt.EventQueue $ 3.run(未知来源) 在java.awt.EventQueue $ 3.run(未知来源) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(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) 在java.awt.EventDispatchThread.run(未知来源)
2016/01/31 23:43:17 WARN - jmeter.gui.action.Load:意外错误java.lang.NullPointerException 在org.apache.jmeter.gui.tree.JMeterTreeModel.addComponent(JMeterTreeModel.java:154) 在org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:129) 在org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:121) 在org.apache.jmeter.gui.GuiPackage.addSubTree(GuiPackage.java:495) 在org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:193) 在org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:131) 在org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:102) 在org.apache.jmeter.gui.action.Load.doAction(Load.java:89) 在org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81) 在org.apache.jmeter.gui.action.ActionRouter.access $ 000(ActionRouter.java:40) at org.apache.jmeter.gui.action.ActionRouter $ 1.run(ActionRouter.java:63) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) 在java.awt.EventQueue.access $ 500(未知来源) 在java.awt.EventQueue $ 3.run(未知来源) 在java.awt.EventQueue $ 3.run(未知来源) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(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) 在java.awt.EventDispatchThread.run(未知来源)
答案 0 :(得分:2)
令人尴尬,但我必须接受它。除了Jmeter Plugins Standard set之外,我还应该安装Jmeter Plugins Extra Set。安装这两个集都设法解决了这个问题,加载时日志中没有错误。