Forum Discussion
Cizo89
10 years agoFrequent Contributor
Hi Leo,
try this script for your Project Teardown script:
If you want just to remove all values from those properties, just use method setPropertyValue(String, String) and set the values to empty string or null (depending on your requirements).
Regards,
Marek
try this script for your Project Teardown script:
for (testSuite in project.getTestSuiteList()){
for (i in 1..testSuite.getPropertyCount()){
testSuite.removeProperty(testSuite.getPropertyAt(0).getName())
}
for (testCase in testSuite.getTestCaseList()){
for (i in 1..testCase.getPropertyCount()){
testCase.removeProperty(testCase.getPropertyAt(0).getName())
}
}
}
If you want just to remove all values from those properties, just use method setPropertyValue(String, String) and set the values to empty string or null (depending on your requirements).
Regards,
Marek
Related Content
Recent Discussions
- 24 hours agokasia