1

Click here to load reader

Practical tasks for qtp basics

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Practical tasks for qtp basics

QTP Basics - Training Tasks

1. Understanding QTP record and playback processCreate record and playback script for notepad application. This script must execute notepad application, enter some text into the text field, save the file and quit notepad. Check object repository for created objects.

2. Working with QTPAdd start and end transactions to created script 1.

3. Introduction to ParameterizationAdd parameterization to created script 1. Application name and entering text string must be loaded from data-table.

4. ActionsCreate test script for calculator application by the next structure:1) action – execute calculator2) action – press buttons (input parameter: buttons)3) action – close calculatorUse this actions in the Main action of the script, input data must be loaded from data-table.

5. Adding Validations to Script

1. Creating datatable with 3 or 4 accounts in http://newtours.mercuryinteractive.com/ system, where only 1 account is valid (registered in system)2. Create 4 base reusable actions (login, check login, logout, check logout) which called from Main Action. Login and pass must be as parameters input. Result login and logout must be as output parameters. All result must be wrote in Output DataTable.3. All verifying objects (image, text objects, present of editboxes – login and pass) should be done through checkpoints.

7. Reporting Functions

1. Creating datatable with 3 or 4 accounts in http://newtours.mercuryinteractive.com/ system, where only 1 account is valid (registered in system)2. Create 4 base reusable actions (login, check login, logout, check logout) which called from Main Action. Login and pass must be as parameters input. Result login and logout must be as output parameters. All result must be wrote in Output DataTable.3. All verifying objects (image, text objects, present of editboxes – login and pass) should be done through script (by Reporter Object) . 4. Filter only failed results in Results Report.