Forum Discussion
nmrao
9 years agoChampion Level 3
Below can be used for test case
context.testCase.properties.each { context.testCase.properties[it.key].value = '' }
for test suite
replace context.testCase with context.testCase.testSuite in the above code snippet.
- JT76 years agoOccasional Contributor
Copied it into the Test Case TearDown Script section and it works great.
Thanks!
- serto6 years agoNew Contributor
How i have to change the code for deleting values from TestStep Properties?
- nmrao6 years agoChampion Level 3Create new topic with details, please. Original question is already marked answered.
- rajash6 years agoContributor
to remove propety value from teststep properties.
testRunner.testCase.getTestStepByName("Properties").properties.each {
testRunner.testCase.getTestStepByName("Properties").properties[it.key].value = ""
}- _ivanovich_5 years agoFrequent Contributor
How do we clear just one property from project.
I don't want to remove the property.
I see how to clear all properties but how to clear just one property by its name?
using groovy.
Related Content
- 3 years ago