Have a suggestion regarding the properties.
There can be properties being created run time and some may need to be there always.
In the script, we are trying to delete all of them. If we want to ignore certain properties, then we have to have little strategy so that what needs to be deleted and what needs to be there even after save script is run.
Use small case for all the temporary property names. i.e., all these will be removed when project is saved.
Use ALL capital letters name for the properties that are permanent and should not be touched by above save script.
Here is the modified script to adhere the above strategy:
project.testSuiteList.each { suit ->
suit.testCaseList.each { kase ->
kase.propertyNames.findAll { ! it.toUpperCase().equals(it) }.each { kase.removeProperty(it)}
}
}