dgiger
12 years agoNew Contributor
catch timeout of Mock Response TestStep
Dear SoapUI community,
I would like to test an async callback is NOT triggered within the timeout that was specified in the Mock Response TestStep.
The testcase contains 2 TestSteps:
1 - Test Request TestStep: synchronous invocation of a service that will trigger an asynchronous callback based on some conditions.
2 - Mock Response TestStep: Callback handler
The problem is that the timeout of the Mock Response is stopping the TestCase.
The goal would be to assert that there was no message received by the Mock Response TestStep.
I did try to do this in GroovyScript using the MockTestRunner, but it is blocking the TestCase.
Any idea on how to achieve this?
Maybe with 2 GroovyScripts, one starting the MockTestRunner in a seperate thread and the other to check the status of the MockTest and terminate the thread?
I'm using SoapUI 4.5.2 on Windows XP.
I would like to test an async callback is NOT triggered within the timeout that was specified in the Mock Response TestStep.
The testcase contains 2 TestSteps:
1 - Test Request TestStep: synchronous invocation of a service that will trigger an asynchronous callback based on some conditions.
2 - Mock Response TestStep: Callback handler
The problem is that the timeout of the Mock Response is stopping the TestCase.
The goal would be to assert that there was no message received by the Mock Response TestStep.
I did try to do this in GroovyScript using the MockTestRunner, but it is blocking the TestCase.
Any idea on how to achieve this?
Maybe with 2 GroovyScripts, one starting the MockTestRunner in a seperate thread and the other to check the status of the MockTest and terminate the thread?
I'm using SoapUI 4.5.2 on Windows XP.