Contributions
Re: How to start mock service and use the response in test case using script
Thanks, Rup it pointed me to some direction. However in this case I need to start both test cases manually, because the mock test step in the Test Case 1will not pass until async response is returned. Which will not automatically trigger Test Case 2 where the request is placed. Correct me if I am wrong. Thanks again.3.2KViews0likes1CommentRe: How to start mock service and use the response in test case using script
Thanks for the fast answer! However this is not an option. Because when I want to run the whole test suite My test cases and test steps need to pass so the next one to trigger. If I run test cases with mock it will wait until response and then the next test case will start. But also I need to assert theasync response.3.2KViews0likes1CommentHow to start mock service and use the response in test case using script
Hello, Here is my problem: I have test case where with test step I send request to the server.The server returns synchronus response. Then the server returns an async response to mock wich is started by test step in the same test case. Here is the sequence: 1. Send request test step. 2. Receive sync response. 3. Start mock test step. 4. Receive async response to the mock. The problem is that SoapUI doesn't start the mock fast enough and then it fills the log file with ERROR:javax.xml.ws.WebServiceException: org.apache.axiom.soap.SOAPProcessingException: First Element must contain the local name, Envelope , but found html So I need to start the mock service before the async response is send from the server. I have the following idea: To start the Mock service manualy and then with groovy script to store the response in variable and then get the response to test step in my test case.Where assertions will make sure the test casepassed. Can someone tell me what script should I use? Or give me better idea. Thanks in advance!3.2KViews0likes6Comments