use of com.eviware.soapui.model.testsuite.TestStep 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;
}
use of com.eviware.soapui.model.testsuite.TestStep 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