krogold
6 years agoRegular Contributor
Is it possible to determine if a custom property is static or if it has been created dynamically
Hello,
I trying to find out if it is possible to know if a custom property is dynamic or static, I mean :
- is the custom property set by another testcase that is calling my current test case
-...
- 6 years ago
Hi Alex,
You can get the properties which are selected as "Return Properties" using the below script:
def tCase = testRunner.testCase.testSuite.testCases["TestCase1"] //TestCase name def tStep = tCase.testSteps["Run_TestCase"] //Run TestCase test step name log.info tStep.getReturnProperties()
Don't forget to change the Test Case and Test Step names.
Please see the "WsdlRunTestCaseTestStep" class details here: https://www.soapui.org/apidocs/com/eviware/soapui/impl/wsdl/teststeps/WsdlRunTestCaseTestStep.html