Question 1 : Does this means that there is no support for groovy script for "mock response" when doing this way ? It is working in soapui-pro, but I cannot make it work from my source code.
Question 2 : Would it be possible to have a public interface for the "mock response" result ? It could be useful to get data received from the request in the testcase.
What we would like to do is the following (see Java code below), this would allow us to add some other SIP tests (SIPUnit).
@Test public void tc08useMockResponse() throws Exception {
println("Starting mockResponse");
// load project and get test case WsdlProject project = new WsdlProject(soapuiProjSIPSnapshot); WsdlTestSuite testSuite = project .getTestSuiteByName(soapuiTestsuiteSIPSnapshot); WsdlTestCase testCase = testSuite .getTestCaseByName(soapuiTestcaseSIPSnapshotMockResponse);
// run test case // Wait request WsdlTestCaseRunner runner = testCase.run(new PropertiesMap(), false);
// get results List<TestStepResult> results = runner.getResults();
In addition it seems to me not possible to access values in the result (such as the request content).
Actually I'm not sure if that is the right way to do it but it works. I'm using the assertion in the "mock response" to make my test and get back the status (OK, FAILED), using XPath.
The main idea of what we want to do with Soapui is to make data driven tests, having all data managed by soapui (in its xml file),and mxing then into SIP dedicated test case written in Java.
We are a team of 10 people, we will buy a first license for further evaluation, is the license schema fully per individuals are can be aslo per site ?