16
Learn Test Automation & start using HP Quick Test Professional (QTP)

Winter Intership learn Qtp in Apextgi

Embed Size (px)

DESCRIPTION

Automation – Need for automation, Rules of automation Exposure to the Automation Concepts and Kick start the learning of one of the leading tool QTP

Citation preview

Page 1: Winter Intership learn Qtp in Apextgi

Learn Test Automation &

start using HP Quick Test Professional (QTP)

Page 2: Winter Intership learn Qtp in Apextgi

Automation – Need for automation, Rules of automation

Exposure to the Automation Concepts and Kick start the learning of one of the leading tool QTP

Page 3: Winter Intership learn Qtp in Apextgi

Speed : Automation Scripts run very fast when compared to human users

Reliable : Tests perform precisely the same operations each time they are run, there by eliminating human error.

Repeatable: We can test how the application reacts after repeated execution of the same operation

Comprehensive : We can build a suite of tests that covers every feature in our application

Reusable : We can reuse tests on different versions of an application, even if the user interface changes.

Page 4: Winter Intership learn Qtp in Apextgi

Product feature understanding, test planning, test case documentation, test bed setup, defect tracking, progression tests are all done in manual mode

Test automation success depends on robustness of the test cases not on the test tool.

Every manual step has commands in test scripts If it is not worth, DO NOT AUTOMATE. Do not build application logic in your test scripts Always have a common know base state for test cases One test script Action must address one test case.

Testing Tools are usually very expensive. The test manager or the test lead has to think twice before going in for automating his test effort. There are also some widely held false notions or beliefs about automation tools.

Page 5: Winter Intership learn Qtp in Apextgi

Quick Test Professional (HP) WinRunner (HP) Robot (IBM Rational) Functional Tester (IBM Rational) SilkTest (Borland) TestComplete (AutomatedQA) QAWizard (Seapine) TestPartner (Compuware) QEngine (AdventNet) Open source tools (Sahi, Watir)

Various functional testing tools available

Page 6: Winter Intership learn Qtp in Apextgi

Analyze the Application

Select The Tool

Finding & Reporting Defects

Identify the session

Design/ Record Test Scripts

Run the Test Scripts

Life Cycle Of Automation

Page 7: Winter Intership learn Qtp in Apextgi

Developed by Mercury interactive now owned by HP Developed for web functionality QTP supports both web applications & windows

applications QTP Developed in 2002, present version in the market

is 9.5 Test Script developed on VB Script QTP supported Technology

.NET. J2EE, Main Frame, XML, Java, DelphiERP -> SAP, Sibel, People soft

QTP Supports both Technical & Non Technical People QTP run on only windows platform not supporting

UNIX, Linux etc

Introduction to QTP

Page 8: Winter Intership learn Qtp in Apextgi

System Requirement: Equivalent to P3 and above

Hardware Drive : 250MB of Free Memory space

RAM : 512MB of RAMOperating System : 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 and above Netscape Navigator 6.11, 6.22, 6.23,

7.02, 7.1 AOL 8.0, 9.0

Environment needs for QTP 10.0

Page 9: Winter Intership learn Qtp in Apextgi

Technology supported by the QTP

By default three Add Ins are there in QTP

Active X VB Web

Additional Add ins:

Java Oracle People soft .NET Terminal Emulator (RTE) SAP Sibel Delphi

Add Ins Supported by QTP

Page 10: Winter Intership learn Qtp in Apextgi

1) Test Pane

2) Active Screen

3) Data Table

4) Debug Viewer

Window Structure of QTP

Page 11: Winter Intership learn Qtp in Apextgi

Script(.mts file)

Action1 Rep1 (.mtr file)Sheet1 (local Sheet)

Parameters - Action ParametersAction2 Rep 2 (.mtr file)Sheet 2 (local Sheet)

Parameters - Action Parameters

Action3 Rep 3 (.mtr file)Sheet3 (local Sheet)Parameters - Action Parameters

Shared Repository t (.tsr file)Global Sheet

Environment ParameterTest Parameter

””

Architecture Of QTP

Page 12: Winter Intership learn Qtp in Apextgi

Object Spy Object Identification

Understanding customizing Non – Standard Objects Understanding Way of Recognition

Object Repository Simple Record and Replay Types of Record – Context Sensitive, Analog, Low Level

Record Managing Script with Various Data

Parameters (DataTable) VB Scripting (String Manipulation, Msgbox, Split

command, InStr, Loops, Conditions) Managing Script with Dynamic Objects

Regular Expression Smart Identification

Check Points – Standard, Bitmap, Text

Topics Being Explained Here

Page 13: Winter Intership learn Qtp in Apextgi

Object Spy

Object spy is used to display or view all the physical properties and methods of an object.

Page 14: Winter Intership learn Qtp in Apextgi

Used to Map non Standard Object to Standard Object

Used to configure Recognition properties for an object class.

Recognition properties are configured using Mandatory Properties Assistive properties (are used when mandatory

property fails to recognize the object uniquely) Ordinal Identifier (are used when both mandatory

and assistive fails to recognize the object uniquely) Location (Represent x- coordinate of the

screen or parent object Nearest to x is 0) Index (Works based on active screen – active

screen being 0 by default) Creation Time (For web browsers, no. of

instances decides the creation time)

Object Identification

Page 15: Winter Intership learn Qtp in Apextgi

Stores the object for the purpose of playing back

Uses Logical Name and Description properties to recognize the object from script and application respectively

Description Properties are created through Object Identification

Repository can be managed using Per Action mode (.mtr File) and Shared Repository Mode (.tsr File) by the script

Object Repository

Page 16: Winter Intership learn Qtp in Apextgi

Contact Us @ : E-20, sector – 63, Noida0120 402 90 00/24/27Visit us : http://www.apextgi.in