Reputation: 21
While running the below code in JSR223 SAMPLER, i am getting this error Response code:500 Response message:javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script989.groovy: 1: unexpected token: < @ line 1, column 1. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy"
The code starts like this:
< HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Checkout Payment Info/Place Order${__property(activeAdminThread)}(${testLabel})" enabled="true"> < boolProp name="HTTPSampler.postBodyRaw">true
Error appearing for the very first line itself..what wrong in it ,plz help?
Upvotes: 0
Views: 338
Reputation: 1
To solve the above issue you have to upgrade your JDK and JRE. Download the JDK and JRE and setup the Environment variable path JAVA_HOME - JDK/bin path - JRE/bin
Upvotes: 0
Reputation: 168197
This is not a valid Groovy code, it seems to be a part of JMeter .jmx test plan (pure XML file)
This HTTPSamplerProxy
is what's being used under the hood of the normal HTTP Request sampler so I would recommend going to where did you get this code, downloading it adding .jmx extension and opening it in JMeter GUI.
Upvotes: 0