Forum Discussion
8 Replies
- nmrao
Champion Level 1
For the mentioned case, JsonPatMatch is fine.
$.accessToken should equal to the desired value.- mgroen2Super Contributor
nmrao wrote:
For the mentioned case, JsonPatMatch is fine.
$.accessToken should equal to the desired value.nmraoI entered this (see screenshot), but it's not working. as you can see there is an accesstoken in the response, but validating it gives an error (it thinks it should be false?). Do you have any tips?
- nmrao
Champion Level 1
If you want to retrieve the token, and use it for further requests, then Script Assertion can be used.
You may find some sample scripts below:
https://github.com/nmrao/soapUIGroovyScripts/tree/master/groovy