I want to code Java classes to make load testing using jmeter
APIs. I have tried many things without a result and this don't work for me.
Asked
Active
Viewed 799 times
0

Community
- 1
- 1

Ashraf Jabnoun
- 21
- 6
-
1it is good provide the code snipped or exception your getting that will help to understand/resolve the issue. – Uttesh Kumar Apr 10 '15 at 12:26
-
i want to start a JMeter test purely in Java i used what is shown here: http://blazemeter.com/blog/5-ways-launch-jmeter-test-without-using-jmeter-gui but it does not work – Ashraf Jabnoun Apr 10 '15 at 13:32
-
here is the output: WARN 2015-04-10 14:22:59.358 [jmeter.u] (): Unexpected value set for boolean property:'server.exitaftertest', defaulting to:false WARN 2015-04-10 14:22:59.378 [jmeter.u] (): Unexpected value set for boolean property:'jmeterengine.startlistenerslater', defaulting to:true INFO 2015-04-10 14:22:59.378 [jmeter.e] (): Listeners will be started after enabling running version – Ashraf Jabnoun Apr 10 '15 at 13:33
-
INFO 2015-04-10 14:22:59.378 [jmeter.e] (): To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false WARN 2015-04-10 14:22:59.378 [jmeter.u] (): Unexpected value set for boolean property:'jmeterengine.remote.system.exit', defaulting to:false WARN 2015-04-10 14:22:59.378 [jmeter.u] (): Unexpected value set for boolean property:'jmeterengine.stopfail.system.exit', defaulting to:true WARN 2015-04-10 14:22:59.378 [jmeter.u] (): Unexpected value set for boolean property:'jmeterengine.force.system.exit', defaulting to:false – Ashraf Jabnoun Apr 10 '15 at 13:33
-
Exception in thread "main" java.lang.NoClassDefFoundError: com/thoughtworks/xstream/converters/ConversionException at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:450) at jmeter.JMeterFromScratch.main(JMeterFromScratch.java:57) Caused by: java.lang.ClassNotFoundException: com.thoughtworks.xstream.converters.ConversionException at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 2 more – Ashraf Jabnoun Apr 10 '15 at 13:33
-
look like its missing xstream-xx.jar file in classpath, check all required jar files are there in classpath. – Uttesh Kumar Apr 10 '15 at 14:18
-
Can you provide an example for using jmeter APIs for load test? – Ashraf Jabnoun Apr 10 '15 at 15:38
-
you are looking for load testing by jmter ui or by implementing jmter API?, there two approachs one u can write/record the jmter script by using the jmeter ui http://www.tutorialspoint.com/jmeter/, other by implementation by jmeter API. – Uttesh Kumar Apr 10 '15 at 17:13
-
yes i look for implementation by jmeter API could you help me to do it ? – Ashraf Jabnoun Apr 11 '15 at 12:48