+ All Categories
Home > Technology > QTP Tutorial Slides Presentation.

QTP Tutorial Slides Presentation.

Date post: 26-May-2015
Category:
Upload: jaya-priya
View: 3,239 times
Download: 4 times
Share this document with a friend
Description:
My first test qtp tutorial slide presentation.--------------------------------------------------------------------mail2web - Check your email from the web athttp://link.mail2web.com/mail2web
Popular Tags:
28
QucikTest Professional 8.2 QucikTest Professional 8.2 Tutorial Tutorial
Transcript
Page 1: QTP Tutorial Slides Presentation.

QucikTest Professional 8.2QucikTest Professional 8.2

TutorialTutorial

Page 2: QTP Tutorial Slides Presentation.

Automated Testing

QTP Introduction

Preparation

Record

Enhance

Run & Debug

Reference

OutlineOutline

Page 3: QTP Tutorial Slides Presentation.

Drawbacks of manual testing

Time-consuming and tedious

Impossible to test each feature thoroughly

Page 4: QTP Tutorial Slides Presentation.

Benefits of AT

Fast (快速 ) Reliable (可靠 ) Repeatable (可重复 ) Programmable Comprehensive (全面 ) Reusable(可重用 )

Page 5: QTP Tutorial Slides Presentation.

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

Page 6: QTP Tutorial Slides Presentation.

Testing process

Preparation

Record

Enhance

Run & Debug

Analyze

Page 7: QTP Tutorial Slides Presentation.

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

Page 8: QTP Tutorial Slides Presentation.

Record

QuickTest Window Hop to record?

Page 9: QTP Tutorial Slides Presentation.
Page 10: QTP Tutorial Slides Presentation.

Enhance your test

Add comment Creating checkpoints Parameterizing TestsSuggestions:

Playback of it first

Page 11: QTP Tutorial Slides Presentation.

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

Page 12: QTP Tutorial Slides Presentation.

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

Page 13: QTP Tutorial Slides Presentation.
Page 14: QTP Tutorial Slides Presentation.

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

Page 15: QTP Tutorial Slides Presentation.

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.

Page 16: QTP Tutorial Slides Presentation.

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.

Page 17: QTP Tutorial Slides Presentation.

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.

Page 18: QTP Tutorial Slides Presentation.

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.

Page 19: QTP Tutorial Slides Presentation.

Advanced configuration

Regular expression

Use Data Table formula

Page 20: QTP Tutorial Slides Presentation.

Run & Debug

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

Page 21: QTP Tutorial Slides Presentation.

Analyze

Read test report Why it fails if it exits

Page 22: QTP Tutorial Slides Presentation.

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

Page 23: QTP Tutorial Slides Presentation.

What’s not mentioned

Split Action Insert Action Find objects VBScript Descriptive Programming ……

Page 24: QTP Tutorial Slides Presentation.

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

Page 25: QTP Tutorial Slides Presentation.

Qualification

Be familiar with the system

Have a better understanding of QTP

Others

Page 26: QTP Tutorial Slides Presentation.

Resource

http://softwareqatestings.com/content/category/8/46/90/

Page 27: QTP Tutorial Slides Presentation.

Any Questions?Any Questions?

Page 28: QTP Tutorial Slides Presentation.

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


Recommended