QTP records script but is unable to playback script
Question ID: 104109
2
0

I am able to record a script in QTP (see below) but it is unable to properly play it back. As you can see below, the script is using the Flight application that comes with the software as a sample application to practice on. The record and run settings have been set to launch the Flight application at the beginning of the record/run session, which does work properly when the program is ran. Dialog("Login").WinEdit("Agent Name:").Set "training" Dialog("Login").WinEdit("Password:").SetSecure "4be01d1215f4425a57ed985f5a2e4876f7508a02" Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX("MaskEdBox").Type "051010" Window("Flight Reservation").WinComboBox("Fly From:").Select "Denver" Window("Flight Reservation").WinComboBox("Fly To:").Select "Frankfurt" Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set "John Doe" Window("Flight Reservation").WinRadioButton("First").Set Window("Flight Reservation").WinEdit("Tickets:").SetSelection 0,1 Window("Flight Reservation").WinEdit("Tickets:").Set "2" Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").Close The product information for the QTP is: Product Information Product name: QuickTest Professional Product version: 10.00 Product ID: QTPRPID10.00/01 Product build: 513 Operating system: Windows Vista Service Pack 1 (Build 6001) Internet Explorer version: 7.0.6001.18000 Quality Center connectivity: …** Add-in Information: Name .NET ActiveX ASPAjax Delphi Java Oracle PeopleSoft PowerBuilder SAP Siebel Stingray Terminal Emulators Visual Basic VisualAge Smalltalk Web Web Services WPF Hotfix and Patch Information: Name © Copyright 1992-2009 Mercury Interactive (Israel) Ltd. The add-ins that I currently have enabled are: .NET Java ActiveX WPF Web I have also restarted QTP and record and ran the same exact script with the only add-in being ActiveX, and still is unable to properly play back. The login window will open but nothing is entered into the username and password edit boxes. Any ideas as to why the program would be able to record a script but not be able to play it back would be greatly appreciated. Thank you.

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on May 4, 2010 1:55 pm
40 views
Answers (4)
2
Private answer

You wouldn't happen to have two instances of the Flight Application Login window running on the taskbar, would you?

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on May 18, 2010 2:31 pm
1
Private answer

Is it possible that the flight application was launched before QTP was opened? Opening the application QTP is interacting with BEFORE QTP is open is known to cause problems.

Marked as spam
Posted by (Questions: 1, Answers: 7)
Answered on July 8, 2010 7:40 pm
0
Private answer

What is the error that you are getting? Object not Found? Something else?

Marked as spam
Posted by (Questions: 1, Answers: 3)
Answered on May 5, 2010 2:18 pm
0
Private answer

Recommend installing QTP patches QTP00626 and QTP00667. This might not fix the problem but is minimum recommend patches by HP. Need to know what the error message you are getting to understand the problem. Make sure you are starting QTP then Starting the sample application before running test. bh

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on May 5, 2010 5:41 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top