I encountered with very strange problem in qtp while
writing the script i written the code
window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open"
).Exit
this code was working fine for about 10-15 times i executed
the script but after some time qtp started giving the error
with the same code the error is "Object doesnt support this
method or function window(...).window(..)" then i modified
the code with only window"regexpwndtitle:=Open").Exit
in place of
window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open"
).Exit
now again its working fine i cannot understand what thing
is creating the problem if same code executed successfully
in starting for about 10 times then why it is giving the
error now can anyone give the reason .


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More QTP Interview Questions

1.how can we report the QTP test result in a different excel sheet 2.

3 Answers   Aurigo,


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

1 Answers  


what are the utilities and drivers

0 Answers   Cap Gemini,


take one exmple and write on that discriptive programe in qtp?

1 Answers  


Can objects recognised without repository?

5 Answers  






need clear explanation of actions and functions in qtp with examples?can anyone suggest me gud site for that other than qtp manual?

2 Answers  


I have a Webtable object in my shared object repository, say WT1, which has different index value in 2 different versions, one version having WT1's index value as 1 and other version having WT1's index value as 2. how could i use same test script to identify the WT1 object having different index values.

5 Answers  


what are the different Frame Works in Quick Test Proffessional testing

5 Answers   Wipro,


how to re-install QTP 9.0 trial version.

25 Answers  


Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.

1 Answers  


hi guys, could you please prepare script for given format ? 1,1,2,3,5,8,13,21,...etc use vbscript for this...?

2 Answers   Value Labs,


What is the current version of QTP and now it is the product of Mercury or HP

12 Answers   TCS,


Categories