Forum Discussion

prabhjot88singh's avatar
prabhjot88singh
Contributor
5 years ago

How to start running a script from specific step in Script mode

Hi team,

As we know, for Testcomplete keyword tests, we can run from selected operation mode using option called as run from selected operation.

 

Similarly, Please provide steps on how to run a script from some Line x(lets say line 10) in Script mode.

 

Best,

Prabhjot

4 Replies

  • If you are using vbscript,

    then keep the breakpoint in the first line of script and start the execution,

    it will pause the execution at the line where you have kept the break point,

    Now you keep your cursor at the specified line where you want the execution to start and now right click mouse and then select  "Set Next Line" and continue the execution.

    Note : the above method is not supported with JavaScript.

    Kind regards,

    Sathish Kumar k

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    You'd have to comment out lines 1-9 in the code, just like in other code editors.  Run Selected Operation only works in keyword tests.

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      Some languages have the ability to "Set Next Line" when you're in debug mode.