SlideShare une entreprise Scribd logo
1  sur  52
For more details please contact us:
US : +1 718 819 9361
INDIA : +91 8099776681
Email Us : sales@kerneltraining.com
Welcome to QTP
(QUICK TEST PROFESSIONAL)
2 http://kerneltraining.com/qtp/
What is QTP
 QTP stands for QuickTest Professional
 It is an automated testing tool provided by
HP/Mercury Interactive
 QTP integrates with other Mercury testing solutions
including:
• TestDirector/Quality Center
• WinRunner
• LoadRunner
 Utilizes an add-in architecture for compactness and
extensibility
3 http://kerneltraining.com/qtp/
Types of Testing
 Manual
• Usage of steps defined within test cases to
manually test the application to ensure that it
functions properly
 Automated
• Automation of the manual testing process to all
unattended execution and ensure repeatability
4 http://kerneltraining.com/qtp/
What Should Be Automated
 Good candidates
• Tests executed for each build
• Business critical tests
• Tests that are difficult/tedious to perform manually
 Bad candidates
• Tests without predictable results
• Test that require variable input/responses from the
tester
• Tests that perform operations in multiple
environments
5 http://kerneltraining.com/qtp/
Which Test Cases to Automate?
 Tests that need to be run for every build of the
application (sanity check, regression test)
 Tests that use multiple data values for the same actions
(data driven tests)
 Stress/load testing
 Tests requiring a great deal of precision
6 http://kerneltraining.com/qtp/
QTP – An Introduction
 Quick Test Professional is the flagship functional testing tool
from Mercury Interactive.
 It is an icon based tool, which automates the functional &
regression testing of an application.
 QTP is easier to use and implement for both technical & non
technical testers in comparison to other functional testing tools
available.
 The new version of HP QTP is being called HP Unified
Functional Testing 11.5 (UFT 11.5). UFT 11.5 is actually a
combination of HP QTP (for testing GUI) and HP Service Test
(for testing API).
7 http://kerneltraining.com/qtp/
Leading Available Automation Tools
8 http://kerneltraining.com/qtp/
Salient Features
 Scripting Language is VBScript which is easy to use ,
understand and program even complex functionalities
with ease..
 Uses “Active Screen” technology to record scripts
which aids the tester in referring to the screens object
properties.
 Library files contains VBScript functions and
subroutines that can be added to the test.
 Support Modern Development Environment.

9 http://kerneltraining.com/qtp/
QTP Environment
 Windows
• C++, Visual Basic, Java, .NET
 Web
• Web Applications, Web services
 Other technologies
• SAP, Siebel, Oracle, Peoplesoft, ActiveX
10 http://kerneltraining.com/qtp/
Add-in Architecture
 Enables QTP to provide support for multiple technologies.
 Add-ins are software that need to be installed on a system
that has QTP. It then becomes integrated with the QTP
environment.
 QTP is sold with the ability to understand a few technologies,
add-ins provide QTP with the ability to understand
additional technologies
 Users are able to select the specific add-ins for the
technologies they are testing thereby reducing the memory
footprint of QTP
11 http://kerneltraining.com/qtp/
QTP Add-ins
 When QTP is started, you should select only the add-ins for
technologies that are used with your application.
 Some of the available add-ins are
• ActiveX - For testing software written using ActiveX (also
known as COM) technology. This technology allows people
to create objects in one language and use those objects
within other languages/applications
• Visual Basic - For applications written in the Visual Basic
language
• Web - For testing web applications written in any language.
In web applications, we interact with the application though
a web browser and so the web application can be written in
any language.
12 http://kerneltraining.com/qtp/
The Main Screen
13 http://kerneltraining.com/qtp/
Testing Process
 Create Object Repository
 Create Tests
o Record
o Edit
• Insert checkpoints
• Insert synchronization points
• Insert output values
• Parameterize test
• Include VBScript code
 Debug test
 Run tests
14 http://kerneltraining.com/qtp/
What is a QTP Test
 It is called a test script but is actually a
folder containing several files
 Broken down into subparts known as
'Actions‘
 Internally represented using the VBScript
programming language
15 http://kerneltraining.com/qtp/
Actions
 A test is broken into a series of ‘Actions’
• Actions can be renamed to reflect what they do
• Actions can be invoked multiple times within a
test
• Actions can be marked as reusable so they can be
called from other tests
 Only reusable actions can be called from other tests
reusable actions can be called from other
16 http://kerneltraining.com/qtp/
 Menus
 Toolbar
• Provides easy access to items on the menus
 Record & Run Settings
 Test Settings
 Tools
Overview QTP Tool
17 http://kerneltraining.com/qtp/
QTP Tool [Code Window]
 Provides a WYSIWYG editor to use in writing your test script
o Keyboard view
• Provides an icon-based representation of the code being
written. This is often the easiest code view for non-
programmers
o Expert View
• Provides a VBScript code based representation of the
code being written. This is the most flexible code
18 http://kerneltraining.com/qtp/
QTP Tool [Views]
 Active Screen
• Provides screenshots of all objects recorded and
also supports object highlighting
 Data Table
• Shows the data file that can be used to configure
the application
 Debug Viewer
• Provides tools to debug code and view the
value of variable/expression during code
execution
19 http://kerneltraining.com/qtp/
Create Object Repository [STEP 1]
 Intro to Object Oriented Programming
o Objects are a representation of every item found in an
application
o Objects are visual (e.g. Button, Textbox) and non-visual
(e.g. Dictionary, Reporter) elements within an application.
Each object has the following elements
• Properties, Methods & Events
o All objects must have a unique name and belong to a class.
o Objects are referenced in code using dot notation
objectName.Method()
20 http://kerneltraining.com/qtp/
Objects
 Properties
• These are characteristics of the object e.g. the text on a button.
QTP uses this to recognize the object
 Methods
• These are built in functionality of the object. The VBScript code
that we write (or record) actually makes calls to the methods of
an object e.g. Reporter.ReportEvent() Here ReportEvent is the
method of the Reporter object
 Events
• These are what can be done to an object. This is used by
programmers to determine what an object does in response to an
action you perform. It is however unused in QTP.
21 http://kerneltraining.com/qtp/
Objects
22 http://kerneltraining.com/qtp/
QTP Object Identification Process
 Object Identification
• The tool determines what properties of objects
are recorded
 Object Spy
• Allows users to view the property of an object
without recording it
 Object Repository
• Holds information recorded about each object
allowing the test to identify the object during
execution
23 http://kerneltraining.com/qtp/
Creating an Object Repository
 Per Action
• An object repository is created for each action
• This means that multiple object repositories
can be created per test
 Shared
• A single object repository is used for multiple
tests
24 http://kerneltraining.com/qtp/
CREATE TEST [STEP 2]
 Record Steps
 Edit
• Insert synchronization points
• Insert checkpoints
• Insert output values
• Parameterize values
• Include VBScript code
25 http://kerneltraining.com/qtp/
Record
 Read the outline of steps to perform
 Practice performing the steps to minimize
error
 Choose record mode
• Context Sensitive
• Analog
• Low level
 RECORD
 Stop, Save test, playback
26 http://kerneltraining.com/qtp/
To Record a Test
27 http://kerneltraining.com/qtp/
Keyword View
28 http://kerneltraining.com/qtp/
Expert View
29 http://kerneltraining.com/qtp/
Edit Test
 Insert synchronization points
• Used to slow down execution of a test script
 Checkpoints
• Used to check expected value of a step against the
actual value at a specific point during execution
 Insert output values
• Used to retrieve values from the AUT
 Insert Parameterization
• Allows you to store data in the data table
 Include VB Script code
• Last option. Very powerful.
30 http://kerneltraining.com/qtp/
Synchronization Point
 Specific time
• Uses the wait function to pause the test for a
specific amount of time [in seconds]
 Until an event occurs
• Pauses until a specific property of an object has a
specific value
 A synchronization point is a line in the test script that
instructs QTP to wait for a certain response from the
application during playback.
31 http://kerneltraining.com/qtp/
How to Add Synchronization Points
 Locate the lines in the script to insert the synchronization
point
 In Quick Test choose Insert > Step > Synchronization
Point. The mouse pointer turns into a pointing hand. This
should be done while recording.
 Using the Hand Pointer click on the object to Synchronize.
 Add Synchronization Point dialog box opens.
32 http://kerneltraining.com/qtp/
Check Points in QTP
• A checkpoint verifies that expected
information is displayed in your
application while the test is running.
33 http://kerneltraining.com/qtp/
Checkpoints
 Standard
• Checks multiple properties of a single object
 Text
• Checks part or all the text within an object
 Text Area
• Checks part or all the text within a text area object
 Bitmap
• Checks the visual layout of an entire object or a portion of the
object
 Database
• Checks data in the database
 Accessibility
• Checks web content accessibility against W3C accessibility rules
for the disabled
 XML
• Checks files using XML rules
34 http://kerneltraining.com/qtp/
Inserting Check Points
Right Click the object and select Insert
Checkpoint.
35 http://kerneltraining.com/qtp/
Output values
 Standard
• Stores a single property of an object in the data table
 Text
• Stores part or all the text of an object in the data table
 Text Area
• Stores the content of a text area in the data table
 Database
• Retrieves content from a database [using a SQL query] and
stores it in the data table
 XML
• Retrieves content from an XML file and store it in the data
table
36 http://kerneltraining.com/qtp/
Parameterize Data
 Allows your test to read data from the data table.
 The data table is an Excel spreadsheet file editable
from using Excel or any other application that can edit
a .xls document
 The DataTable is encapsulated in QTP in the
DataTable object. This object contains a sheet for every
action in the test as well as a globally accessible sheet
known as the global sheet
 Each sheet in the DataTable contains several columns
and rows.
 The columns can be renamed by double-clicking on
the header of the column.
37 http://kerneltraining.com/qtp/
Why Parameterization ?
 Parameterization allows us to pick different values at
run time.
 Reduces Time and Effort.
 Usage of data drivers allow us to use the same data for
various input boxes.
 Parameterization can also be done for checkpoints.
38 http://kerneltraining.com/qtp/
Parameterization Continues
Slide 39
http://kerneltraining.com/informatica/
Global and Action Data Sheets
 The Data Table contains two types of sheets:
 Global sheet: This enables you to share information from one
action to another. Should be used for data drivers and Output
Values.
 Action Sheet: Each action also has its own sheet in the Data
Table so that you can insert data that applies only to that action.
 When there are parameters in a current action’s sheet, you can
set Quick Test to run one or more iterations on that action before
continuing with the current global iteration of the test.
40 http://kerneltraining.com/qtp/
VBScript Coding
 When the tools provided by QTP are not sufficient
to test an application, VBScript coding can be
used.
 VBScript was created as a web programming
language by Microsoft and licensed by many
companies for use in their tools.
41 http://kerneltraining.com/qtp/
VBScript Coding
Analyzing Test Results
42 http://kerneltraining.com/qtp/
Test Results Window
43 http://kerneltraining.com/qtp/
Test Results
 Test Results Tree - an icon-based view of the steps that
were performed while the test was running. Similar to
the test tree in Quick Test main screen
 Iteration Summary – Provides the Status (pass/Fail) of
each iteration individually.
 Status Summary - Indicates the number of checkpoints
or reports that passed, failed, and raised warnings
during the test.
44 http://kerneltraining.com/qtp/
Viewing Test Results
45 http://kerneltraining.com/qtp/
Viewing Test Results
Integration of Winrunner, QTP & Test Director
46 http://kerneltraining.com/qtp/
Why Integrate QTP ?
 With Win Runner
 Facilitates running Win Runner tests and call TSL
functions in compiled modules with parameters by
creating calls to Win Runner tests and functions.
 With Test Director (TD)
 TD, Mercury Interactive test management tool, can help
you organize and control the testing process. It provides
an intuitive and efficient method for scheduling and
running tests, collecting test results, analyzing the results,
and managing test versions.
47 http://kerneltraining.com/qtp/
QTP & WinRunner
 QTP can easily be integrated with Win Runner, Test
Director and Load Runner.
 If the Winrunner is already installed and being used, then
QTP can be added without the loss of Winrunner scripts.
 Quick Test Pro will be able to call Win Runner Scripts.
 A single test can contain both Winrunner & QTP scripts.
48 http://kerneltraining.com/qtp/
Advantages of QTP over other Functional Automation tools
 Easy to use, icon based scripts. Easier for non technical
testers to learn.
 Usage of VBScript language for scripting which is very
powerful ,has lots of capabilities and can program even
complex functionalities with ease.
 The active screen technology allows the person writing
script to pick-up values that may have been left out
during recording. This helps to reduce re-work for
scripting.
49 http://kerneltraining.com/qtp/
Advantages of QTP over other Functional Automation tools
 Supports .Net, XML and other modern Environments.
 Test Run Iterations/Data driven testing is much easier
and better implemented with QTP. Capturing output
values add data driven testing more kick and
flexibility.
 Provides ability to trap exceptions and handle them
using inbuilt functions or user defined ones.
50 http://kerneltraining.com/qtp/
Recap
 Checkpoints - check
 Synchronization points - wait
 Output values – retrieve information
 Parameterization – configuration data
 VBScript – adds programmable logic
51
Call us: +91 8099776681
Email: sales@kerneltraining.com
http://kerneltraining.com/qtp/
Questions ?
52
Call us: +91 8099776681
Email: sales@kerneltraining.com
http://kerneltraining.com/qtp/

Contenu connexe

En vedette

QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.tjdhans
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECHPravinsinh
 
Basic vbscript for qtp
Basic vbscript for qtpBasic vbscript for qtp
Basic vbscript for qtpCuong Tran Van
 
QTP Presentation
QTP PresentationQTP Presentation
QTP Presentationamittech3
 
ORACLE UNIVERSITY CAMPUS SOLUTIONS TRAINING
ORACLE UNIVERSITY CAMPUS SOLUTIONS TRAININGORACLE UNIVERSITY CAMPUS SOLUTIONS TRAINING
ORACLE UNIVERSITY CAMPUS SOLUTIONS TRAININGchrisw_byrd
 
Oracle Applications
Oracle ApplicationsOracle Applications
Oracle ApplicationsAddvantum
 
Algebra 9-klas-malovanij
Algebra 9-klas-malovanijAlgebra 9-klas-malovanij
Algebra 9-klas-malovanijfreegdz
 
Aula De Impresso Francisca
Aula  De Impresso FranciscaAula  De Impresso Francisca
Aula De Impresso Franciscamolequinha
 
Refresh software testing concepts
Refresh software testing conceptsRefresh software testing concepts
Refresh software testing conceptsonewomanmore witl
 
PeopleSoft Campus Solutions
PeopleSoft Campus SolutionsPeopleSoft Campus Solutions
PeopleSoft Campus SolutionsCIMA IT
 

En vedette (20)

Uft ppt
Uft pptUft ppt
Uft ppt
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.
 
Web service testing using QTP (UFT)
Web service testing using QTP (UFT)Web service testing using QTP (UFT)
Web service testing using QTP (UFT)
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECH
 
Basic vbscript for qtp
Basic vbscript for qtpBasic vbscript for qtp
Basic vbscript for qtp
 
QTP Presentation
QTP PresentationQTP Presentation
QTP Presentation
 
ORACLE UNIVERSITY CAMPUS SOLUTIONS TRAINING
ORACLE UNIVERSITY CAMPUS SOLUTIONS TRAININGORACLE UNIVERSITY CAMPUS SOLUTIONS TRAINING
ORACLE UNIVERSITY CAMPUS SOLUTIONS TRAINING
 
Oracle Applications
Oracle ApplicationsOracle Applications
Oracle Applications
 
Basics of java
Basics of javaBasics of java
Basics of java
 
Algebra 9-klas-malovanij
Algebra 9-klas-malovanijAlgebra 9-klas-malovanij
Algebra 9-klas-malovanij
 
Aula De Impresso Francisca
Aula  De Impresso FranciscaAula  De Impresso Francisca
Aula De Impresso Francisca
 
Vb scripting
Vb scriptingVb scripting
Vb scripting
 
QTP Faqs
QTP FaqsQTP Faqs
QTP Faqs
 
Object oriented principles
Object oriented principlesObject oriented principles
Object oriented principles
 
Selenium Basics
Selenium BasicsSelenium Basics
Selenium Basics
 
Selenium IDE features
Selenium IDE featuresSelenium IDE features
Selenium IDE features
 
Refresh software testing concepts
Refresh software testing conceptsRefresh software testing concepts
Refresh software testing concepts
 
PeopleSoft Campus Solutions
PeopleSoft Campus SolutionsPeopleSoft Campus Solutions
PeopleSoft Campus Solutions
 
Qtp - Introduction to fundamentals of vbscript
Qtp - Introduction to fundamentals of vbscriptQtp - Introduction to fundamentals of vbscript
Qtp - Introduction to fundamentals of vbscript
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 

Dernier

Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 

Dernier (20)

Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

HP QTP Quick Test Professional Basics Online Training PPT

  • 1. For more details please contact us: US : +1 718 819 9361 INDIA : +91 8099776681 Email Us : sales@kerneltraining.com Welcome to QTP (QUICK TEST PROFESSIONAL)
  • 2. 2 http://kerneltraining.com/qtp/ What is QTP  QTP stands for QuickTest Professional  It is an automated testing tool provided by HP/Mercury Interactive  QTP integrates with other Mercury testing solutions including: • TestDirector/Quality Center • WinRunner • LoadRunner  Utilizes an add-in architecture for compactness and extensibility
  • 3. 3 http://kerneltraining.com/qtp/ Types of Testing  Manual • Usage of steps defined within test cases to manually test the application to ensure that it functions properly  Automated • Automation of the manual testing process to all unattended execution and ensure repeatability
  • 4. 4 http://kerneltraining.com/qtp/ What Should Be Automated  Good candidates • Tests executed for each build • Business critical tests • Tests that are difficult/tedious to perform manually  Bad candidates • Tests without predictable results • Test that require variable input/responses from the tester • Tests that perform operations in multiple environments
  • 5. 5 http://kerneltraining.com/qtp/ Which Test Cases to Automate?  Tests that need to be run for every build of the application (sanity check, regression test)  Tests that use multiple data values for the same actions (data driven tests)  Stress/load testing  Tests requiring a great deal of precision
  • 6. 6 http://kerneltraining.com/qtp/ QTP – An Introduction  Quick Test Professional is the flagship functional testing tool from Mercury Interactive.  It is an icon based tool, which automates the functional & regression testing of an application.  QTP is easier to use and implement for both technical & non technical testers in comparison to other functional testing tools available.  The new version of HP QTP is being called HP Unified Functional Testing 11.5 (UFT 11.5). UFT 11.5 is actually a combination of HP QTP (for testing GUI) and HP Service Test (for testing API).
  • 8. 8 http://kerneltraining.com/qtp/ Salient Features  Scripting Language is VBScript which is easy to use , understand and program even complex functionalities with ease..  Uses “Active Screen” technology to record scripts which aids the tester in referring to the screens object properties.  Library files contains VBScript functions and subroutines that can be added to the test.  Support Modern Development Environment. 
  • 9. 9 http://kerneltraining.com/qtp/ QTP Environment  Windows • C++, Visual Basic, Java, .NET  Web • Web Applications, Web services  Other technologies • SAP, Siebel, Oracle, Peoplesoft, ActiveX
  • 10. 10 http://kerneltraining.com/qtp/ Add-in Architecture  Enables QTP to provide support for multiple technologies.  Add-ins are software that need to be installed on a system that has QTP. It then becomes integrated with the QTP environment.  QTP is sold with the ability to understand a few technologies, add-ins provide QTP with the ability to understand additional technologies  Users are able to select the specific add-ins for the technologies they are testing thereby reducing the memory footprint of QTP
  • 11. 11 http://kerneltraining.com/qtp/ QTP Add-ins  When QTP is started, you should select only the add-ins for technologies that are used with your application.  Some of the available add-ins are • ActiveX - For testing software written using ActiveX (also known as COM) technology. This technology allows people to create objects in one language and use those objects within other languages/applications • Visual Basic - For applications written in the Visual Basic language • Web - For testing web applications written in any language. In web applications, we interact with the application though a web browser and so the web application can be written in any language.
  • 13. 13 http://kerneltraining.com/qtp/ Testing Process  Create Object Repository  Create Tests o Record o Edit • Insert checkpoints • Insert synchronization points • Insert output values • Parameterize test • Include VBScript code  Debug test  Run tests
  • 14. 14 http://kerneltraining.com/qtp/ What is a QTP Test  It is called a test script but is actually a folder containing several files  Broken down into subparts known as 'Actions‘  Internally represented using the VBScript programming language
  • 15. 15 http://kerneltraining.com/qtp/ Actions  A test is broken into a series of ‘Actions’ • Actions can be renamed to reflect what they do • Actions can be invoked multiple times within a test • Actions can be marked as reusable so they can be called from other tests  Only reusable actions can be called from other tests reusable actions can be called from other
  • 16. 16 http://kerneltraining.com/qtp/  Menus  Toolbar • Provides easy access to items on the menus  Record & Run Settings  Test Settings  Tools Overview QTP Tool
  • 17. 17 http://kerneltraining.com/qtp/ QTP Tool [Code Window]  Provides a WYSIWYG editor to use in writing your test script o Keyboard view • Provides an icon-based representation of the code being written. This is often the easiest code view for non- programmers o Expert View • Provides a VBScript code based representation of the code being written. This is the most flexible code
  • 18. 18 http://kerneltraining.com/qtp/ QTP Tool [Views]  Active Screen • Provides screenshots of all objects recorded and also supports object highlighting  Data Table • Shows the data file that can be used to configure the application  Debug Viewer • Provides tools to debug code and view the value of variable/expression during code execution
  • 19. 19 http://kerneltraining.com/qtp/ Create Object Repository [STEP 1]  Intro to Object Oriented Programming o Objects are a representation of every item found in an application o Objects are visual (e.g. Button, Textbox) and non-visual (e.g. Dictionary, Reporter) elements within an application. Each object has the following elements • Properties, Methods & Events o All objects must have a unique name and belong to a class. o Objects are referenced in code using dot notation objectName.Method()
  • 20. 20 http://kerneltraining.com/qtp/ Objects  Properties • These are characteristics of the object e.g. the text on a button. QTP uses this to recognize the object  Methods • These are built in functionality of the object. The VBScript code that we write (or record) actually makes calls to the methods of an object e.g. Reporter.ReportEvent() Here ReportEvent is the method of the Reporter object  Events • These are what can be done to an object. This is used by programmers to determine what an object does in response to an action you perform. It is however unused in QTP.
  • 22. 22 http://kerneltraining.com/qtp/ QTP Object Identification Process  Object Identification • The tool determines what properties of objects are recorded  Object Spy • Allows users to view the property of an object without recording it  Object Repository • Holds information recorded about each object allowing the test to identify the object during execution
  • 23. 23 http://kerneltraining.com/qtp/ Creating an Object Repository  Per Action • An object repository is created for each action • This means that multiple object repositories can be created per test  Shared • A single object repository is used for multiple tests
  • 24. 24 http://kerneltraining.com/qtp/ CREATE TEST [STEP 2]  Record Steps  Edit • Insert synchronization points • Insert checkpoints • Insert output values • Parameterize values • Include VBScript code
  • 25. 25 http://kerneltraining.com/qtp/ Record  Read the outline of steps to perform  Practice performing the steps to minimize error  Choose record mode • Context Sensitive • Analog • Low level  RECORD  Stop, Save test, playback
  • 29. 29 http://kerneltraining.com/qtp/ Edit Test  Insert synchronization points • Used to slow down execution of a test script  Checkpoints • Used to check expected value of a step against the actual value at a specific point during execution  Insert output values • Used to retrieve values from the AUT  Insert Parameterization • Allows you to store data in the data table  Include VB Script code • Last option. Very powerful.
  • 30. 30 http://kerneltraining.com/qtp/ Synchronization Point  Specific time • Uses the wait function to pause the test for a specific amount of time [in seconds]  Until an event occurs • Pauses until a specific property of an object has a specific value  A synchronization point is a line in the test script that instructs QTP to wait for a certain response from the application during playback.
  • 31. 31 http://kerneltraining.com/qtp/ How to Add Synchronization Points  Locate the lines in the script to insert the synchronization point  In Quick Test choose Insert > Step > Synchronization Point. The mouse pointer turns into a pointing hand. This should be done while recording.  Using the Hand Pointer click on the object to Synchronize.  Add Synchronization Point dialog box opens.
  • 32. 32 http://kerneltraining.com/qtp/ Check Points in QTP • A checkpoint verifies that expected information is displayed in your application while the test is running.
  • 33. 33 http://kerneltraining.com/qtp/ Checkpoints  Standard • Checks multiple properties of a single object  Text • Checks part or all the text within an object  Text Area • Checks part or all the text within a text area object  Bitmap • Checks the visual layout of an entire object or a portion of the object  Database • Checks data in the database  Accessibility • Checks web content accessibility against W3C accessibility rules for the disabled  XML • Checks files using XML rules
  • 34. 34 http://kerneltraining.com/qtp/ Inserting Check Points Right Click the object and select Insert Checkpoint.
  • 35. 35 http://kerneltraining.com/qtp/ Output values  Standard • Stores a single property of an object in the data table  Text • Stores part or all the text of an object in the data table  Text Area • Stores the content of a text area in the data table  Database • Retrieves content from a database [using a SQL query] and stores it in the data table  XML • Retrieves content from an XML file and store it in the data table
  • 36. 36 http://kerneltraining.com/qtp/ Parameterize Data  Allows your test to read data from the data table.  The data table is an Excel spreadsheet file editable from using Excel or any other application that can edit a .xls document  The DataTable is encapsulated in QTP in the DataTable object. This object contains a sheet for every action in the test as well as a globally accessible sheet known as the global sheet  Each sheet in the DataTable contains several columns and rows.  The columns can be renamed by double-clicking on the header of the column.
  • 37. 37 http://kerneltraining.com/qtp/ Why Parameterization ?  Parameterization allows us to pick different values at run time.  Reduces Time and Effort.  Usage of data drivers allow us to use the same data for various input boxes.  Parameterization can also be done for checkpoints.
  • 39. Slide 39 http://kerneltraining.com/informatica/ Global and Action Data Sheets  The Data Table contains two types of sheets:  Global sheet: This enables you to share information from one action to another. Should be used for data drivers and Output Values.  Action Sheet: Each action also has its own sheet in the Data Table so that you can insert data that applies only to that action.  When there are parameters in a current action’s sheet, you can set Quick Test to run one or more iterations on that action before continuing with the current global iteration of the test.
  • 40. 40 http://kerneltraining.com/qtp/ VBScript Coding  When the tools provided by QTP are not sufficient to test an application, VBScript coding can be used.  VBScript was created as a web programming language by Microsoft and licensed by many companies for use in their tools.
  • 43. 43 http://kerneltraining.com/qtp/ Test Results  Test Results Tree - an icon-based view of the steps that were performed while the test was running. Similar to the test tree in Quick Test main screen  Iteration Summary – Provides the Status (pass/Fail) of each iteration individually.  Status Summary - Indicates the number of checkpoints or reports that passed, failed, and raised warnings during the test.
  • 45. 45 http://kerneltraining.com/qtp/ Viewing Test Results Integration of Winrunner, QTP & Test Director
  • 46. 46 http://kerneltraining.com/qtp/ Why Integrate QTP ?  With Win Runner  Facilitates running Win Runner tests and call TSL functions in compiled modules with parameters by creating calls to Win Runner tests and functions.  With Test Director (TD)  TD, Mercury Interactive test management tool, can help you organize and control the testing process. It provides an intuitive and efficient method for scheduling and running tests, collecting test results, analyzing the results, and managing test versions.
  • 47. 47 http://kerneltraining.com/qtp/ QTP & WinRunner  QTP can easily be integrated with Win Runner, Test Director and Load Runner.  If the Winrunner is already installed and being used, then QTP can be added without the loss of Winrunner scripts.  Quick Test Pro will be able to call Win Runner Scripts.  A single test can contain both Winrunner & QTP scripts.
  • 48. 48 http://kerneltraining.com/qtp/ Advantages of QTP over other Functional Automation tools  Easy to use, icon based scripts. Easier for non technical testers to learn.  Usage of VBScript language for scripting which is very powerful ,has lots of capabilities and can program even complex functionalities with ease.  The active screen technology allows the person writing script to pick-up values that may have been left out during recording. This helps to reduce re-work for scripting.
  • 49. 49 http://kerneltraining.com/qtp/ Advantages of QTP over other Functional Automation tools  Supports .Net, XML and other modern Environments.  Test Run Iterations/Data driven testing is much easier and better implemented with QTP. Capturing output values add data driven testing more kick and flexibility.  Provides ability to trap exceptions and handle them using inbuilt functions or user defined ones.
  • 50. 50 http://kerneltraining.com/qtp/ Recap  Checkpoints - check  Synchronization points - wait  Output values – retrieve information  Parameterization – configuration data  VBScript – adds programmable logic
  • 51. 51 Call us: +91 8099776681 Email: sales@kerneltraining.com http://kerneltraining.com/qtp/ Questions ?
  • 52. 52 Call us: +91 8099776681 Email: sales@kerneltraining.com http://kerneltraining.com/qtp/