coexmatrix
15 years agoOccasional Contributor
testStep status issue
Hello,
I have test cases with multiple test steps. The last test step in all of these test case is a groovy script.
I am attempting to obtain the string value (OK, Fail etc...) for the status of a specific testStep contained within the testCase. I have used the following:
def status = String.valueOf( testRunner.results.status )
but of course that returns the status of all test steps within the test case
So ive made many modifications and have been using several different variations of this:
def status = String.valueOf( testRunner.testCase.testSteps["TESTSTEPNAME"].testRequest.response.status )
but I always receive either an error or the results of all the steps.
Please Help.
Thank You.
I have test cases with multiple test steps. The last test step in all of these test case is a groovy script.
I am attempting to obtain the string value (OK, Fail etc...) for the status of a specific testStep contained within the testCase. I have used the following:
def status = String.valueOf( testRunner.results.status )
but of course that returns the status of all test steps within the test case
So ive made many modifications and have been using several different variations of this:
def status = String.valueOf( testRunner.testCase.testSteps["TESTSTEPNAME"].testRequest.response.status )
but I always receive either an error or the results of all the steps.
Please Help.
Thank You.