Performance testing on Selenium script using JMeter-Junit -
i had selenium-webdriver script me, , wanted perform load testing on script using jmeter. have done is, 1) have exported selenium script jmeter/lib/junit folder. 2) configured jmeter junit , marked run.
but, receiving following error in sample request :
thread name: thread group 1-1 sample start: 2015-04-29 14:48:38 ist load time: 17190 latency: 0 size in bytes: 0 headers size in bytes: 0 body size in bytes: 0 sample count: 1 error count: 1 response code: 1000
and log viewer :
2015/04/29 14:48:38 info - jmeter.engine.standardjmeterengine: running test! 2015/04/29 14:48:38 info - jmeter.samplers.sampleevent: list of sample_variables: [] 2015/04/29 14:48:38 info - jmeter.samplers.sampleevent: list of sample_variables: [] 2015/04/29 14:48:38 info - jmeter.gui.util.jmetermenubar: setrunning(true,local) 2015/04/29 14:48:38 info - jmeter.engine.standardjmeterengine: starting threadgroup: 1 : thread group 2015/04/29 14:48:38 info - jmeter.engine.standardjmeterengine: starting 1 threads group thread group. 2015/04/29 14:48:38 info - jmeter.engine.standardjmeterengine: thread continue on error 2015/04/29 14:48:38 info - jmeter.threads.threadgroup: starting thread group number 1 threads 1 ramp-up 1 perthread 1000.0 delayedstart=false 2015/04/29 14:48:38 info - jmeter.threads.jmeterthread: jmeterthread.startearlier=true (see jmeter.properties) 2015/04/29 14:48:38 info - jmeter.threads.jmeterthread: running postprocessors in forward order 2015/04/29 14:48:38 info - jmeter.threads.threadgroup: started thread group number 1 2015/04/29 14:48:38 info - jmeter.engine.standardjmeterengine: thread groups have been started 2015/04/29 14:48:38 info - jmeter.threads.jmeterthread: thread started: thread group 1-1 2015/04/29 14:48:38 info - jmeter.protocol.java.sampler.junitsampler: trying find constructor 1 string parameter returned error: jmetersmaple.(java.lang.string) 2015/04/29 14:48:55 info - jmeter.threads.jmeterthread: thread done: thread group 1-1 2015/04/29 14:48:55 info - jmeter.threads.jmeterthread: thread finished: thread group 1-1 2015/04/29 14:48:55 info - jmeter.engine.standardjmeterengine: notifying test listeners of end of test 2015/04/29 14:48:55 info - jmeter.gui.util.jmetermenubar: setrunning(false,local)
can please solve this.
it seems haven't selected test class , method combination. expectation you're running test.afterannotatedtest -> aftertest
method.
- make sure restart jmeter after dropping junit tests .jar file(s) /lib/junit folder
- make sure add dependent jars jmeter classpath well.
- make sure "search junit 4 annonations" box corresponds junit version
- make sure test class , method(s) available in dropdowns jmeter provides number of pre-defined junit tests reference.
- see how use junit jmeter guide more information on junit/jmeter integration.
Comments
Post a Comment