soapuiuser2013
12 years agoNew Contributor
How to Set Endpoint in Java TestCase
Hi
I am trying to create my own Java app that runs my SOAPUI test cases.
I have code that looks like this:
Does anyone know how I can set the endpoint, I have searched the API high and low but cant find anything.
I guess I need to set it on the testCase , perhaps as a property but I have no idea what I would call that property or how to add it..
Thanks
I am trying to create my own Java app that runs my SOAPUI test cases.
I have code that looks like this:
List<TestSuite> testSuites = project.getTestSuiteList();
for( TestSuite suite : testSuites ) {
List<TestCase> testCases = suite.getTestCaseList();
for( TestCase testCase : testCases ) {
System.out.println("Running SoapUI test [" + testCase.getName() + "]");
TestCaseRunner runner = testCase.run(new PropertiesMap(), false);
}
}
Does anyone know how I can set the endpoint, I have searched the API high and low but cant find anything.
I guess I need to set it on the testCase , perhaps as a property but I have no idea what I would call that property or how to add it..
Thanks