Bensb93
4 years agoNew Contributor
Groovy Script to delete test cases that begin with value
Disclaimer - My knowledge of Groovy is very limited.
I basically require a groovy script within my test case to delete test steps that begin with 'Order'.
I have tried this below, but to no avail, but that's kind of what I want. No idea if the syntax is correct or not!
testSuite.removeTestStep.startswith(Order)
This script would ideally be at the bottom of the test case and delete all the test steps that begin with the word 'Order'
Any help would be greatly appreciated.
Many Thanks.
Ben