Forum Discussion

krogold's avatar
krogold
Regular Contributor
7 years ago

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...
  • Lucian's avatar
    7 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: