15 years ago
Expected Timeout on Mock Response Step
Hello,
for a test with callback URLs I'm using the Mock Response step with a timeout to verify the callback is executed correctly.
One test case is where the callback is revoked, in order to check that cancelation works. TO verify this I create a Mock Response with a timeout and I expect the timeout exception to be thrown in order for the test case to be successful. However, I haven't found a way to deal with the exception in such a way that the test case is green when it is thrown.
I tried calling the Mock Response step via a groovy script and evalute the result myself and/or deal with exceptions, but the problem is that the test step result is logged and handeled anyway by SoapUI.
The only other way I could think of is to create a socket that I manage myself, but this poses problems with the network environment were the tests are executed (only one port is open for callbacks and this is taken by the Mock Responses).
Does anyone have a hint how to accomplish this?
ciao,
Elmar
for a test with callback URLs I'm using the Mock Response step with a timeout to verify the callback is executed correctly.
One test case is where the callback is revoked, in order to check that cancelation works. TO verify this I create a Mock Response with a timeout and I expect the timeout exception to be thrown in order for the test case to be successful. However, I haven't found a way to deal with the exception in such a way that the test case is green when it is thrown.
I tried calling the Mock Response step via a groovy script and evalute the result myself and/or deal with exceptions, but the problem is that the test step result is logged and handeled anyway by SoapUI.
The only other way I could think of is to create a socket that I manage myself, but this poses problems with the network environment were the tests are executed (only one port is open for callbacks and this is taken by the Mock Responses).
Does anyone have a hint how to accomplish this?
ciao,
Elmar