Forum Discussion

Kotaibaw's avatar
Kotaibaw
Occasional Contributor
7 years ago

how to check now test Case status?? if its field or not.

hi how to check if testCase from testSuite.testCaseList  if failed or not

 

import groovy.*

def testCaseList = testRunner.testCase.testSuite.getTestCaseList()

for(testCase in testCaseList)
{
??????????????

how to check if testCase from testSuite.testCaseList  if failed or not
}

1 Reply

  • sanj's avatar
    sanj
    Super Contributor

    there is no API call to check test case status

    you can only check test runner status via api call.

    so prob you need to keep track of tests that have failed via the runner!