Forum Discussion

siddhu's avatar
siddhu
Contributor
14 years ago

How to stop execution of a program at a specified condition

Hi

    I am writing a script using USERFORMS. But i want to stop the execution of the program at a specified condition(If condition).

How to stop the exection.i am using VB Script



Thanks in advance 

5 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Siddhardha,



    Could you define more precisely what do you mean as "stop the execution of the program"?

    You may use Runner.Stop (see the relevant TC help topic for more details) if you would like to stop the script execution.

    If you like to close the tested application, you may write something like Sys.<YourTestedAppProcess>.Close
  • Hi

        Runner.stop is working.



        Thanks for your Support
  • HI, i'm calling a User Form through script extension, on pressing Cancel button i want to stop test script execution but it looks like Runner.Stop does not work in Script Extensions. Any other solution?



    Thanks