qtp online training basics by quontra solutions

28
QucikTest Professional QucikTest Professional 8.2 8.2 Tutorial Tutorial [email protected] ww.quontrasolutions.com Ph. (404)-900-9988 [email protected]

Upload: quontrasolutions

Post on 24-May-2015

297 views

Category:

Education


0 download

DESCRIPTION

Quontra Solutions QTP online IT training programs constitute an excellent platform for fresher’s and experienced professionals looking for a challenging career in the software industry. Beneficially, our IT training programs allow employees and students to avail training at their own pace, achieve custom schedules, and minimize loss of productivity. Exclusive course features: • Featured instructors with global experience • Customized training with subject matter expertise • Live mobile developing/testing projects to test your learning skills • Tailored courses for each mobile device • Interactive sessions through webinars with peers and faculty • Newsletters with market updates • Open forums, blogs, mock interviews and interview questions For more details: http://www.quontrasolutions.com Email: [email protected] Call us: US: +1 404-900-9988. UK: (20)3734 1498. fallow us @ https://twitter.com/QuontraTraining https://www.facebook.com/pages/Quontra-Solutions/615068068589575

TRANSCRIPT

Page 1: Qtp online training basics by quontra solutions

QucikTest Professional 8.2QucikTest Professional 8.2

TutorialTutorial

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

[email protected]

Page 2: Qtp online training basics by quontra solutions

Automated Testing

QTP Introduction

Preparation

Record

Enhance

Run & Debug

Reference

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 3: Qtp online training basics by quontra solutions

Drawbacks of manual testing

Time-consuming and tedious

Impossible to test each feature thoroughly

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 4: Qtp online training basics by quontra solutions

Benefits of AT

Fast Reliable Repeatable Programmable Comprehensive Reusable

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 5: Qtp online training basics by quontra solutions

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

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 6: Qtp online training basics by quontra solutions

Testing process

Preparation

Record

Enhance

Run & Debug

Analyze

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 7: Qtp online training basics by quontra solutions

Preparation

Testing Plan:

What process and web?What’s the expected?When to begin and end?

Computer:Close unneeded software (anti-virus, etc)

Internet Explorer settings

QTP:QTP 8.2 or newer

Required add-in

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 8: Qtp online training basics by quontra solutions

Record

QuickTest Window Hop to record?

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 9: Qtp online training basics by quontra solutions

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 10: Qtp online training basics by quontra solutions

Enhance your test

Add comment Creating checkpoints Parameterizing TestsSuggestions:

Playback of it first

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 11: Qtp online training basics by quontra solutions

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

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 12: Qtp online training basics by quontra solutions

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

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 13: Qtp online training basics by quontra solutions

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 14: Qtp online training basics by quontra solutions

User-defined checkpoint

Dim Style , index Style =

Browser("Browser").Page("Page_22").WebEdit("#Aim").GetROProperty("outerHTML")

index = InStr (Style, "color=read") If index <>0 Then

Reporter.ReportEvent micPass, "HTML compared", "OK"Else

Reporter.ReportEvent micFail, "HTML compared", "Trouble"End If

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 15: Qtp online training basics by quontra solutions

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.

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 16: Qtp online training basics by quontra solutions

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 data-driven test (or action) that runs several times using the data you supply.

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 17: Qtp online training basics by quontra solutions

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.

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 18: Qtp online training basics by quontra solutions

Two types of Data sheets

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

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

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 19: Qtp online training basics by quontra solutions

Advanced configuration

Regular expression

Use Data Table formula

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 20: Qtp online training basics by quontra solutions

Run & Debug

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

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 21: Qtp online training basics by quontra solutions

Analyze

Read test report Why it fails if it exits

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 22: Qtp online training basics by quontra solutions

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

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 23: Qtp online training basics by quontra solutions

What’s not mentioned

Split Action Insert Action Find objects VBScript Descriptive Programming ……

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 24: Qtp online training basics by quontra solutions

Plus

Keyword driven Testing It deploys the concept of Keyword-driven testing to radically simplify It deploys the concept of Keyword-driven testing to radically simplify

test creation and maintenance.test creation and maintenance.

When to use QTP?When to use QTP? When the system is relatively stable Functional testing & Regression testing How long and how frequent

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 25: Qtp online training basics by quontra solutions

Qualification

Be familiar with the system

Have a better understanding of QTP

Others

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 26: Qtp online training basics by quontra solutions

Resource

http://www.quontrasolutions.com/qa-online-training-course.html

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Page 27: Qtp online training basics by quontra solutions

Summary

QTP is one Keyword-driven testing tool Keyword-driven testing tool suitable for functional testing and regression testing.

Testing Process Preparation Record Enhance Run & Debug Analyze

Page 28: Qtp online training basics by quontra solutions

[email protected]

www.quontrasolutions.com Ph. (404)-900-9988

Phone : +1-(404)-900-9988

 Email: [email protected]

http://www.quontrasolutions.com