HanTest
9 years agoOccasional Contributor
Get the status of a teststep that already has been executed
I want to get the status of a previously runned teststep in a groovyscript step.
How can this be done?
The step2 actually running the step1 as well to get the status.
When go thru the question again, looks you are interested only getting the status not actually running it.
So, another example for the same, but this wont run the previous step again.
import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep
import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStepResult
def step = context.testCase.testStepList[context.currentStepIndex - 1]
assert step instanceof WsdlTestStep
def result = new WsdlTestStepResult(step)
log.info result.status