Westpac_Banking
12 years agoOccasional Contributor
Getting the status of TestSteps using Groovy
Hi Team,
I wanted to log the Teststep name, RawRequest, Response, Status for each iteration to an excel file.
I stuck up in getting the status of my teststep.
Below is my test steps.
In the groovy script I have the below code.
def soapuiRequests = testRunner.testCase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep )
soapuiRequests.each
{
def Response = context.testCase.getTestStepByName(it.name).getProperty("response").value);
def Request = context.testCase.getTestStepByName(it.name).getProperty("RawRequest").value);
def Status =
? I want to get the Execution Status of the testStep
}
Can you please help me how to get the testStep execution status here.
Cheers,
Udhaya
I wanted to log the Teststep name, RawRequest, Response, Status for each iteration to an excel file.
I stuck up in getting the status of my teststep.
Below is my test steps.
In the groovy script I have the below code.
def soapuiRequests = testRunner.testCase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep )
soapuiRequests.each
{
def Response = context.testCase.getTestStepByName(it.name).getProperty("response").value);
def Request = context.testCase.getTestStepByName(it.name).getProperty("RawRequest").value);
def Status =

}
Can you please help me how to get the testStep execution status here.
Cheers,
Udhaya