Qtp online training basics by quontra solutions

Page 1

info@quontrasolutions.com

QucikTest Professional 8.2 Tutorial

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Outline Automated Testing QTP Introduction Preparation Record Enhance Run & Debug Reference www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Drawbacks of manual testing

ď‚Ž

Time-consuming and tedious

ď‚Ž Impossible to test each feature thoroughly

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Benefits of AT  Fast  Reliable  Repeatable  Programmable  Comprehensive  Reusable

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

QTP Introduction 

What is QTP? Mercury QuickTest Professional is functional test and regression test automation solution that address every major software application and environment.

Basic purpose: to test standard web object, ActiveX controls and Visual Basic controls

Structure: B/S and C/S

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Testing process Preparation Record Enhance Run & Debug Analyze www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Preparation Testing Plan: Computer:

What process and web? What’s the expected? When to begin and end? Close unneeded software (anti-virus, etc) Internet Explorer settings

QTP 8.2 or newer

QTP:

Required add-in

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Record  QuickTest

Window  Hop to record?

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Enhance your test  Add

comment  Creating checkpoints  Parameterizing Tests  Suggestions:

Playback of it first

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Add Comment 

 

‘Browser("Browser").Page("Page_2").WebEdit("#hobby").Set "Reading novels" Browser("Browser").Page("Page_2").WebButton("Submit").Click

Rem

Rem <<<<<<<<<<<<<check the output Browser("Browser").Page("Page_3").WebElement("input_text_1").Check CheckPoint("input_text_1") Browser("Browser").Page("Page_3").WebEdit("#hobby").Set "Watching TV" Browser("Browser").Page("Page_3").WebButton("Submit").Click

  

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Creating checkpoints 

A checkpoint is a verification point that compares a current value for a specified property with the expected value for that property.

Effect: it enables you to identify whether your Web site or application is functioning correctly.

Pre-defined checkpoint  User-defined checkpoint 

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

User-defined checkpoint  

 

Dim Style , index Style = Browser("Browser").Page("Page_22").WebEdit("#Aim").GetROProperty("outer HTML") index = InStr (Style, "color=read") If index <>0 Then Reporter.ReportEvent micPass, "HTML compared", "OK" Else Reporter.ReportEvent micFail, "HTML compared", "Trouble" End If

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Parameterizing Tests ď ś

A parameter is a variable that is assigned a value from an external data source or generator.

ď ś

It greatly increases the power and flexibility of your test or component.

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Parameters’ types 

Test, action or component parameters enable you to use values passed from your test or component, or values from other actions in your test.

Data Table parameters enable you to create a datadriven test (or action) that runs several times using the data you supply.

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Parameters’ types (Continued) 

Environment variable parameters enable you to use variable values from other sources during the run session.

Random number parameters enable you to insert random numbers as values in your test or component.

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Two types of Data sheets  Global 

Usage: it will be available to all actions and control the number of test iterations.

 Local 

Sheet

Sheet

Usage : it will be available in that action only and control the number of action iterations.

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Advanced configuration ď ś

Regular expression

ď ś

Use Data Table formula

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

g u b e D & Run    

Wait() and sync Msgbox() Object Spy Debug toolbar

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Analyze  Read

test report  Why it fails if it exits

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Features of QTP         

Active Screen Keyword View & Expert View Auto-Documentation Generator : Step & Function Check Point :Standard, Table, Text, etc.. DataTable: Global & Local Parameterizing Object Spy Object Repository

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

What’s not mentioned  Split Action  Insert Action  Find objects  VBScript  Descriptive Programming  ……

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Plus Keyword 

It deploys the concept of Keyword-driven testing to radically simplify test creation and maintenance.

When   

driven Testing

to use QTP?

When the system is relatively stable Functional testing & Regression testing How long and how frequent

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Qualification Be familiar with the system Have a better understanding of QTP Others

www.quontrasolutions.com

Ph. (404)-900-9988


info@quontrasolutions.com

Resource ď ś http://www.quontrasolutions.com/qa-

online-training-course.html

www.quontrasolutions.com

Ph. (404)-900-9988


Summary  QTP is one Keyword-driven testing tool suitable for functional testing and regression testing.  Testing     

Process

Preparation Record Enhance Run & Debug Analyze


info@quontrasolutions.com

Phone : +1-(404)-900-9988 email: info@quontrasolutions.com httP://www.quontrasolutions.com

www.quontrasolutions.com

Ph. (404)-900-9988


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.