I am new to jmeter. I want to loop an api based on a condition. In the while controller I added the script as ${__javaScript("${response}"=="Please, wait while your order is being processed.")}
I added the http request sampler under this controller. The response I am getting from this request is
{"resp":"Please, wait while your order is being processed."}
I want to hit this api until I get this value in response.
I used regular expression extractor and provided the expression as "resp": "(.+?)" . But I am not getting this result and my loop is running continuosly. Please help