We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
Hi mpw83 ,
You can use more of groovy to find solution of your problem, first count the number of properties stored under Test Case custom properties and then delete the selected properties, refer below code for reference:
def targetTestCase = testRunner.testCase;
def propList = targetTestCase.getPropertyNames()
propList.each{
if(it.contains("ScheduleID")){
targetTestCase.removeProperty(it);
}
else{
//Do nothing
}
}
Hi mpw83 ,
You can use more of groovy to find solution of your problem, first count the number of properties stored under Test Case custom properties and then delete the selected properties, refer below code for reference:
def targetTestCase = testRunner.testCase;
def propList = targetTestCase.getPropertyNames()
propList.each{
if(it.contains("ScheduleID")){
targetTestCase.removeProperty(it);
}
else{
//Do nothing
}
}
HimanshuTayal , Thanks for sharing. Its worked.