Forum Discussion

Deloitte_Consul's avatar
Deloitte_Consul
Contributor
11 years ago

getTestStepsOfType() method is not working for rest request

Hi All,

We are trying to capture request and response of failed test step in an excel file. we tried below code to get list of steps of type restRequest but nothing is printed in the log.

def testSteps= tc.getTestStepsOfType(com.eviware.soapui.impl.rest.RestRequest.class);
testSteps.each(){
log.info testSteps.getName()
}

Any help will be appreciated.

Regards
Deepak Rawat