lc25s
11 years agoOccasional Contributor
Returning XML when using "Run TestCase" test step
I have basic tests set up with the following test steps
//=============
// Test Case A
//=============
Test Case A
TestRequest
MockResponse
Groovy - to verify XML returned in steps above (values stored in RawRequest, Request and Response)
//=============
// Test Case B
//=============
Test Case B
Run TestCaseA - Run TestCase test step
TestRequest
MockResponse
Groovy - to verify XML returned in steps above (values stored in RawRequest, Request and Response)
When running Test Case B, the "Run TestCase" test step fails because the Groovy script in Test Case A fails due to the fact that the XML values for RawRequest, Request and Response properties of that test case are not updated when using that test step (it works fine when run as a Test Case itself)
Is there a way for the XML values to populate when using the Run TestCase test step?
//=============
// Test Case A
//=============
Test Case A
TestRequest
MockResponse
Groovy - to verify XML returned in steps above (values stored in RawRequest, Request and Response)
//=============
// Test Case B
//=============
Test Case B
Run TestCaseA - Run TestCase test step
TestRequest
MockResponse
Groovy - to verify XML returned in steps above (values stored in RawRequest, Request and Response)
When running Test Case B, the "Run TestCase" test step fails because the Groovy script in Test Case A fails due to the fact that the XML values for RawRequest, Request and Response properties of that test case are not updated when using that test step (it works fine when run as a Test Case itself)
Is there a way for the XML values to populate when using the Run TestCase test step?