你们扫描 iOS 的规则是哪些
请问谁遇到过这个情况
018/07/16 20:40:06 INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000
2018/07/16 20:40:06 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.visualizers.SplineVisualizer
2018/07/16 20:40:14 ERROR - jmeter.gui.GuiPackage: Problem retrieving gui for org.apache.jmeter.protocol.java.control.gui.JavaTestSamplerGui java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.jmeter.protocol.java.config.gui.JavaConfigGui.actionPerformed(JavaConfigGui.java:169)
at javax.swing.JComboBox.fireActionEvent(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at org.apache.jmeter.protocol.java.config.gui.JavaConfigGui.clearGui(JavaConfigGui.java:278)
at org.apache.jmeter.protocol.java.control.gui.JavaTestSamplerGui.clearGui(JavaTestSamplerGui.java:97)
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:339)
at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:68)
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:62)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
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)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 27 more
2018/07/16 20:40:14 ERROR - jmeter.gui.GuiPackage: Problem retrieving gui for org.apache.jmeter.protocol.java.control.gui.JavaTestSamplerGui java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.jmeter.protocol.java.config.gui.JavaConfigGui.actionPerformed(JavaConfigGui.java:169)
at javax.swing.JComboBox.fireActionEvent(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at org.apache.jmeter.protocol.java.config.gui.JavaConfigGui.clearGui(JavaConfigGui.java:278)
at org.apache.jmeter.protocol.java.control.gui.JavaTestSamplerGui.clearGui(JavaTestSamplerGui.java:97)
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:339)
at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:68)
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:62)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
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)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 27 more
2018/07/16 20:40:20 ERROR - jmeter.gui.action.AddToTree: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:350)
at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:68)
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80)
at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:62)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
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)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.jmeter.protocol.java.config.gui.JavaConfigGui.actionPerformed(JavaConfigGui.java:169)
at javax.swing.JComboBox.fireActionEvent(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at org.apache.jmeter.protocol.java.config.gui.JavaConfigGui.clearGui(JavaConfigGui.java:278)
at org.apache.jmeter.protocol.java.control.gui.JavaTestSamplerGui.clearGui(JavaTestSamplerGui.java:97)
at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:339)
... 18 more
Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 27 more
安装第 8 步,创建 Java sample 时,提示找不到这个类
入门了,点赞
马克
jsonschem 这个方法好,我们公司也是用这个在做,但都是比较 json 键值返回的东西,data 里面的数据是动态的,没法真正的校验,jsonschem 就可以做到一些校验,给楼主点赞
围观住金桂苑的土豪。。。
// adding screenshots to log
test.fail("details", MediaEntityBuilder.createScreenCaptureFromPath("screenshot.png").build());
// or:
MediaModelProvider mediaModel = MediaEntityBuilder.createScreenCaptureFromPath("screenshot.png").build();
test.fail("details", mediaModel);
// adding screenshots to test
test.fail("details").addScreenCaptureFromPath("screenshot.png");