use of com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep in project microcks by microcks.
the class SoapUIProjectImporter method collectRestTestRequests.
/**
* Collect and filter by operation all the WsldTestrequest from the current project.
*/
private Map<String, RestTestRequest> collectRestTestRequests(Operation operation) {
Map<String, RestTestRequest> result = new HashMap<String, RestTestRequest>();
for (TestSuite testsuite : project.getTestSuiteList()) {
for (TestCase testcase : testsuite.getTestCaseList()) {
for (TestStep teststep : testcase.getTestStepList()) {
if (teststep instanceof RestTestRequestStep) {
RestTestRequestStep rs = (RestTestRequestStep) teststep;
RestTestRequest rr = rs.getTestRequest();
if (rs.getResourcePath().equals(operation.getName())) {
result.put(rr.getName(), rr);
}
}
}
}
}
return result;
}
Aggregations