use of com.eviware.soapui.support.SoapUIException in project iesi by metadew.
the class SOAPUIIntegration method main.
public static void main(String[] args) {
try {
getTestSuite();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.exit(0);
// https://www.soapui.org/test-automation/junit/junit-integration.html#_ga=2.157007227.1117033134.1563254348-690893157.1557407813
// out-app-analytics-provider-5.5.0.jar causes issues in eclipse on the build
// path
SoapUITestCaseRunner runner = new SoapUITestCaseRunner();
runner.setProjectFile("c:/Data/ApiCase-soapui-project.xml");
try {
runner.run();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
WsdlProject project;
try {
project = new WsdlProject("c:/Data/ApiCase-soapui-project.xml");
TestSuite testSuite = project.getTestSuiteByName("https://sandbox.api.belfius.be:8443 TestSuite");
// TestCase testCase = testSuite.getTestCaseByName( "Test Conversions" );
// create empty properties and run synchronously
TestRunner runner2 = testSuite.run(new PropertiesMap(), false);
System.out.println(runner2.getStatus());
} catch (XmlException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SoapUIException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Aggregations