Forum Discussion
- RadfordSuper Contributor
The WsdlTestCaseRunner object has a fail method, this can be accessed via the context variable:
context.getTestRunner().fail("Insert reason here.")
- nmrao
Champion Level 2
I 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).