Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exit Test
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hello,

I have a script that runs several scripts. It looks like this:
Code:
RunAction "ABC [ABC]", oneIteration
RunAction "XYZ [XYX]", oneIteration
RunAction "MNP [MNP]", 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
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
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
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Thanks Venkat.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Exit Do loop shipu 1 4,896 12-20-2013, 06:33 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 2 Guest(s)