Forum Discussion
Cizo89
11 years agoFrequent Contributor
Hi,
I'm also little bit confused here.
Why not assert the response of that service in the first TestCase? Why you need to call the service in TestCase 1 and then add assertions from TestCase 2?
But if you really want to do this, here is an example of how to clone assertions from one TestStep to another:
Regards,
Marek
I'm also little bit confused here.
Why not assert the response of that service in the first TestCase? Why you need to call the service in TestCase 1 and then add assertions from TestCase 2?
But if you really want to do this, here is an example of how to clone assertions from one TestStep to another:
for (assertion in testRunner.testCase.testSuite.testCases["TestCase 2"].testSteps["Request 2"].getAssertionList()){
testRunner.testCase.testSuite.testCases["TestCase 1"].testSteps["Request 1"].cloneAssertion(assertion, assertion.getName())
}
Regards,
Marek