How to perform action on objects, If two objects have the
almost the same name ?
example :
Object 1 : "Entry of Items"
Object 2 : "Items"
Whenever I ask QTP to perform an action on Object 2 it
performs action on Object 1.
Note: The two objects are present in an Oracle Application
tree.
Answers were Sorted based on User's Feedback
Just u can use Location or Index ordinal identifier. Then
QTP easily identified the object.
EX: B().P().webbutton("name:=Entry of
items","Location:=0").click
OR
B().P().webbutton("name:=Entry of items","index:=0").click
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rohit pathak
Just mention all the properties from objects repository, but
if all the properties are same then change one of its
property by which tool can easily able to recognize the object.
| Is This Answer Correct ? | 1 Yes | 2 No |
What is the syntax to use out of two characters. Pls anybody can give the answer.. Thanks in advance...
Can we write class for vb script in Quick Test Professional?
Could we use QTP for java project(Which is develop in Netbeans and My SQL) otherwise which one is suitable?
What is FRAME WORK? How many Frameworks can QTP supports?
What is the maximum size of Object Repository in QTP 8.2?
I have 1 to 10 action are there, i want action1 output becomes to action 10 input? pls any can give script for this scenario?
Is qtp supports uni-code?
Which scripting language used by quicktest professional (qtp)?
Hi All Below is my script which i made for lgin into Flight.exe. SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open" Dialog("Login").WinEdit("Agent Name:").Set DataTable ("p_Text", dtGlobalSheet) Dialog("Login").WinEdit("Agent Name:").Type micTab Dialog("Login").WinEdit("Password:").SetSecure DataTable ("p_Text1", dtGlobalSheet) Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").Click datatable.Value(3)= "Incorrect password. Please try again" Dialog("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)="Please enter agent name" Dialog ("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)= "Please enter password" Dialog("Login").WinButton ("CANCEL").Click else Window("Flight Reservation").Move 309,146 datatable.ExportSheet "C:\Raj\Result.xls" ,1 Window("Flight Reservation").Close End If I want to capture the Message string from Dialog("Login").Dialog("Flight Reservations" Also pls let me know if this is the right way to do the script for login. Pls provide some script for login Flight.exe Thanks in advance Raj Dhiman
how do you invoke the application through QTP?
Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..
Explain the concept of how quicktest professional identifies object?