How to handle the exceptions using recovery scenario
manager In QTP?

Answer Posted / karthick kumar k.j

Their are Four trigger Events in the should be
activated.They are

1.A Pop up Window Appears in an Opened Application during
the Test Run.

2.A Property Of an Object Changes its State or Value

3.A step in the test does not run successfully.

4.An Open Application fails during the test run.

These Triggers are Considered as Exception. You can
instruct QTP to recover unexpected events or errors that
occur in your testing environment during the test run.It
Provides a wizard that guides you through defining recovery
scenario. Recovery Scenario has three steps they are

1.triggered Events

2.Recovery Steps

3.Post Recovery Test Run

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If

2574


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

609


Why do we use breakpoints in QTP?

582


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

3618


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

3015






How can you write the scripts that operate on different objects depending on run-time information?

2122


What are the methods of the TextStream object that are used for reading from a text file?

1689


Which functionalities of QTP used in banking project?

1929


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

1378


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

599


Explain in brief about the qtp automation object model (aom).

566


Shall we add Local Repository to shared object repository,if yes,how we add

5701


Suggest and Define a solution for an application whose objects are not recognized by UFT?

675


What is an expert view and keyword view?

573


What are main panes available in qtp test browser?

542