Forum Discussion

livevox084's avatar
livevox084
Occasional Contributor
9 years ago
Solved

How to i clear the property values of a TestCase or TestSuite using groovy script?

Hi Support, I am using Ready API 1.3.1 How to i clear the property values of a TestCase or TestSuite using groovy script?   Thanks, Rajendra
  • nmrao's avatar
    9 years ago

    Below can be used for test case

     

    context.testCase.properties.each {
    	context.testCase.properties[it.key].value = ''
    }

    for test suite 

    replace context.testCase with context.testCase.testSuite in the above code snippet.