Forum Discussion

HP-Plano-TX-Soa's avatar
HP-Plano-TX-Soa
Occasional Contributor
12 years ago
Solved

[Resolved] How to get the type of a testStep?

I have the following in a testCase teardown script: // Log the testCase name, status and all the testStep messages // testCaseName = testRunner.testCase.name log.info testCaseName if ( ...
  • HP-Plano-TX-Soa's avatar
    12 years ago
    Answered my own question:

    Have to get a handle to the testStep before I can get its Type:

    for ( testStepResult in testRunner.getResults() )
    {
    testStep = testStepResult.getTestStep()
    tstype = testStep.config.type