Results 1 to 4 of 4
  1. #1

    To exit from Script

    hi all,
    version : 8.2
    application : Web

    i need to check some initial functionality if it fails i should come out of the script i.e it should directly go to test result, using reporter event i will display the result.

    my doubt is how to stop and exit the script, i have used if function to check my initial codition.

    i need syntex for exiting from the scipt.


  2. #2

    Re: To exit from Script

    use the qtp-help for some statements like ExitTest, ExitIteration and so on, and search this forum too, was often discussed here

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

  3. #3

    Re: To exit from Script

    We all have to deal with this issue one way or the other.

    Personally, I use an inner-function in each action, which exits the action and takes care of all the exit procedures (close open objects, report what's needed etc.).

    Each action exits, all through the action-call chain, and when the top level exits, the script ends.

    You can find further details and code snippets here: http://www.advancedqtp.com/knowladge...le-exit-gates/

    All the best.
    'coz we're programmers - not users

  4. #4

    Re: To exit from Script

    Hi rscholz660 and Yaron Assa,

    Thanks for ur timely help [img]/images/graemlins/smile.gif[/img]




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 03:51 PM.

Copyright BetaSoft Inc.