Forum Discussion

Kay's avatar
Kay
Occasional Contributor
31 days ago
Solved

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
    31 days ago

    Kay 

    Below script should help:

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