Forum Discussion

SriniMarva27's avatar
SriniMarva27
Occasional Contributor
6 years ago
Solved

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
    Lucian
    6 years ago

    It is equally simple:

     

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