Wives
8 years agoOccasional Contributor
Transferring a property within a "Run TestCase" step is successful but is not stored anywhere?
I've looked around the forums for similar issues but none of the answers seem to explain this exact case: I have a TestCase "Mom" that has a TestStep that is a Run TestCase "Son". The original t...
- 8 years ago
If the Son test case sets the property at the Son test case level, it's not going to set it at the Mom test case level no matter how you kick it off. You would need to write a groovy script, potentially, to transfer that property manually. You can put this as a groovy script test at the end of Mom test case, after the run Test case level.
// set Target test case. def mom = context.testCase; // set Source test case; def son = context.testCase.testSuite.testCases["Son"]; // transfer the property mom.setPropertyValue("PropertyName", son.getPropertyValue("PropertyName"));