Forum Discussion
nmrao
Champion Level 1
8 years agoI believe that you can do assertion using "Script Assertion".
For example:
assert context.response, 'Response is empty or null'
Simlarly you can do any assertion and followed by Reason for failure.
Use of "Script Assertion" make your test case one less test steps (as separate groovy script step is not added, instead adding script assertion to your request step itself).
For example:
assert context.response, 'Response is empty or null'
Simlarly you can do any assertion and followed by Reason for failure.
Use of "Script Assertion" make your test case one less test steps (as separate groovy script step is not added, instead adding script assertion to your request step itself).