Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
16Activity
0 of .
Results for:
No results containing your search query
P. 1
4.Recovery Scenarios

4.Recovery Scenarios

Ratings: (0)|Views: 1,644 |Likes:
Published by Anand
Various Types of Recovery Scenarios available in QTP
Various Types of Recovery Scenarios available in QTP

More info:

Published by: Anand on Sep 30, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

12/18/2012

pdf

text

original

 
Recovery Scenario
*** When you want to recover from any problem, First, face the problem manually, Find the solutionmanually , Recover from that problem manually.And in the same way you implement for Automation ( in QTP)Recovery Scenario withPop-Up window ( When a pop-window appears either thru +ve testing or –Ve testing of the application )I.Pop-Up window ( Manual )
Put tool in Recording mode
open the AUT ( say flight Application )
Enter User name ( kanakadri )
*
Click on OK ( wontedly for getting an error) : see the relevant script and copy that lineonly.
You will get a “pop-up” window saying with some message
Enter OK on that pop-up window
Enter password ( mercury)
Click OK 
Stop Recoding------------------------------------------------------Open a new test , Type Function () , you will getFunctionEnd FunctionModify the above code as belowFunction popup_recovery()
*
Copy that line hereEnd Function------ Copy it and open a new NotePad and past it .
Save it with .vbs
(VBSctipt ) Extention as library file -------II.
Pop-Up window ( thru QTP )
Put tool under recording mode
open the AUT ( say same flight Application )
Enter User name ( kanakadri )
Click on OK 
*A pop-up will appear , click on OK ( see this script code, which should be removed later)
Enter password
Click on OK 
 
Stop recording*Remove that code and keep cursor here it self. 
Now Actual Recovery scenario for pop-up window starts …..
open the AUT ( say same flight Application )
Enter User name ( kanakadri )
Click on OK 
*the same pop-up will appear , DON’T’ click on it.
Open tools -> Recovery Scenario Manager 
Select the new scenario ( wizard will appear)
Click NEXT
Select trigger event option
as pop-up window
Click NEXT
With help of HAND Button select* that pop-up’s object (OK) of AUT
Click NEXT
Click NEXT to specify the recovery operation
Select
Function Call
option
Browse the library file which u have saved as with .vbs extention in the beginning.
Click NEXT
De-select the check box ( of add an other recovery operation )
Click NEXT
Choose Post-Recovery operation as
Repeat Current Step and Continue.
Click NEXT
Give the name and description
Click NEXT
Check the check-box of Add Scenario to Current test
Click FINISH
Save it as with .qrs ( Quick Recovery Scenario) extension
Click CLOSE
Run the Test which will Pass the results of course with Warnings ( may ignore it)=================================================================
 
Recovery Scenario withObject State ( When the object is disabled )
I.
Object State ( Manual )
Put tool in Recording mode
open the AUT ( say flight Application )
Click on Open order icon
A open order 
Dialog box
will appear 
In which check the Order number check box
See OK button is
Disabled
now
Enter order number (say 9)
*See the relevant script and copy that line only ie. where u entered 9
 Now OK button will be enabled
Click on OK 
An order with that number (say 9) will be opened
Stop recording------------------------------------------------------Open a new test , Type Function () , you will getFunctionEnd FunctionModify the above code as belowFunction popup_recovery()
*
Copy that line hereEnd Function------ Copy it and open a new NotePad and past it .
Save it with .vbs
(VBSctipt ) Extention as library file -------II.
Object State ( thru QTP )
Put tool in Recording mode
open the AUT ( say flight Application )
Click on Open order icon
A open order *
Dialog box
will appear 
In which check the Order number check box
DON’T enter order number 
Stop recording

Activity (16)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Suhail Ahmed liked this
Ravikumar Ravi liked this
rohitnag liked this
Ramesh Kumar liked this
viswanadhy9592 liked this
amereetto liked this
s_k15 liked this
prasadgali liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->