2017-07-19 56 views
0

我通過將selenium腳本導出到jar文件並將其放入%Jmeter_Home%/ lib/junit文件夾但是當我嘗試執行這些腳本時將所有硒腳本與Jmeter集成在JMeter中使用JUnit請求採樣它顯示錯誤:使用JUnit請求取樣器運行Jmeter時使用Jmeter運行Selenium腳本的錯誤

2017-07-19 18:34:55,433 INFO o.a.j.e.StandardJMeterEngine: Running the test! 
2017-07-19 18:34:55,433 INFO o.a.j.s.SampleEvent: List of sample_variables: [] 
2017-07-19 18:34:55,435 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*) 
2017-07-19 18:34:55,637 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 
2017-07-19 18:34:55,637 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group Thread Group. 
2017-07-19 18:34:55,637 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error 
2017-07-19 18:34:55,637 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 perThread=1000.0 delayedStart=false 
2017-07-19 18:34:55,638 INFO o.a.j.t.ThreadGroup: Started thread group number 1 
2017-07-19 18:34:55,638 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started 
2017-07-19 18:34:55,640 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1 
2017-07-19 18:34:55,640 INFO o.a.j.p.j.s.JUnitSampler: Trying to find constructor with one String parameter returned error: Test_Scripts.testLogIn.<init>(java.lang.String) 
2017-07-19 18:34:55,643 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1 
2017-07-19 18:34:55,643 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1 
2017-07-19 18:34:55,643 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test 
2017-07-19 18:34:55,643 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*) 

回答