Forum Discussion

jomy10's avatar
jomy10
Occasional Contributor
2 years ago

Getting test steps in the correct order

I have a javascript which boils down to the following:   var testSteps = testRunner.testCase.testSteps.values().toArray(); for (var i = 0; i < testSteps.length; i++) { log.info(testSteps[i].g...
  • jomy10's avatar
    2 years ago

    I figured it out, so for anyone who stumbles upon this post:

     

    replace 

    var testSteps = testRunner.testCase.testSteps.values().toArray();

    with

    var testSteps = testRunner.testCase.getTestStepList().toArray();