Forum Discussion

sprice090161's avatar
sprice090161
Contributor
5 years ago
Solved

How can I programatically set (or write to) a "Properties" test step value?

I have already located the syntat to set a test cases custom property: testRunner.testCase.setPropertyValue( "foo", bar )   This writes to the property defined under the "Custom Properties" tab...
  • HimanshuTayal's avatar
    5 years ago

    Hi sprice090161 ,

     

    If you are talking about Properties Test Step inside a Test Case, then you can use below syntax:

     

    testRunner.testCase.getTestStepByName("Name of properties step").setPropertyValue("foo",bar);

    If you are looking for something else then please elaborate.