I have action1, action2, action3 r there.my query is while
executing if i get any error in action1 i want exit from
here itself, otherwise execute action2, if i get any error
in action2 i want exit from hereitself, like this,what is
the method for this?

Answers were Sorted based on User's Feedback



I have action1, action2, action3 r there.my query is while executing if i get any error in action1..

Answer / uday kumar_anem

I am little bit confused.. if an error occurs in action1,
then if you want to exit from test or if an error occurs in
action2, then if you want to exit from the test then use...
ExitTest, which results exits from the execution of the
current test.

Is This Answer Correct ?    1 Yes 0 No

I have action1, action2, action3 r there.my query is while executing if i get any error in action1..

Answer / kiran

first u need to capture error number if!=0 then u can use
exit test medthod

Is This Answer Correct ?    1 Yes 0 No

I have action1, action2, action3 r there.my query is while executing if i get any error in action1..

Answer / karunakar

we can use ExitAction method.it exits from the current action.

Is This Answer Correct ?    0 Yes 0 No

I have action1, action2, action3 r there.my query is while executing if i get any error in action1..

Answer / venkateshwarlu

for this, i think we can recovery scenario manager,in this
we have to select post recovery action as proceed to next
action.

Is This Answer Correct ?    0 Yes 0 No

I have action1, action2, action3 r there.my query is while executing if i get any error in action1..

Answer / prasad reddy

'Disables all the reporting stuff

Reporter.Filter=rfDisableAll

-----------Script---------
'Enable all the repoting stuff

Reporter.filter=rfEnableAll


When ever we get result Action 1 genarat this script
we will get exat result


------------Any questions plz ask me
prasad4urs@gmail.com-----------------

Prasad reddy

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

qtp script for recording and running the application.need script for short cut keys like f3,f4 etc.how to write script for recording?

2 Answers  


What are the various types of Actions in UFT?

0 Answers  


Suppose U change the script whether it affect the object properties of the object in the object repository

4 Answers   IBM,


What is Modular framework and Keyword drive framework? Explain

4 Answers  


In how may ways we can use checkpoints to an application using QTP?

3 Answers  






What is DOM

2 Answers  


What is an expert view and keyword view?

0 Answers  


Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

0 Answers   IBM,


Is it possible to switch between recording modes during a test creation?

0 Answers  


Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?

4 Answers  


How do u use Database checkpoints and what are the use?

4 Answers   Qualtree Solutions,


How do I generate Test Results window using descriptive method ( run time ) after my test execution process? Please have a look of my below code. ========================================================= Dim qtApp Dim qtTest Dim qtResultsOpt Set qtApp = CreateObject("QuickTest.Application") qtApp.Launch qtApp.Visible = True qtApp.Options.Run.CaptureForTestResults = "Always" qtApp.Options.Run.RunMode = "Fast" qtApp.Options.Run.ViewResults = True qtApp.Open "C:\Automation\Example", True Set qtTest = qtApp.Test qtTest.Settings.Run.OnError = "NextStep" Set qtResultsOpt = CreateObject ("QuickTest.RunResultsOptions") qtResultsOpt.ResultsLocation = "C:\Automation\Example\Res1" qtTest.Run qtResultsOpt MsgBox qtTest.LastRunResults.Status qtTest.Close Set qtResultsOpt = Nothing Set qtTest = Nothing Set qtApp = Nothing ========================================================== This code is working fine, but Test Result window is not displaying after execution. Anybody can please help me regading the same. Thanks Akshaya Madali Capgemini India Pvt Ltd 9823213538

0 Answers   Cap Gemini,


Categories