Forum Discussion
PaulDonny
11 years agoRegular Contributor
Great, I have extensive knowledge in this area actually.
I have a posting here that might help with further questions.
As for getting the request, if you want it from all test steps in that TestCase, just do the following
This snippet should be functional in Java, you may need to switch : to in for Groovy to use it. I didn't test it out but I am 99% confident it will work.
I have a posting here that might help with further questions.
As for getting the request, if you want it from all test steps in that TestCase, just do the following
String requestXml;
for (TestStep step:testCase.getTestStepList()) {
requestXml = step.getPropertyValue("Request");
}
This snippet should be functional in Java, you may need to switch : to in for Groovy to use it. I didn't test it out but I am 99% confident it will work.