Forum Discussion
1 Reply
- pflaumengeistContributorto iterate through all teststeps and get ther names you could do something like this:
testRunner.testCase.testSuite.project.getTestSuiteByName('TestSuite 2').getTestCaseByName('TestCase 2').testSteps.each{
log.info it.getKey()
}
this would give you the names TestStep 1 ... TestStep 5
if the project looks like this
Project
TestSuite 1
TestCase 1
groovyscript (the script from above runs here)
TestSuite 2
TestCase 2
TestStep 1
TestStep 2
TestStep 3
TestStep 4
TestStep 5