JMcKinley
16 years agoContributor
Reading/Setting test case properties?
Through a groovy script, I know how to read/set test properites associated with a property step... for example:
// define object
def test = testRunner.testCase.getTestStepByNam("testPropertyStep");
// read property value
def version = test.getPropertyValue("testProperty");
// this line would set a property
test.setPropertyValue("testProperty","XYZ");
Is there a way to define the "object" and then read/set properties that are defined as test case properties?
How about the same for test suite properties?
Thanks!
Jim
// define object
def test = testRunner.testCase.getTestStepByNam("testPropertyStep");
// read property value
def version = test.getPropertyValue("testProperty");
// this line would set a property
test.setPropertyValue("testProperty","XYZ");
Is there a way to define the "object" and then read/set properties that are defined as test case properties?
How about the same for test suite properties?
Thanks!
Jim