How to handle exceptions in for loop of DDT script.
Steps for handle the Exceptions:
--------------------------------
1 ways is: Object Repository based Exceptions
2 way is: Descriptive based(VB Script)Exceptions
OR based Exceptions(using tool options):
Steps:
1. Take the +ve & -ve Test Data in Data Table
2. when ever the -ve data enter on the application at that
time that application was shows the error. Capture this
error window using recovery scenario concept in QTP
Ex: In the Flight Application User Name was accept
only Mercury. If u enter the any other than that at that
time the Flight application was shows error message (ie.
popup window: Enter Valid Password). We need handle this
exception.
DataTable xl sheet in qtp take the data like this:
UserName
--------
Mercury
mercu
Resources --> Recovery Scenario Manager --> Click on the +
Sumbol --> Select the Pop up window option --> With the hand
icon select the Error Windows: Tittle Name that window name
appears in the text box --> click next and again with hand
icon click the on the error msg which was displayed on the
error window.--> click next
give the scenarion name
give the recovery scenario file name.
Generate the DDT script for execute the Test Data.
Output: now handle the -ve test data.
Descriptive based Exceptions(without qtp tool options):
Use here .exist method for exist that window
.GetROProperty to capture the error message.
If Dialog("Flight Applications").Exist Then
errmsg=Dialog("Flight Applications").GetROProperty("text")
If errmsg = "Enter Valid UserName" Then
Dialog("Flight Applications").WinButton("OK").Click
End If
End If
Like this we can develop the VbScript code without using the
tool options.
Is This Answer Correct ? | 0 Yes | 0 No |
if a test script is parameterised with the same value ,and run what effect will it have in terms of performance for testing the application.will the script get executed faster or there is no effect at all.
i'm using WR 8.2 version to test a form developed using ORACLE10g. The problem i'm facing is, the form has number of edit objects in that only two objects are not able to recognize by WR while running the script. ( if i FIND that object in the GUI File it highlights the object but if i press SHOW button not able to recognize) can anyone tell me the reason for it??
what are Obligatory and Optional properties in Winrunner? what is the use of those explain in detail..
what is the difference between toggle checkpoint and checkpoint?
What is the purpose of temp. GUI map file?
hi i am unable to do select the flight in the flight table like list_select_item ("Flight",v_Select_Flight); v_Select_Flight=19072 LON 08:00 AM LAX 10:00 AM AF $161.90 why it is happining pls clarify me doubt
wat is the d/b windows 95&98&xp?could anybody give reply ?
how to write the pass or fail message in winrunner for eg: in QTP we can write like "Reporter.reportEvenr,micDon,"Test Test pass"
What is the disadvantage of loading the GUI maps through start up scripts?
What is contained in the GUI map?
What are Optinal Properties and Obligation Properties? please explain in detail.
what is TSL script to connect testdirector through winrunner