Forum Discussion

PhillipB's avatar
PhillipB
Occasional Contributor
7 years ago
Solved

Accessing property in TestStep?

Hi,   I'm trying to learn how to use Property.  So I create test step property by going to "Case" menu then select "Add Step" then choose "Properties".  So my property name is "myTestStepProperty"....
  • PhillipB's avatar
    7 years ago

    I found the solution now.

     

    def propTestStep2 = testRunner.testCase.getTestStepByName("myTestStepProperty").getPropertyValue("myFirstTestStepProperty")
    log.info " propTestStep2= " + propTestStep2