You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are creating the selenium like script in JMeter and we are using web driver sampler
We have used only 1 time the sampleStart and sampleEnd methods in the sampler and on replay we notice the error stating sampleStart called twice is misleading.
Version of various Technology stack related to JMeter used in the exercise :
Error stack trace:
ERROR o.a.j.s.SampleResult:sampleStart called twice
java.lang.Throwable: Invalid call sequence
at org.apache.jmeter.samplers.SampleResult.sampleStart(SampleResult.java:1186) [ApacheJMeter_core.jar:5.6.3]
at org.apache.jmeter.samplers.SampleResult$sampleStart.call(Unknown Source) [ApacheJMeter_core.jar:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)[groovy-3.0.20.jar:3.0.20]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)[groovy-3.0.20.jar:3.0.20]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)[groovy-3.0.20.jar:3.0.20]
at Script1.run(Script1.groovy:4)[Script:?]
Steps to reproduce the problem
Version of various Technology stack related to JMeter used in the excercise :
Provide the path of the chrome driver in the Path section of the chrome driver config element
Add the Web driver sampler
Created the selenium like request to launch the URL enclosed between WDS.SampleResult.sampleStart() and WDS.SampleResult.sampleEnd()
Clicked the Run button
Expected output:
Script should launch the Url and should not throw error sampleStart called twice
Actual output:
Script execution launched the Url but also displayed below error in the logs:
Error stack trace:
ERROR o.a.j.s.SampleResult:sampleStart called twice
java.lang.Throwable: Invalid call sequence
at org.apache.jmeter.samplers.SampleResult.sampleStart(SampleResult.java:1186) [ApacheJMeter_core.jar:5.6.3]
at org.apache.jmeter.samplers.SampleResult$sampleStart.call(Unknown Source) [ApacheJMeter_core.jar:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)[groovy-3.0.20.jar:3.0.20]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)[groovy-3.0.20.jar:3.0.20]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)[groovy-3.0.20.jar:3.0.20]
at Script1.run(Script1.groovy:4)[Script:?]
JMeter Version
5.6.3
Java Version
JDK17
OS Version
Microsoft Windows
The text was updated successfully, but these errors were encountered:
Note :
Today we downgraded the version of selenium webdriver from 4.13.0.2 to 4.13.0.0 version and tested the scenario and found issue was not occuring so it appears like issue is introduced after 4.13.0.0 version
Expected behavior
We expect the script to run without the error
Actual behavior
We are creating the selenium like script in JMeter and we are using web driver sampler
We have used only 1 time the sampleStart and sampleEnd methods in the sampler and on replay we notice the error stating sampleStart called twice is misleading.
Version of various Technology stack related to JMeter used in the exercise :
Error stack trace:
ERROR o.a.j.s.SampleResult:sampleStart called twice
java.lang.Throwable: Invalid call sequence
at org.apache.jmeter.samplers.SampleResult.sampleStart(SampleResult.java:1186) [ApacheJMeter_core.jar:5.6.3]
at org.apache.jmeter.samplers.SampleResult$sampleStart.call(Unknown Source) [ApacheJMeter_core.jar:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)[groovy-3.0.20.jar:3.0.20]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)[groovy-3.0.20.jar:3.0.20]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)[groovy-3.0.20.jar:3.0.20]
at Script1.run(Script1.groovy:4)[Script:?]
Steps to reproduce the problem
Version of various Technology stack related to JMeter used in the excercise :
Steps:
Expected output:
Script should launch the Url and should not throw error sampleStart called twice
Actual output:
Script execution launched the Url but also displayed below error in the logs:
Error stack trace:
ERROR o.a.j.s.SampleResult:sampleStart called twice
java.lang.Throwable: Invalid call sequence
at org.apache.jmeter.samplers.SampleResult.sampleStart(SampleResult.java:1186) [ApacheJMeter_core.jar:5.6.3]
at org.apache.jmeter.samplers.SampleResult$sampleStart.call(Unknown Source) [ApacheJMeter_core.jar:?]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)[groovy-3.0.20.jar:3.0.20]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)[groovy-3.0.20.jar:3.0.20]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)[groovy-3.0.20.jar:3.0.20]
at Script1.run(Script1.groovy:4)[Script:?]
JMeter Version
5.6.3
Java Version
JDK17
OS Version
Microsoft Windows
The text was updated successfully, but these errors were encountered: