Forum Discussion
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 1 will 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.
Hi,
I think that is true if you use two separate TestCases e.g. if you run the TestSuite, TestCase 1 (Mock R TestStep) will wait.
So, the second option of using the Run TestCase TestStep (for the Mock Resp TestStep's TestCase) might be better - take Run mode option:
This should run the TestCase asyncronously allowing the initial TestCase to contine and call the service.
I have used this approach from to run separate test cases asyncronously from Groovy scripts see example of how to mock a Scenario like this for more:
Cheers,
Rup