Ask a Question

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

prabhjot88singh
Contributor

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 4
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
Esteemed Contributor

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


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Krishna_Kumar
Contributor

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

TanyaYatskovska
SmartBear Alumni (Retired)

Hi @prabhjot88singh,

 

Does the suggestion given here help you resolve the issue? Please mark the best answer as a solution.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: