Forum Discussion
omatzura
17 years agoSuper Contributor
Hi!
hmm.. try the following:
1) Set the timeout of the step to the max time to wait
2) Disable the mockresponse step
3) create a groovy script step before your mockresponse step containing the following
def mockResponseStep = testRunner.testCase.testSteps["nameofmockresponseteststep"]
def result = mockResponseStep.run( testRunner, context )
// failed means we got a timeout
assert result.status == com.eviware.soapui.model.testsuite.TestStepResult.TestStepStatus.FAILED
This will run the teststep "manually" and fail if it didn't time out. The step is disabled so it doesn't get executed "normally" after the script finished
Does this work?
regards!
/Ole
eviware.com
hmm.. try the following:
1) Set the timeout of the step to the max time to wait
2) Disable the mockresponse step
3) create a groovy script step before your mockresponse step containing the following
def mockResponseStep = testRunner.testCase.testSteps["nameofmockresponseteststep"]
def result = mockResponseStep.run( testRunner, context )
// failed means we got a timeout
assert result.status == com.eviware.soapui.model.testsuite.TestStepResult.TestStepStatus.FAILED
This will run the teststep "manually" and fail if it didn't time out. The step is disabled so it doesn't get executed "normally" after the script finished
Does this work?
regards!
/Ole
eviware.com