Micro Focus QTP (UFT) Forums
stop the execution of QTP script - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: stop the execution of QTP script (/Thread-stop-the-execution-of-QTP-script)



stop the execution of QTP script - rajmc - 09-15-2009

Dear All

i am having 2-3 condition to check and i want as soon as my first condition fails excution of whole script should stop after writing the result in to an excel file

please suggest.

Thanks
Rajmc


RE: stop the execution of QTP script - Saket - 09-15-2009

You can use 'ExitTest' to stop the script if any condition fails as per your requirement.
The query does not have any concern with the Regular Expression, Thread has been moved to QTP Beginners.


RE: stop the execution of QTP script - rajmc - 09-15-2009

Let me try and will let you know

thanks


RE: stop the execution of QTP script - pnp19 - 09-16-2009

- I have installed QTP 10 on Windows vista OS. I have problem to open the web site ( new mercury tour or which i set it on
"record and run" setting. My mercury application run well and record properly.

Thanks.

Piyush


RE: stop the execution of QTP script - Saket - 09-16-2009

Hi Piyush,
Please open a new thread for your query.
You should not reply in thread which is not relevant to your query.


RE: stop the execution of QTP script - rajmc - 09-16-2009

Thanks Saket, ExitTest works ...

can u pls. tell me the difference between ExitTest, ExitRun and ExitIteration

Regards
rajmc


RE: stop the execution of QTP script - sreekanth chilam - 09-16-2009

Hi All,

Hereafter I request all the new members of forum to startup with best practice of having a quick look at "Posting Guidelines" & then u can start posting ur issues/Accessing the issue solutions so on so forth.

As we have been replicating the request for opening a new thread for multiple times.


RE: stop the execution of QTP script - Saket - 09-16-2009

Yes , you should always put one query per thread,
as Sreekanth already suggested - Please read the Posting Guidelines.

For your answer-
ExitTest - Exits the entire Test
ExitRun - is an obsolete (not supported now in newer versions or supported for backward compatibilty) ExitTest is the alternative for this,
ExitTestIteration - Exits the current iteration of the test.

Thread is closed now

hope this helps.