testRequestConfig.setEndpoint(endpoints[0]);
}
testRequestConfig.addNewRequest().setStringValue(requestContent);
if (values.getBoolean(ADD_SOAP_RESPONSE_ASSERTION)) {
TestAssertionConfig assertionConfig = testRequestConfig.addNewAssertion();
assertionConfig.setType(SoapResponseAssertion.ID);
}
if (values.getBoolean(ADD_SCHEMA_ASSERTION)) {
TestAssertionConfig assertionConfig = testRequestConfig.addNewAssertion();
assertionConfig.setType(SchemaComplianceAssertion.ID);
}
if (values.getBoolean(ADD_SOAP_FAULT_ASSERTION)) {
TestAssertionConfig assertionConfig = testRequestConfig.addNewAssertion();
assertionConfig.setType(NotSoapFaultAssertion.ID);
}
TestStepConfig testStep = TestStepConfig.Factory.newInstance();
testStep.setType(REQUEST_TYPE);
testStep.setConfig(requestStepConfig);