krogold
8 years agoRegular Contributor
Groovy assert called test step's result
  Hello,     I have a problem with groovy scripts when I call a testStep. I proceed as follows :     def TC; 
def async = false
TC = testRunner.testCase.testSuite.project.getTestSuiteByName(testSuite...
- 8 years ago
Hi,
You can parse the result status as a String and then compare it like:
assert String.valueOf( result.status ).equals("PASS")Cheers! :smileyvery-happy: