nmrao
5 years agoChampion Level 3
Solution Script to Cleanup of Custom property values in the project
It is noticed that many were looking for a feature where users like to clean the custom property values. This eases to push the actual changes to repository (instead of just property values changes)....
- 5 years ago
Hi,
i found nmrao's solution fine.
Arthur's solution is nice too.
For now i prefer to use this simple solution in 'setup script' for example to clear testcase properties:
context.testCase.properties.each { context.testCase.properties[it.key].value = '' }
But Arthur's solution looks nice because we can delete all properties ending with a certain suffix.
I need to work on these two solutions to avoid the repetition of my two lines in each testcase for example.
But when we execute several times the same test, we overwrite properties right?
It's not clearing but changes the same properties each time we execute.
Thank you