Forum Discussion
- lc25sOccasional Contributorjust needed to walk away ...
ts.getName()
ts.setName(<String>) - SmartBear_SuppoSmartBear Alumni (Retired)Great to hear it works. Thanks for sharing the resolution!
Thanks,
Michael Giller
SmartBear Software- sameer004New Contributor
import groovy.io.FileType
///getTestStepAt(3) means the testcase is at the 4th index in testsuite, it starts like an error
context.testCase.getTestStepAt(3).setName("MY new testcase Name")
Hope it helps
- tech321Contributor
or
context.testCase.getTestStepByName("MY old testcase Name").setName("MY new testcase Name")
Related Content
- 4 years ago
- 12 years ago
Recent Discussions
- 19 hours ago
- 4 days ago
- 15 days ago