Transcript

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

1.2 SCREEN CAPTURES: Application Name: - CALCULATOR Application

1.3 SCREEN CAPTURES: Application Name: - WEB Application

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

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

8) Then RUN the recording by clicking on the button

SCREEN CAPTURES: Application Name: - PAINT Application

Run

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

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

For WINDOWS

7) Stop the recording and then the recording.

SCREEN CAPTURES: Application Name: - WEB Application

SCREEN CAPTURES: Application Name: - WINDOWS Application

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

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

SCREEN CAPTURES: Application Name: - WEB Application

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

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.

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

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

SCREEN CAPTURES: Application Name: - NOTEPAD Application

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

SCREEN CAPTURES: Application Name: - NOTEPAD Application

Image Checkpoint

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

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

SCREEN CAPTURES: Application Name: - WEB Application

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:

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

STEPS for MS-Access Application:

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

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

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

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

Screen Captures : WINDOWS Application

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

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

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

SCREEN CAPTURES: Application Name: - WINDOWS Application

SCREEN CAPTURES: Application Name: - WEB Application

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

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

SCREEN CAPTURES: Application Name: - WEB Application

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

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

practical-7

Introduction to QTP

Active Screen

Title Bar Menu BarFile ToolbarTesting ToolbarDebug Toolbar

Test Pane

Data table

Keyword view Expert view

Test Results Tree

Test Results Details

Iteration Summary

Status Summary

top related