Srikanthkldia opened a new issue, #6380:
URL: https://github.com/apache/jmeter/issues/6380

   ### 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 :
   1. JMETER :: apache-jmeter-5.6.3
   2. Chrome Driver :: chromedriver-131.0.6778.69(r1368529)
   3. JMeter Plugin Manager :: jmeter-plugins-manager-1.10
   
   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 :
   1. JMETER :: apache-jmeter-5.6.3
   2. Chrome Driver :: chromedriver-131.0.6778.69(r1368529)
   3. JMeter Plugin Manager :: jmeter-plugins-manager-1.10
   
   Steps:
   1. Add the chrome driver config element
   2. Provide the path of the chrome driver in the Path section of the chrome 
driver config element
   3. Add the Web driver sampler
   4. Created the selenium like request to launch the URL enclosed between 
WDS.SampleResult.sampleStart() and WDS.SampleResult.sampleEnd()
   5. 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to