Forum Discussion

PhillipB's avatar
PhillipB
Occasional Contributor
7 years ago
Solved

Setup Script updates teststep property?

Hi,   Is it possible to update the test step property from Setup Script?  I'm able to update property at test suite level, but not test case , or test step level.  Please help.  thanks.   Below i...
  • kingsmartbear's avatar
    kingsmartbear
    7 years ago

    Hi PillipB:

     

       Please past following code to you any test case then run it, you should be able to see three custom properties will be generated at three levels which are TestCase, TestSuite and Project :

     

    testRunner.testCase.setPropertyValue( "YourTestCasePropertyName", "ValueForTestCase" )
    testRunner.testCase.testSuite.setPropertyValue( "YourTestSuitePropertyName", "ValueForTestSuite" )
    testRunner.testCase.testSuite.project.setPropertyValue( "YourProjectPropertyName", "ValueForProject" )

     

    Good luck,