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