Problem in JSR223 script, Provider processor javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: org.apache.jmeter.threads.JMeterVariables.put() is applicable for argument types: (java.lang.String, java.util.regex.Matcher) values: [callbackUri, java.util.regex.Matcher[pattern=(?<=callbackUri=).*(?=&) region=0,537 lastmatch=]] Possible solutions: put(java.lang.String, java.lang.String), get(java.lang.String), putAt(java.lang.String, java.lang.Object), wait(), dump(), any()
Error in groovy code. The error goes like this "Script144.run(Script144.groovy:2) ~[?:?]"
Trying to fetch a value in from the response of previous GET request.
def redirect = prev.getRedirectLocation()
def redirectQuery = new URI(redirect).query
def callbackUriMatch = (redirectQuery =~ /(?<=callbackUri=).*(?
=&)/)[0]
vars.put("callbackUri", callbackUriMatch)
The callbackUri is supposed to fetch the value from the previous call. But it is failing to do so.