Solved
Forum Discussion
nmrao
7 years agoChampion Level 2
Oct21,
The above script was provided to you as Script assertion for the Request test step, and that is not (does not work) if you use it in Groovy Script test step.
Can you confirm if you are using the above code in Script Assertion?
The above script was provided to you as Script assertion for the Request test step, and that is not (does not work) if you use it in Groovy Script test step.
Can you confirm if you are using the above code in Script Assertion?
Oct21
7 years agoOccasional Contributor
The script provided earlier was also used as a groovy test step, and the script am using now is also as a groovy test step.
You can check the screenshot i sent.
- nmrao7 years agoChampion Level 2If you read the post again, it clearly says Scipt Assertion (for the same step where you get the response). No additional step. Please correct it and try again.
- Oct217 years agoOccasional Contributor
I tried to use the script as script assertion to the request where i am getting the response. But i am getting the same error.
Not sure what has changed, it is parsing the values but not able to pick the one which is described.
And the past script i used as a groovy script and worked perfectly.
Could please check and help me again. Check the screenshot.
Thanks again.
Regards,
Oct21
Related Content
Recent Discussions
- 11 hours ago