Ed_Bosco
16 years agoNew Contributor
Creating properties at the Test Case level, initialized by Groovy scripts
Hi -
Have been trying to set properties at the Test Case level, initialized by Groovy Setup scripts at that Test Case level, accessible by the Test Steps beneath that Test Case.
The properties are wrote and read and logged during the Setup script execution, but don't show in the sent Soap request.
It appears that CurTime is null with the request.
CurTime is referenced in the xml below - the three time values
The Setup Script excerpt:
testRunner.testCase.setPropertyValue("CurTime", CurTime);
log.info "time is "+CurTime;
log.info "Start time is: " + testRunner.testCase.getPropertyValue("CurTime");
---
${#TestCase#messageId}
L243
?
---
The property CurTime is also listed at the Test Step Properties level, and has an initial value of ${CurTime}.
This is under SoapUI-Pro 2.0.2
Have been trying to set properties at the Test Case level, initialized by Groovy Setup scripts at that Test Case level, accessible by the Test Steps beneath that Test Case.
The properties are wrote and read and logged during the Setup script execution, but don't show in the sent Soap request.
It appears that CurTime is null with the request.
CurTime is referenced in the xml below - the three time values
The Setup Script excerpt:
testRunner.testCase.setPropertyValue("CurTime", CurTime);
log.info "time is "+CurTime;
log.info "Start time is: " + testRunner.testCase.getPropertyValue("CurTime");
---
---
The property CurTime is also listed at the Test Step Properties level, and has an initial value of ${CurTime}.
This is under SoapUI-Pro 2.0.2