Forum Discussion
Nagravision_SA__1
12 years agoContributor
The script is in a GroovyScript Test Step of a generic Test Case.
Another test case, with the WebServiceCall and Assertion is calling upon it passing it:
- the Timeout
- which Test Step to Run (thw web service call)
- And the TestSuite / TestCase calling the script (required to get the TestStep by name)

In essence its a very simple script that we want to use in several places in WebService test strategy.
You can reproduce this easily by caling upion a web service and adding any assertion you want, that would be valid as soon as the web service is responding.
Do not start the web service, run your loop with a high enough timeout, the AssertionStatus will be returned as UNKOWN.
Start your web service, and it wont change.
An individual call to the same web service however would return an AssertionStatus of VALID...
Another test case, with the WebServiceCall and Assertion is calling upon it passing it:
- the Timeout
- which Test Step to Run (thw web service call)
- And the TestSuite / TestCase calling the script (required to get the TestStep by name)
In essence its a very simple script that we want to use in several places in WebService test strategy.
You can reproduce this easily by caling upion a web service and adding any assertion you want, that would be valid as soon as the web service is responding.
Do not start the web service, run your loop with a high enough timeout, the AssertionStatus will be returned as UNKOWN.
Start your web service, and it wont change.
An individual call to the same web service however would return an AssertionStatus of VALID...