0% found this document useful (0 votes)
29 views11 pages

QTPNoida Lecture1

This document provides guidance on getting started with QTP by opening an application called flight4a.exe and automating the login process. It discusses recognizing objects in the object repository and writing a script to open the application, activate the login dialog, enter credentials into username and password fields, and click the OK button. The script provided opens the application, waits 4 seconds, activates the login dialog, enters "test" for the username and "mercury" for the password, and clicks OK.

Uploaded by

Hemant Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views11 pages

QTPNoida Lecture1

This document provides guidance on getting started with QTP by opening an application called flight4a.exe and automating the login process. It discusses recognizing objects in the object repository and writing a script to open the application, activate the login dialog, enter credentials into username and password fields, and click the OK button. The script provided opens the application, waits 4 seconds, activates the login dialog, enters "test" for the username and "mercury" for the password, and clicks OK.

Uploaded by

Hemant Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 11

QTP Lecture 1 Noida This file will guide you to start with the QTP and take the

e live projects. Make sure we will use the approach where we are assuming that there is nothing with the name of recording.

1. Step 1 will be to start the QTP. 2.

3.

4.

5.

6.

7. I need to automate this application:

8. 9. This is the login screen 10. As a first step I will recognize the objects in the object repository. 11. I am not aware about the object repository. 12. Before we proceed lets study the object repository. 13. Here it goes:

14.

15.

16.

17.

18.

19. Let ne write the first step of the script that is to open the application.

20.

21. Here is he script: InvokeApplication("C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe") wait(4) Dialog("Login").Activate Dialog("Login").WinEdit("Agent Name:").Set("test") Dialog("Login").WinEdit("Password:").Set("mercury") Dialog("Login").WinButton("OK").Click

You might also like