Donovan
11 years agoOccasional Contributor
Test Step Status
Hello Bears,
I keep reviewing all forum topics and I can't find the appropriate solution. I have a groovy script that gets the list of soap test steps and then saves a file to a given location.
When looping thru my list of test steps I would also like to grab the status of the test step and place it in front of the file name.
Please help
def soapuiRequests = testRunner.testCase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep )
def startTime = new Date();
def cur_Time = startTime.getMonth() + "_" + startTime.getDate();
cur_Time = cur_Time + "_" + startTime.getHours() + startTime.getMinutes() +startTime.getSeconds()
def fileName = it.name + "_" + cur_Time
def stepStatus ..........................
I only found the following .....
getLastStatus( stepName )
I keep reviewing all forum topics and I can't find the appropriate solution. I have a groovy script that gets the list of soap test steps and then saves a file to a given location.
When looping thru my list of test steps I would also like to grab the status of the test step and place it in front of the file name.
Please help
def soapuiRequests = testRunner.testCase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep )
def startTime = new Date();
def cur_Time = startTime.getMonth() + "_" + startTime.getDate();
cur_Time = cur_Time + "_" + startTime.getHours() + startTime.getMinutes() +startTime.getSeconds()
def fileName = it.name + "_" + cur_Time
def stepStatus ..........................
I only found the following .....
getLastStatus( stepName )