QTP
Download
1 / 50

QTP - PowerPoint PPT Presentation


  • 109 Views
  • Uploaded on

QTP. Prepared By Ashish Kumar Srivastava. What is Automation-. Test Automation is the use of software to control the execution of tests & the comparison of results- actual with the predicted/expected.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' QTP' - waseem


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

QTP

Prepared ByAshish Kumar Srivastava


What is automation
What is Automation-

  • Test Automation is the use of software to control the execution of tests & the comparison of results- actual with the predicted/expected.

  • A software program that is used to test another software program, this is referred to as Automated software testing.

  • A third party tool is used to test the application.

  • Use of automation tools reduces the test time as well as the cost.

Ashish Kumar Srivastava


Why automation
Why Automation-

. Avoid the errors that human make when they get tired after multiple repetitions.

. The test program wont skip any test by mistakes.

. Each feature test cycle will take less time & Required less

human intervention.

. Required for Easy cycle of Regression Testing.

Ashish Kumar Srivastava


Benefits of test automation
Benefits of Test Automation-

. Allows more testing to be done

. Strengthen Test Cycle

. Testing is Consistent, repeatable

. Useful when new patches released

. Makes configuration testing easier

. Test battery can be continuously improved

Ashish Kumar Srivastava


False benefits
False Benefits-

. Fewer tests will be needed

. It will be easier if it is automated

. Compensate for poor design

. No more Manual Testing

Ashish Kumar Srivastava


What are the different tools available in the market for functional testing
What are the different tools available in the market (for functional testing)-

. Rational Robot

. Win Runner

. QTP

. Silk Test

. QA Run

. Web FT

Ashish Kumar Srivastava


Life cycle of automation
Life Cycle Of Automation- functional testing)-

Analyze the Application

Select The Tool

Identify the session

Design/ Record Test Scripts

Run the test scripts

Finding & Reporting the defects

Ashish Kumar Srivastava


What is the diff between wr qtp
What is the diff. between WR & QTP- functional testing)-

Ashish Kumar Srivastava


Introduction to qtp
Introduction to QTP - functional testing)-

. Developed by Mercury interactive But Now by HP

. Developed for web functionality

.QTP supports both web applications & windows applications

. QTP Developed in 2002

. Test Script developed on VB Script

. QTP supports Languages is

.NET. J2EE, Main Frame, XML,Java

ERP -> SAP, Seibel, People soft

. QTP Supports both Technical & Non Technical People

. QTP run on only windows platform not supporting UNIX, Linux etc

Ashish Kumar Srivastava


Versions of qtp
Versions of QTP - functional testing)-

QTP 5.5 2002

5.6

6.0 Industry started from this version

6.5

8.0

Rapidly working on(8.0,,9.0)

9.0

9.2 Current Version

Ashish Kumar Srivastava


Environment needs for qtp
Environment needs for QTP - functional testing)-

System Requirement : IBM-PC (or) Equivalent to P3

Hardware Drive : 250MB of Free Memory space

RAM : 256MB of RAM

OS : M/S windows 2000 server with 3-4 service pack

M/S windows XP with 1-2 SP

M/S windows 2003 with no service pack

Web Browser : MS Internet Explorer 5.5

Netscape Navigator 6.11, 6.22, 6.23, 7.02, 7.1

AOL 8.0, 9.0

Ashish Kumar Srivastava


Overview of qtp
Overview of QTP - functional testing)-

  • Testing Process of QTP

  • Windows Structure of QTP

  • Add Ins of QTP

  • Architecture of QTP

  • Execution process in QTP

  • Development of Automation Test

  • Recording Modes in QTP

  • Object Repository

  • Object Spy

  • Transaction

  • Virtual Object

  • Check Points

  • Actions

  • Exception Handling

  • Object identification

  • Ordinal Identifier

  • Smart Identification

  • Output Values

  • Synchronization point

  • QTP Run Modes

  • Regular Expressions

  • Descriptive Programming

  • Environment Variables

  • VB-Script

  • Hoe to work with Functions

  • Associated Library

Ashish Kumar Srivastava


Testing process of qtp
Testing Process of QTP - functional testing)-

1) Record & Run Settings

2) Develop Automation Testing

3) Enhance/ Customize Automation test

4) Debug Automation Test

5) Execute Automation Test

6) Analyze Test Results

7) Report defects in bug tracking tool

Ashish Kumar Srivastava


Window structure of qtp
Window Structure of QTP - functional testing)-

1) Test Pane

2) Active Screen

3) Data Table

4) Debug Viewer

Ashish Kumar Srivastava


Add ins of qtp
Add Ins of QTP - functional testing)-

It gives information about the technology supported by the QTP

By default three Add Ins are there in QTP

1) ActiveX

2) VB

3) Web

Additional Add ins:

1) Java

2) Oracle

3) People soft

4) .NET

5) Terminal Emulator

6) SAP

7) Siebel

Ashish Kumar Srivastava


Add in manager
Add In Manager functional testing)-

Ashish Kumar Srivastava


Architecture of qtp
Architecture Of QTP - functional testing)-

  • Execution Process in QTP

  • Development of Automation Test

    • Recording

    • Writing

    • Function Generator

Ashish Kumar Srivastava


Recording modes of qtp
Recording Modes of QTP - functional testing)-

There are three recording modes in QTP -

1)Normal Recording Mode

2) Analog Recording Mode

3) Low Level Recording Mode

Ashish Kumar Srivastava


Record a test
Record a Test functional testing)-

Ashish Kumar Srivastava


Record run settings
Record & Run Settings- functional testing)-

Ashish Kumar Srivastava


Run a test and save results
Run a Test and Save Results- functional testing)-

Ashish Kumar Srivastava


View test results
View Test Results- functional testing)-

Ashish Kumar Srivastava


Object repository
Object Repository- functional testing)-

Object Repository is nothing but a storage location. It contains the collection logical name and physical description of a particular object.

Logical Name: For Naming Convention

Physical Description : is Nothing but expected physical properties

Two types of Object Repositories are available in QTP-

1) Per Action (.mtr)

2) Shared Object Repository (.tsr)

Ashish Kumar Srivastava


Open the object repository dialog box
Open the Object Repository Dialog Box- functional testing)-

Ashish Kumar Srivastava


Object spy
Object Spy- functional testing)-

Object spy is used to display or view all the physical properties and methods of an object or a window based on the requirement.

Example: If window(“Login”). Exists Then

Msgbox(“Pass”)

else

Msgbox(“Fail”)

End If

Ashish Kumar Srivastava


Virtual object
Virtual Object- functional testing)-

Virtual Object is used to identify the properties of similar objects in a particular Area.

Example: In normal recording if we select the paint brush window, the script will look like this-

window(“Paint”).Activate

Window(“Paint”).Winobject(“colors”).Click 72,16

Window(“Paint”).Winobject(“colors”).Click 80,14

window(“Paint”).Close

If we are using Virtual object, the script will look like this-

window(“Paint”).Activate

Window(“Paint”).Winobject(“colors”).Virtual Button(“RED”)

Window(“Paint”).Winobject(“colors”).Virtual Button(“BLUE”)

window(“Paint”).Close

Ashish Kumar Srivastava


Check points
Check Points- functional testing)-

Check Point is a verification point that compares the current value of the specified property with the expected value for that property.

There are 9 types of check points are available in QTP.

They are-

1) Standard Check Point

2) Text/ Text Area Check Point

3) Bitmap Check point

4) Database Check Point

5) Table Check Point

6) Page Check Point

7) XML Check Point

8) Image Check Point

9) Accessibility Check Point

Ashish Kumar Srivastava


Checkpoint types
Checkpoint Types functional testing)-

Ashish Kumar Srivastava


Inserting a checkpoint during recording
Inserting a Checkpoint During Recording- functional testing)-

Ashish Kumar Srivastava


Insert a checkpoint after recording
Insert a Checkpoint After Recording- functional testing)-

Ashish Kumar Srivastava


Identifying a failed checkpoint
Identifying a Failed Checkpoint- functional testing)-

Ashish Kumar Srivastava


Actions
Actions- functional testing)-

Action is nothing but a logical portion to entire script file based on the requirement. Each and every action should have meaningful result.

Types of Actions:

1) Regular (By default)

2) Reusable

3) External

How to work with Actions:

1) Call to copy of Action

2) Call to Existing Action

Ashish Kumar Srivastava


Data driven test
Data Driven Test- functional testing)-

Testing the same application with multiple sets of data.

How to use parameterization:

Ex:

Before parameterization

Dialog(“Login”).Activate

Dialog(“Login”).WinEdit(“name”).Set ”Axis”

Dialog(“Login”).WinEdit(“Password).SetSecure”axisitt”

Dialog”Login”.Close

After Parameterization

Dialog(“Login”).Activate

Dialog(“Login”).WinEdit(“Login name”).Set DataTable(”name”, dtglobalsheet)

Dialog(“Login”).WinEdit(“Password). (”password”, dtglobalsheet) Dialog”Login”.Close

Ashish Kumar Srivastava


Using data sheet global local location
Using Data Sheet (Global, Local & Location)- functional testing)-

Ashish Kumar Srivastava


Setting the parameter value
Setting the Parameter Value- functional testing)-

Ashish Kumar Srivastava


Test results iterations
Test Results Iterations- functional testing)-

Ashish Kumar Srivastava


Exception handling
Exception Handling- functional testing)-

It enables Quick test to detect and handle when unexpected

error occurred during execution time.

Types of Exception Handling:

1) Popup Exception Handling

2) Object State Exception Handling

3) Test Run Exception Handling

4) Application Crash

Ashish Kumar Srivastava


Object identification
Object Identification- functional testing)-

By using object identification we can map “customer user defined object” to “standard Class”.

Two types of properties are their in object Identification:

1) Mandatory Properties

2) Assistive properties

Ashish Kumar Srivastava


Ordinal identifier
Ordinal Identifier- functional testing)-

By using ordinal identifier options quick test able to identify an

object under ordinal identifier.

Three Components are available in ordinal identifier

1) Index

2) Location

3) Creation time

Ashish Kumar Srivastava


Smart identification
Smart Identification- functional testing)-

Quick test unable to identify the object, it is change randomly. To identify such object we need to use Smart Identification.

Two properties are available in Smart identification

They are-

1) Base Filter Properties

2) Optional Filter Properties

Ashish Kumar Srivastava


Synchronization point
Synchronization Point- functional testing)-

Synchronization point maintains the time coordination between testing process and your application process.

There are 4 types of synchronization points:

1) Sync

2) Wait, wait(5) or wait 5

3) Wait Property

4) Exist

Ashish Kumar Srivastava


Qtp test run modes
QTP Test Run Modes- functional testing)-

In QTP, we have 2 types of run modes-

1) Normal

2) Fast

Ashish Kumar Srivastava


Regular expressions
Regular Expressions- functional testing)-

It enables quick test to identify test string with varying value (varying means changing)

Regular Expressions can be used in the following areas:

1) Check Points

2) In parameterization

3) Data Driven test

4) Actions

5) Exception Handling….etc

Ashish Kumar Srivastava


Using a regular expression
Using a Regular Expression- functional testing)-

Ashish Kumar Srivastava


Some regular expressions
Some Regular Expressions- functional testing)-

Ashish Kumar Srivastava


Descriptive programming
Descriptive Programming- functional testing)-

Without using the object repository test engineer can develop automation test in this particular accept, we need to use a technique called as descriptive programming.

Script:

Dialog(“test:=Login”).Activate

Dialog(“text;=Login”).wineidt(“attached text:= Login name”). Set “Axisitt”

Dialog(“text:=Login”).wineidt(“attached text:= Password”). Set “88888” .

Dialog(“text:=Login”).Close

Ashish Kumar Srivastava


How to work with environmental variables
How to work with Environmental variables- functional testing)-

It is a special type of variable which is use to expose the data related to environment.

Environment Variables

Built In user defined

Internal External

Ashish Kumar Srivastava


  • VB Script functional testing)-

  • Associated library

  • How to work with methods

  • How to work with functions

  • Back End testing

  • How to work with Win Runner

  • How to connect Quality center

Ashish Kumar Srivastava


Comments queries
Comments & Queries- functional testing)-

Queries are always welcome.

Ashish Kumar Srivastava


Feedback
Feedback- functional testing)-

-Please spend few minutes from your

valuable time to provide your feedback.

-It will help us to improve in next sessions.

Thanks & Happy Testing..

Ashish Kumar Srivastava


ad