winter intership learn qtp in apextgi
DESCRIPTION
Automation – Need for automation, Rules of automation Exposure to the Automation Concepts and Kick start the learning of one of the leading tool QTPTRANSCRIPT
Learn Test Automation &
start using HP Quick Test Professional (QTP)
Automation – Need for automation, Rules of automation
Exposure to the Automation Concepts and Kick start the learning of one of the leading tool QTP
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.
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.
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
Analyze the Application
Select The Tool
Finding & Reporting Defects
Identify the session
Design/ Record Test Scripts
Run the Test Scripts
Life Cycle Of Automation
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
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
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
1) Test Pane
2) Active Screen
3) Data Table
4) Debug Viewer
Window Structure of QTP
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
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
Object Spy
Object spy is used to display or view all the physical properties and methods of an object.
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
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
Contact Us @ : E-20, sector – 63, Noida0120 402 90 00/24/27Visit us : http://www.apextgi.in