Top Banner
Practical: - 7 Recording and Replaying. STEPS: 1) Open the QUICK TEST PROFESSIONAL SOFTWARE. 2) Click on File NewTest. 3) To start a new recording click on the button 4) For WEB browser choose the below option O pen the following address when a record or run session begins. Provide the browser name and the site address. 5) Open the FLIGHT/CALCULATOR/WEB application and start some operation for e.g. inserting a new record into the database or calculating or creating a Gmail account. 6) Each and every actions such as “Logging into the application”, “Selecting and inserting data” etc. will be recorded by the QTP software. 7) Stop the recording using button 8) Then RUN the recording by clicking on the button 1.1 SCREEN CAPTURES: Application Name: - FLIGHT Application
74
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: qtp

Practical: - 7

Recording and Replaying.

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) For WEB browser choose the below option Open the following address when a record or run session begins.Provide the browser name and the site address.

5) Open the FLIGHT/CALCULATOR/WEB application and start some operation for e.g. inserting a new record into the database or calculating or creating a Gmail account.

6) Each and every actions such as “Logging into the application”, “Selecting and inserting data” etc. will be recorded by the QTP software.

7) Stop the recording using button

8) Then RUN the recording by clicking on the button

1.1 SCREEN CAPTURES: Application Name: - FLIGHT Application

Record

Stop

Run

Page 2: qtp

1.2 SCREEN CAPTURES: Application Name: - CALCULATOR Application

Page 3: qtp
Page 4: qtp

1.3 SCREEN CAPTURES: Application Name: - WEB Application

Page 5: qtp
Page 6: qtp

Practical: - 8

Types of Recording Modes in QTP using paint(window application).

Types of Recording Modes in QTP.

1.)Normal Mode

2.)Analog Mode

3.)Low level Mode

Normal Mode

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) Open Paint Application.

5) Paint an image and exit.

6) Stop the recording using button

7) Then RUN the recording by clicking on the button

SCREEN CAPTURES: Application Name: - PAINT Application

Record

Stop

Run

Page 7: qtp
Page 8: qtp

Analog Mode

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) Open Paint Application .In the toolbar click on the button to start Analog recording.

5) Choose the option Record relative to the following windowThen click on the hand symbol and then on the paint window and then on

6) Paint an image and exit.

7) Stop the recording using button

Record

Stop

Start Analog Record

Page 9: qtp

8) Then RUN the recording by clicking on the button

SCREEN CAPTURES: Application Name: - PAINT Application

Run

Page 10: qtp
Page 11: qtp

Low-level recording Mode

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) Open Paint Application .In the toolbar click on the button to start Low-level recording.

5) Paint an image and exit.

6) Stop the recording using button

7) Then RUN the recording by clicking on the button

SCREEN CAPTURES: Application Name: - PAINT Application

Record

Stop

Run

Page 12: qtp
Page 13: qtp
Page 14: qtp

Practical: - 9

SYNCHRONIZATION POINT

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) Go to Insert CheckpointThen click on the object to which synchronization point needs to be added. The window for selecting synchronization point appears as below.

5) Stop the recording using button 6) The details then need to be entered in the subsequent windows

For WEB

Record

Stop

Page 15: qtp

For WINDOWS

7) Stop the recording and then the recording.

SCREEN CAPTURES: Application Name: - WEB Application

Page 16: qtp

SCREEN CAPTURES: Application Name: - WINDOWS Application

Page 17: qtp
Page 18: qtp

Practical: - 10

PARAMETERIZATION

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) Each and every actions such as “Logging into the application”, “Selecting and inserting data” etc. will be recorded by the QTP software.

5) Stop the recording using button

6) In the QTP software click on the … Action1

Record

Stop

Page 19: qtp

For “Agent Name” click on the small angular <> braces. Then the below window appears

Enter the details and then click on OK button. These same steps should be repeated for the “Password” field.

7) In the data table manually add entries for other sample “Agent Names” with “Passwords”.

8) Then RUN the recording by clicking on the button The recording then runs for the number of “Agent Names” entered in the data table.

SCREEN CAPTURES: Application Name: - WINDOWS Application

Run

Page 20: qtp
Page 21: qtp

SCREEN CAPTURES: Application Name: - WEB Application

Page 22: qtp

Practical: - 11

QTP Checkpoints

1. Standard Checkpoint2. Text Checkpoint3. Text Area checkpoint4. image Checkpoint5. Page checkpoint6. Database Checkpoint

STANDARD CHECKPOINT

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) Open the flight application. Enter all the details, once the below button becomes active

Record

Page 23: qtp

Go to Insert Checkpoint

Standard Checkpoint5) The “Object Selection – Checkpoint Properties” window appears then below window appears.

The enabled property is set to TRUE.6) Then INSERT the record and quit the application.

7) Stop the recording using button

8) Then RUN the recording by clicking on the button

SCREEN CAPTURES: Application Name: - FLIGHT Application

Stop

Run

Flights.

Page 24: qtp
Page 25: qtp
Page 26: qtp

TEXT CHECKPOINT

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) Open the notepad application. Type some sample text. 5) Go to Insert

Checkpoint Text Checkpoint

6) The “Object Selection – Text Checkpoint Properties” window appears then below window appears.

Record

Page 27: qtp

The options Match case and Exact match property has to set.

7) Stop the recording using button

8) Then RUN the recording by clicking on the button

Stop

Run

Page 28: qtp

SCREEN CAPTURES: Application Name: - NOTEPAD Application

Page 29: qtp
Page 30: qtp
Page 31: qtp

TEXT AREA CHECKPOINT

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) Open the notepad application. Type some sample text. Go to Insert Checkpoint

Text Area Checkpoint5) The “Object Selection – Text Area Checkpoint Properties” window appears then below window

appears.

The options Match case and Exact match property has to set.

9) Stop the recording using button

10) Then RUN the recording by clicking on the button

Record

Stop

Run

Page 32: qtp

SCREEN CAPTURES: Application Name: - NOTEPAD Application

Page 33: qtp

Image Checkpoint

Page 34: qtp

Page Checkpoint

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) Open the paint application. Paint a sample object. Go to Insert Checkpoint

page Checkpoint

5) Stop the recording using button

6) Then RUN the recording by clicking on the button

Record

Stop

Run

Page 35: qtp
Page 36: qtp
Page 37: qtp

BITMAP CHECKPOINT

STEPS:

7) Open the QUICK TEST PROFESSIONAL SOFTWARE.8) Click on File NewTest.9) To start a new recording click on the button

10) Open the paint application. Paint a sample object. Go to Insert Checkpoint

Bitmap Checkpoint

11) Stop the recording using button

12) Then RUN the recording by clicking on the button

SCREEN CAPTURES: Application Name: - WINDOWS Application

Record

Stop

Run

Page 38: qtp
Page 39: qtp
Page 40: qtp

SCREEN CAPTURES: Application Name: - WEB Application

Page 41: qtp
Page 42: qtp

DATABASE CHECKPOINT

STEPS for Flight Application:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) Go to Insert

Checkpoint Database Checkpoint

The below window appears:

Page 43: qtp

4) Then click on the Create button and choose the Machine Data Source tab. In this tab then select the required database.

The records are displayed as below:

5) Then RUN the recording by clicking on the button

SCREEN CAPTURES: Application Name: - DATABASE Application (Test Case Passed)

Run

Page 44: qtp
Page 45: qtp
Page 46: qtp

STEPS for MS-Access Application:

1) Select the Data Source in File Data Source Tab as ‘MS Access Database’

Page 47: qtp

2) The records are then displayed in the below window:

SCREEN CAPTURES: Application Name: - MS-ACCESS Application (Test Case Passed)

Page 48: qtp
Page 49: qtp
Page 50: qtp
Page 51: qtp

Practical No: - 12

VIRTUAL OBJECT CREATION

Steps:

1) Open QTP2) Go to “Tools”

Virtual Objects New Virtual Objects

3) In the subsequent windows mark the required object button or checkbox and rename it.The virtual object is then created as below.

4.)you can view the created virtual objects in virtual obj mgr

4) Start recording and click on the created virtual object(button/checkbox).

Screen Captures : WEB Application

Page 52: qtp

Screen Captures : WINDOWS Application

Page 53: qtp
Page 54: qtp

4.2 ENVIRONMENT VARIABLES PARAMETER

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) Each and every actions such as “Logging into the application”, “Selecting and inserting data” etc. will be recorded by the QTP software.

5) Stop the recording using button

6) In the QTP software click on the … Action1

For “Agent Name” click on the small angular <> braces. Then the below window appears

Record

Stop

Page 55: qtp

7) Using the STEP GENERATOR add the Msgbox function. The details should then be entered. The window looks like below.

Page 56: qtp

8) Click on the OK button and then RUN the recording.

SCREEN CAPTURES: Application Name: - WINDOWS Application

Page 57: qtp
Page 58: qtp

SCREEN CAPTURES: Application Name: - WEB Application

Page 59: qtp

Practical no-13

RANDOM NUMBER PARAMETERS

STEPS:

1) Open the QUICK TEST PROFESSIONAL SOFTWARE.2) Click on File NewTest.3) To start a new recording click on the button

4) Each and every actions such as “Logging into the application”, “Selecting and inserting data” etc. will be recorded by the QTP software. Open an order then click on “New Order”.

5) Stop the recording using button

6) In the QTP software click on the … Action1

For “Order Number” click on the small angular <> braces. Then the below window appears

Record

Stop

Page 60: qtp

7) Click OK. Then Right-Click and add step Add For-Next Loop

In the expert view modify the loop condition and RUN the recording.

SCREEN CAPTURES: Application Name: - WINDOWS Application

Page 61: qtp
Page 62: qtp

SCREEN CAPTURES: Application Name: - WEB Application

Page 63: qtp

Practical :- 14

ACTION REUSABILITY IN QTP

Steps:

1) Open QTP2) Record the flight application3) To split the recording into three parts i.e. Login,Entering Order and Exit.4) In the expert view keep the cursor on the first step of the next action (e.g. To split the flight

recording keep the cursor on the next step of the “OK button” of login window) 5) Then go to Edit Action Split Action

Page 64: qtp

6) Give the desired name for Actions.The actions are usually splitted in format 1-2,2-3..7) Then open a new test in the Insert Call To Copy Of Action (This copies only one line i.e. points

to the action already saved.)8) Or else Insert Call To Existing Action (This copies the entire code)9) Then RUN the test.

Screen Captures : WINDOWS Application

Page 65: qtp
Page 66: qtp

practical-7

Page 67: qtp

Introduction to QTP

Active Screen

Title Bar Menu BarFile ToolbarTesting ToolbarDebug Toolbar

Test Pane

Data table

Page 68: qtp

Keyword view Expert view

Test Results Tree

Test Results Details

Iteration Summary

Status Summary

Page 69: qtp
Page 70: qtp