Posts: 6
Threads: 3
Joined: Sep 2009
Reputation:
0
09-15-2009, 05:31 PM
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
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
09-15-2009, 05:35 PM
(This post was last modified: 09-15-2009, 05:38 PM by Saket.)
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.
Posts: 6
Threads: 3
Joined: Sep 2009
Reputation:
0
09-15-2009, 05:39 PM
Let me try and will let you know
thanks
Posts: 4
Threads: 1
Joined: Sep 2009
Reputation:
0
09-16-2009, 07:08 AM
- 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
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
09-16-2009, 10:19 AM
Hi Piyush,
Please open a new thread for your query.
You should not reply in thread which is not relevant to your query.
Posts: 6
Threads: 3
Joined: Sep 2009
Reputation:
0
09-16-2009, 02:54 PM
Thanks Saket, ExitTest works ...
can u pls. tell me the difference between ExitTest, ExitRun and ExitIteration
Regards
rajmc
Posts: 350
Threads: 2
Joined: Mar 2008
Reputation:
0
09-16-2009, 03:02 PM
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.
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
09-16-2009, 03:30 PM
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.