Exit Test - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Exit Test (/Thread-Exit-Test) |
Exit Test - Raj20091 - 11-19-2009 Hello, I have a script that runs several scripts. It looks like this: Code: RunAction "ABC [ABC]", oneIteration If a script fails I want to exit that script and go to next script. (If ABC fails I want to terminate ABC and run XYZ) How can I accomplish t his? If I use ExitTest the whole test stops. Thanks, Raj RE: Exit Test - venkatbatchu - 11-19-2009 Hi Raj, Please use these appropriate statements in your script ExitAction.' Exits the current action, regardless of its iteration attributes. ExitActionIteration. 'Exits the current iteration of the action. ExitRun.' Exits the test, regardless of its iteration attributes. ExitGlobalIteration.' Exits the current global iteration. ExitTestIteration 'statement supplies all the functionality of the ExitGlobalIteration statement and is equally applicable for both QuickTest tests and Quality Center business process tests. Regarding your query use ExitAction in calling action... Thanks, Venkat.Batchu RE: Exit Test - Raj20091 - 11-19-2009 Thanks Venkat. |