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
Community Hero

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.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
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: