Forum Discussion
3 Replies
Sort By
- nmraoChampion Level 3Not sure what assertion you are using.
If the response value needs to be compared against the request value, then it is absolutely possible using Script Assertion.
The request, and response can be read in Script Assertion using below statements respectively
log.info context.request
log.info context.response
Based on the data type, parse it and extract the required chunk of data from request and response, then compare.
Hope this helps.- PaulMSSuper Contributor
I think it is easier to transfer data from the request to a property that can be used in the assertion.
You could have 2 property transfers for address line 1 and line 2 if separate fields in the request.
Related Content
- 2 years agoTaz