I modify the script:
def propertyNames = testCase.getPropertyNames()
for(name in propertyNames){
if ( (!name.toString().startsWith("QC_")) & (!name.toString()=="synced") ){
testCase.removeProperty(name);
}
}
In the testCase, for example, I have the following properties: QC_id, synced, testId1, testId2.
When I execute the script, the properties testId1 and testId2 are not removed. I'am not able to identify how modify the script to works correctly.
I would like insert in the script only the properties that must not be removed, because are the same in all the testCases.