Forum Discussion

Kay's avatar
Kay
Occasional Contributor
9 months ago

How to remove (not clear) test case properties from SaveScript

Whenever I save my project, I want to delete all the testcase properties, otherwise I end up with many orphaned properties.  I've added this code into the save script hook for ( testSuite in projec...
  • nmrao's avatar
    9 months ago

    Kay 

    Below script should help:

    project.testSuiteList.each { suit ->
    	suit.testCaseList.each { kase ->
    		kase.propertyNames.each {
    			kase.removeProperty(it)
    		}
    	}
    }