Forum Discussion

SriniMarva27's avatar
Occasional Contributor
7 years ago

How do I setup test case property key using a variable value?

def a = Property1 testRunner.testCase.addProperty(<Value of a>)   As you can see in the above piece of code, I have declared a variable named 'a' and assigned a value of Property1. Now how do I ad...
  • Lucian's avatar
    7 years ago

    It is equally simple:


    def a = "Property1"
    testRunner.testCase.setPropertyValue(a, "")