How to handle Recovery scenario in QTP.
give detailed explanation about recovery
scenario.
Answers were Sorted based on User's Feedback
Answer / umasankar
Unexpected events, errors, and application crashes during a
run session can disrupt your run session and distort
results. This is a problem particularly when tests run
unattended?the test pauses until you perform the operation
needed to recover. To handle situations such as these,
QuickTest enables you to create recovery scenarios and
associate them with specific tests. Recovery scenarios
activate specific recovery operations when trigger events
occur.
The Recovery Scenario Manager provides a wizard that guides
you through the process of defining a recovery scenario,
which includes a definition of an unexpected event and the
operation(s) necessary to recover the run session.
A recovery scenario consists of the following:
Trigger Event. The event that interrupts your run session.
For example, a window that may pop up on screen, or a
QuickTest run error.
Recovery Operation(s). The operation(s) to perform to
enable QuickTest to continue running the test after the
trigger event interrupts the run session. For example,
clicking an OK button in a pop-up window, or restarting
Microsoft Windows.
Post-Recovery Test Run Option. The instructions on how
QuickTest should proceed after the recovery operations have
been performed, and from which point in the test QuickTest
should continue, if at all. For example, you may want to
restart a test from the beginning, or skip a step entirely
and continue with the next step in the test.
| Is This Answer Correct ? | 21 Yes | 4 No |
Answer / kirankumar.y
Recovery scenario manager is used to handle exception.
exception is run time error,three steps to handle exceptions
1 .trigger event:-pop-up window,object state,test run error
and application crash
2.recovery operations:-select an operation to perform when
the trigger event occurs they are 1.keyboard or mouse
peration 2.close application process 3. fuction call 4.
restart miscrosoft windows
3.post recovery:- select the last run operation you want to
perform when the recovery operation is complect
.test run options:
1.repeate current step and continue
2.preceed to next step
3.proceed to next action or component
4.proceed to next iteration
5.restart current test run
6.stop the test run
| Is This Answer Correct ? | 23 Yes | 8 No |
Answer / surya
every one knows the above process, but how to predict the
exception and how we create the scenario in real time, plz
mention 1 example for that..!!!!
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / anjali
@surya: this option we basically use in the process of negative testing, so we will know upfront that some pop-up or runtime error going to happen, rite??
you can take example as login validation, where we use more number of characters in the username when it is specified in reqmnts that the edit box should accept only some number of characters..this is part of negative testing
Correct me, if i am wrong
| Is This Answer Correct ? | 3 Yes | 2 No |
how you will do cookie testing using QTP?
In QTP, As a first step wht we will do before going to start a Automation....when it will be decided that we have to go for a Automatio..and who will decide to go for Automation. Any body can pls let me know.. Thanks in Advance..
What's QuickTest Window?
Hi, How to invoke QTP or any application through Command Prompt without using Vb script and batch file.... Reply me Srinivas
How to invoke QTP through VBscript?Send me full code along with description of the code.Thanks in Advance
Difference between action & Reusable action?
Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya
I have 2 Environment variable which holds int. I called into my test and addedup. but output is concatenating the values instead of Sum. Ex. Envi("a")= 10, Envi("b") = 20, c= Envi("a")+ Envi("b"). msgbox c ( Ans.1020). How to overcome this pblm? I used the add fn also..
How to carry out bit map check points in QTP
Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?
What is test object model in QTP?
How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?