0
votes

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?

1
This isn't code/script, what are you trying to do?user7294900
This code is about magento performance toolkit ,which is similar to gitlab.informatika.org/KIII-12/Magento/blob/… I am writing some code in which payment/shipping info is added and which will allow me to place a order without token as the bearer token comes from braintree which doesn't allow to access the token. So as an alternative,this code is required which is also giving me "unexpected token" for the first line mentioned in previous post.Manav Chopra

1 Answers

0
votes

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.