SlideShare une entreprise Scribd logo
1  sur  22
Copyright 2015 IT Professional Academy 1
Automation (QTP) Testing
Course
DAY - 2
Copyright 2015 IT Professional Academy 2
Topics for Today
What is QTP and License Types
i. Floating
ii. Node Lock
QTP Introduction
i. About QTP
ii. Support OS & Browsers
About QTP utility programme
i. Add In Manager
ii. QTP supported Technologies
QTP window or QTP Editor Components ( 6 / 11 Panes)
i. Test Pane ( key word view and expert view)
ii. Data table
iii. Active screen
iv. Debug viewer -- Upto 8.2
v. Information pane
vi. Missing resource Pane --- Upto 9.2
vii. Test flow
viii. Available key words
ix. Resources
QTP Logical Structure
Record and Playback
Copyright 2015 IT Professional Academy 3
What is QTP?
•QTP is a Functional Automation tool by HP.
Now called as UFT. i.e. unified functional tool.
Latest version is UFT 12.5
•Validates functional flows of the Application.
•Not fully capable of validating UX, color,
position, location, intuitiveness etc of the
application.
Copyright 2015 IT Professional Academy 4
QTP License
Seat License: This type of license is present on
the client machine itself. No server involved.
Concurrent License: License is located at the
server and multiple machines access to get
license details. Most common type of license
arrangement.
Copyright 2015 IT Professional Academy 5
OS and Applications
OS:
Windows only includes client as well as server.
Applications:
Internet Browsers namely IE, Chrome, Firefox.
(Limited Versions Only)
Windows based Applications:
SAP, Silverlight, VB, Java, Dot Net etc
Click on the Icon to the right
for QTP and Browser
Support Matrix:
Copyright 2015 IT Professional Academy 6
QTP Logical Structure:
QTP Basic Structure
•Tests: Top most Logical entity.
•Actions: Multiple actions in a Test. Actions contains the
actual code.
•Object Repository: A file which contains object’s
details like, name, property, property value, descriptions.
•Data Tables: Part of every QTP test. Can be used to
read and write data which can be used during script
execution.
•Function Library: Stores Function Library and can be
attached to Test. Functions will available to all the
Actions in the Test
•Object Spy: To readAnalyze the object properties of
the Application.
Copyright 2015 IT Professional Academy 7
Test
Place Holder for Code, Data and Object
Repositories
Actions
Function
Library
Data
Tables
Shared
OR
QTP Structure: Components
Local
OR
Copyright 2015 IT Professional Academy 8
Components Interrelationship:
TEST
Action1 Action2 Action..n
Action1
OR
Action2
OR
Action..n
OR
Function
Library
Data-Tables
Copyright 2015 IT Professional Academy 9
QTP Test:
Copyright 2015 IT Professional Academy 10
QTP-AUT Interaction
OS
Q
T
P
B
R
O
W
S
E
R
S
E
L
E
N
I
U
M
InterfaceInterface
W
I
N
A
P
P
Interface
Copyright 2015 IT Professional Academy 11
QTP-AUT Interaction
OS
Q
T
P
A
U
T
Interface
VBScript
User and QTP
interact in VB
Script language.
QTP and AUT
interface is
managed by
Add-in manager
in QTP.
Copyright 2015 IT Professional Academy 12
QTP Set Up
•QTP 10 works on windows XP.
•Windows Virtualization is to be Used to Run
Windows XP over Windows 7.
•Oracle VM can also be used to achieve
virtualization.
Copyright 2015 IT Professional Academy 13
QTP Record and Playback
Recording: While recording, QTP records user’s
commandsstatements and targetsObjects
description.
Objects Description: Is Stored in Object repository.
Stored Object is also called TO (Test object).
Commands: Is stored in Actions under QTP Test.
Playback: When script is replayed, QTP reads the
statementscommands from the script and try to find
the similar object in the AUT. If target is found,
command is executed; if not test fails.
Copyright 2015 IT Professional Academy 14
QTP Record and Playback
Object Repository:
Object 1
Object 2
TO mapping with RO.
Failed
TO mapping with RO.
Passed
Test Object is Mapped with Run Object during
Playback.
AUT
Copyright 2015 IT Professional Academy 15
Object Spy:
•Is used to analyze objects of the
Application.
•It records Properties and Their
corresponding values.
•It also displays Object
Hierarchy.
•Once invoked will start reading
the Application Properties.
•Press control key to move
Object Spy window.
Copyright 2015 IT Professional Academy 16
What is VBScript?
•A Safe subset of visual basic
•The VBScript Code is case Insensitive.
•Microsoft Visual Basic Scripting Edition brings active
scripting to a wide variety of environments, including
Web client scripting in Microsoft Internet Explorer
and Web server scripting in Microsoft Internet
Information Service (IIS).
Copyright 2015 IT Professional Academy 17
VBScript data type?
•VBScript has only one data type called a Variant.
•A Variant is a special kind of data type that can
contain different kinds of information, depending on
how it is used.
•Because Variant is the only data type in VBScript, it
is also the data type returned by all functions in
VBScript.
•At its simplest, a Variant can contain either numeric
or string information.
•A Variant behaves as a number when you use it in a
numeric context and as a string when you use it in a
string context.
Copyright 2015 IT Professional Academy 18
VB Script Example : Calculator
1. VB Script Editor
2. Create a .vbs File
3. Create a simple Program for Addition and Display
the result.
4. Calculator Program for Add, Subtract, Multiply
and Divide.
5. Walk thorough the VB Script Code to Automate
IE.
Copyright 2015 IT Professional Academy 19
VB Script Example:Calculator
Dim Num1
Dim Num2
Dim result
Num1 = InputBox("Enter First Number","My First Calculator Program")
Num2 = InputBox("Enter 2nd Number","My First Calculator Program")
operation = InputBox("What you wish to do? For Add enter '+'; for subtract enter '-'; for multiply enter '*';
for division enter '/'","My First Calculator Program")
Select case trim(operation)
Case "+"
result = Int(Num1) + Int(Num2)
msgbox result
Case "-"
result = Int(Num1) - Int(Num2)
msgbox result
Case "*"
result = Int(Num1) * Int(Num2)
msgbox result
Case "/"
result = Int(Num1) / Int(Num2)
msgbox result
Case ""
result = Int(Num1) / Int(Num2)
msgbox result
Case Else
msgbox "Incorrect Operation"
End Select
Copyright 2015 IT Professional Academy 20
VB Script Example: Calculator and
Automate Browser
Note: Click on the Icons to Invoke the Program.
Copyright 2015 IT Professional Academy 21
Assignment: Record and Playback
Open QTP.
Use Add-In: Web
Create New Test
Select Action 1, click on Record button. A Window with Record and play
Back Settings will appear.
Enter URL as : http://parabank.parasoft.com/parabank/index.htm
Click on ok. Window is closed and IE with the mentioned page is
opened.
Click on the Register link. Page navigates to registration form.
Enter values in the field and click register link.
Register successful page appears.
Task:
Add text Check points for Register page and Register confirmation page.
Add Synchronization point.
Advanced: Add logic for multiple registrations.
Copyright 2015 IT Professional Academy 22
QTP DAY 2 Ends.
Thank you.

Contenu connexe

Tendances

Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentationRamu Palanki
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professionalsunny.deb
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtpRamu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questionsRamu Palanki
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3Ramu Palanki
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.tjdhans
 
Interview qutions
Interview qutionsInterview qutions
Interview qutionssatyaragha
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestionsyoummr
 
Qtp Training
Qtp TrainingQtp Training
Qtp Trainingmehramit
 
First QTP Tutorial
First QTP TutorialFirst QTP Tutorial
First QTP Tutorialtjdhans
 
Automation Tool QTP
Automation Tool  QTPAutomation Tool  QTP
Automation Tool QTPBugRaptors
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorialsasidhar
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basicsmehramit
 
Qtp certification training_material
Qtp certification training_materialQtp certification training_material
Qtp certification training_materialVishwaprakash Sahoo
 
QTP with Descriptive programming
QTP with Descriptive programmingQTP with Descriptive programming
QTP with Descriptive programmingKuldeep Sharma
 
Basics of QTP Framework
Basics of QTP FrameworkBasics of QTP Framework
Basics of QTP FrameworkAnish10110
 

Tendances (18)

Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentation
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtp
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestions
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
First QTP Tutorial
First QTP TutorialFirst QTP Tutorial
First QTP Tutorial
 
Automation Tool QTP
Automation Tool  QTPAutomation Tool  QTP
Automation Tool QTP
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
 
Qtp - Introduction to automation basics
Qtp -  Introduction to automation basicsQtp -  Introduction to automation basics
Qtp - Introduction to automation basics
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
 
Qtp certification training_material
Qtp certification training_materialQtp certification training_material
Qtp certification training_material
 
QTP with Descriptive programming
QTP with Descriptive programmingQTP with Descriptive programming
QTP with Descriptive programming
 
Basics of QTP Framework
Basics of QTP FrameworkBasics of QTP Framework
Basics of QTP Framework
 

En vedette

Qtp 8.0 basic
Qtp 8.0 basicQtp 8.0 basic
Qtp 8.0 basicmedsherb
 
How to Test on the Right Mobile Platforms
How to Test on the Right Mobile PlatformsHow to Test on the Right Mobile Platforms
How to Test on the Right Mobile PlatformsPerfecto by Perforce
 
Achieving a Winning Digital User Experience with Real World Testing
Achieving a Winning Digital User Experience with Real World TestingAchieving a Winning Digital User Experience with Real World Testing
Achieving a Winning Digital User Experience with Real World TestingPerfecto by Perforce
 
Webinar: Appium & Perfecto: A Perfect Match
Webinar: Appium & Perfecto: A Perfect MatchWebinar: Appium & Perfecto: A Perfect Match
Webinar: Appium & Perfecto: A Perfect MatchLizzy Guido (she/her)
 
Ten reasons why now is the perfect time to get serious about the mobile web
Ten reasons why now is the perfect time to get serious about the mobile webTen reasons why now is the perfect time to get serious about the mobile web
Ten reasons why now is the perfect time to get serious about the mobile webTijs Vrolix
 
TechTalk: Taking the Mystery Out of Object ID Automation
TechTalk: Taking the Mystery Out of Object ID AutomationTechTalk: Taking the Mystery Out of Object ID Automation
TechTalk: Taking the Mystery Out of Object ID AutomationLizzy Guido (she/her)
 
Hp perfecto webinar - UFT Mobile
Hp perfecto webinar - UFT MobileHp perfecto webinar - UFT Mobile
Hp perfecto webinar - UFT MobilePerfecto Mobile
 
Test Automation Tool comparison – HP UFT/QTP vs. Selenium
Test Automation Tool comparison –  HP UFT/QTP vs. SeleniumTest Automation Tool comparison –  HP UFT/QTP vs. Selenium
Test Automation Tool comparison – HP UFT/QTP vs. SeleniumAspire Systems
 
10 reasons why now is the perfect time to get started with the mobile web
10 reasons why now is the perfect time to get started with the mobile web10 reasons why now is the perfect time to get started with the mobile web
10 reasons why now is the perfect time to get started with the mobile webTijs Vrolix
 
Launch Better Apps, Faster - Perfecto & Orasi Joint Webinar Sldies
Launch Better Apps, Faster - Perfecto & Orasi Joint Webinar SldiesLaunch Better Apps, Faster - Perfecto & Orasi Joint Webinar Sldies
Launch Better Apps, Faster - Perfecto & Orasi Joint Webinar SldiesPerfecto by Perforce
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing ToolZeba Tahseen
 
iOS9 Launch - Mobile Dev & Test Implications
iOS9 Launch - Mobile Dev & Test ImplicationsiOS9 Launch - Mobile Dev & Test Implications
iOS9 Launch - Mobile Dev & Test ImplicationsPerfecto Mobile
 
7 Keys for Unattended Test AUtomation webinar deck
7 Keys for Unattended Test AUtomation webinar deck7 Keys for Unattended Test AUtomation webinar deck
7 Keys for Unattended Test AUtomation webinar deckPerfecto Mobile
 
Webinar learn how to test any mobile app style from within eclipse using real...
Webinar learn how to test any mobile app style from within eclipse using real...Webinar learn how to test any mobile app style from within eclipse using real...
Webinar learn how to test any mobile app style from within eclipse using real...Perfecto Mobile
 

En vedette (20)

Qtp 80 Basics3561
Qtp 80 Basics3561Qtp 80 Basics3561
Qtp 80 Basics3561
 
Qtp 8.0 basic
Qtp 8.0 basicQtp 8.0 basic
Qtp 8.0 basic
 
How to Test on the Right Mobile Platforms
How to Test on the Right Mobile PlatformsHow to Test on the Right Mobile Platforms
How to Test on the Right Mobile Platforms
 
Selenium Testing
Selenium Testing Selenium Testing
Selenium Testing
 
Achieving a Winning Digital User Experience with Real World Testing
Achieving a Winning Digital User Experience with Real World TestingAchieving a Winning Digital User Experience with Real World Testing
Achieving a Winning Digital User Experience with Real World Testing
 
TechTalk: Report Bugs Like a Boss
TechTalk: Report Bugs Like a BossTechTalk: Report Bugs Like a Boss
TechTalk: Report Bugs Like a Boss
 
Webinar: Appium & Perfecto: A Perfect Match
Webinar: Appium & Perfecto: A Perfect MatchWebinar: Appium & Perfecto: A Perfect Match
Webinar: Appium & Perfecto: A Perfect Match
 
Ten reasons why now is the perfect time to get serious about the mobile web
Ten reasons why now is the perfect time to get serious about the mobile webTen reasons why now is the perfect time to get serious about the mobile web
Ten reasons why now is the perfect time to get serious about the mobile web
 
TechTalk: Taking the Mystery Out of Object ID Automation
TechTalk: Taking the Mystery Out of Object ID AutomationTechTalk: Taking the Mystery Out of Object ID Automation
TechTalk: Taking the Mystery Out of Object ID Automation
 
Qtp object repository
Qtp object repositoryQtp object repository
Qtp object repository
 
Hp perfecto webinar - UFT Mobile
Hp perfecto webinar - UFT MobileHp perfecto webinar - UFT Mobile
Hp perfecto webinar - UFT Mobile
 
Test Automation Tool comparison – HP UFT/QTP vs. Selenium
Test Automation Tool comparison –  HP UFT/QTP vs. SeleniumTest Automation Tool comparison –  HP UFT/QTP vs. Selenium
Test Automation Tool comparison – HP UFT/QTP vs. Selenium
 
10 reasons why now is the perfect time to get started with the mobile web
10 reasons why now is the perfect time to get started with the mobile web10 reasons why now is the perfect time to get started with the mobile web
10 reasons why now is the perfect time to get started with the mobile web
 
Launch Better Apps, Faster - Perfecto & Orasi Joint Webinar Sldies
Launch Better Apps, Faster - Perfecto & Orasi Joint Webinar SldiesLaunch Better Apps, Faster - Perfecto & Orasi Joint Webinar Sldies
Launch Better Apps, Faster - Perfecto & Orasi Joint Webinar Sldies
 
Testing Apps for Wearables
Testing Apps for WearablesTesting Apps for Wearables
Testing Apps for Wearables
 
Selenium- A Software Testing Tool
Selenium- A Software Testing ToolSelenium- A Software Testing Tool
Selenium- A Software Testing Tool
 
iOS9 Launch - Mobile Dev & Test Implications
iOS9 Launch - Mobile Dev & Test ImplicationsiOS9 Launch - Mobile Dev & Test Implications
iOS9 Launch - Mobile Dev & Test Implications
 
7 Keys for Unattended Test AUtomation webinar deck
7 Keys for Unattended Test AUtomation webinar deck7 Keys for Unattended Test AUtomation webinar deck
7 Keys for Unattended Test AUtomation webinar deck
 
Appium vs. Appium with Perfecto
Appium vs. Appium with PerfectoAppium vs. Appium with Perfecto
Appium vs. Appium with Perfecto
 
Webinar learn how to test any mobile app style from within eclipse using real...
Webinar learn how to test any mobile app style from within eclipse using real...Webinar learn how to test any mobile app style from within eclipse using real...
Webinar learn how to test any mobile app style from within eclipse using real...
 

Similaire à QTP Automation Testing Tutorial 2

Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginnersRamu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questionsRamu Palanki
 
Qtp Interview Questions
Qtp Interview QuestionsQtp Interview Questions
Qtp Interview Questionskspanigra
 
QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1Akash Tyagi
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtpRamu Palanki
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test ProfessionalVitaliy Ganzha
 
QTP Interview Questions and answers
QTP Interview Questions and answersQTP Interview Questions and answers
QTP Interview Questions and answersRita Singh
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answersRamu Palanki
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answersRamu Palanki
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterVijayChowthri Nagaprakasham
 
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...GetInData
 
Treasure Data Summer Internship 2016
Treasure Data Summer Internship 2016Treasure Data Summer Internship 2016
Treasure Data Summer Internship 2016Yuta Iwama
 

Similaire à QTP Automation Testing Tutorial 2 (20)

Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginners
 
Qtpppt1
Qtpppt1Qtpppt1
Qtpppt1
 
Qtp basics
Qtp basicsQtp basics
Qtp basics
 
Qtp basic
Qtp basicQtp basic
Qtp basic
 
Qtp stuff
Qtp stuffQtp stuff
Qtp stuff
 
Qtp basic stuff
Qtp basic stuffQtp basic stuff
Qtp basic stuff
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp Interview Questions
Qtp Interview QuestionsQtp Interview Questions
Qtp Interview Questions
 
QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtp
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test Professional
 
Qtp - Introduction to synchronization
Qtp -  Introduction to synchronizationQtp -  Introduction to synchronization
Qtp - Introduction to synchronization
 
QTP Interview Questions and answers
QTP Interview Questions and answersQTP Interview Questions and answers
QTP Interview Questions and answers
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
 
Qtp
QtpQtp
Qtp
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional Tester
 
Automation testing
Automation testingAutomation testing
Automation testing
 
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...
Functioning incessantly of Data Science Platform with Kubeflow - Albert Lewan...
 
Treasure Data Summer Internship 2016
Treasure Data Summer Internship 2016Treasure Data Summer Internship 2016
Treasure Data Summer Internship 2016
 

Dernier

Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
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
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 

Dernier (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
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
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 

QTP Automation Testing Tutorial 2

  • 1. Copyright 2015 IT Professional Academy 1 Automation (QTP) Testing Course DAY - 2
  • 2. Copyright 2015 IT Professional Academy 2 Topics for Today What is QTP and License Types i. Floating ii. Node Lock QTP Introduction i. About QTP ii. Support OS & Browsers About QTP utility programme i. Add In Manager ii. QTP supported Technologies QTP window or QTP Editor Components ( 6 / 11 Panes) i. Test Pane ( key word view and expert view) ii. Data table iii. Active screen iv. Debug viewer -- Upto 8.2 v. Information pane vi. Missing resource Pane --- Upto 9.2 vii. Test flow viii. Available key words ix. Resources QTP Logical Structure Record and Playback
  • 3. Copyright 2015 IT Professional Academy 3 What is QTP? •QTP is a Functional Automation tool by HP. Now called as UFT. i.e. unified functional tool. Latest version is UFT 12.5 •Validates functional flows of the Application. •Not fully capable of validating UX, color, position, location, intuitiveness etc of the application.
  • 4. Copyright 2015 IT Professional Academy 4 QTP License Seat License: This type of license is present on the client machine itself. No server involved. Concurrent License: License is located at the server and multiple machines access to get license details. Most common type of license arrangement.
  • 5. Copyright 2015 IT Professional Academy 5 OS and Applications OS: Windows only includes client as well as server. Applications: Internet Browsers namely IE, Chrome, Firefox. (Limited Versions Only) Windows based Applications: SAP, Silverlight, VB, Java, Dot Net etc Click on the Icon to the right for QTP and Browser Support Matrix:
  • 6. Copyright 2015 IT Professional Academy 6 QTP Logical Structure: QTP Basic Structure •Tests: Top most Logical entity. •Actions: Multiple actions in a Test. Actions contains the actual code. •Object Repository: A file which contains object’s details like, name, property, property value, descriptions. •Data Tables: Part of every QTP test. Can be used to read and write data which can be used during script execution. •Function Library: Stores Function Library and can be attached to Test. Functions will available to all the Actions in the Test •Object Spy: To readAnalyze the object properties of the Application.
  • 7. Copyright 2015 IT Professional Academy 7 Test Place Holder for Code, Data and Object Repositories Actions Function Library Data Tables Shared OR QTP Structure: Components Local OR
  • 8. Copyright 2015 IT Professional Academy 8 Components Interrelationship: TEST Action1 Action2 Action..n Action1 OR Action2 OR Action..n OR Function Library Data-Tables
  • 9. Copyright 2015 IT Professional Academy 9 QTP Test:
  • 10. Copyright 2015 IT Professional Academy 10 QTP-AUT Interaction OS Q T P B R O W S E R S E L E N I U M InterfaceInterface W I N A P P Interface
  • 11. Copyright 2015 IT Professional Academy 11 QTP-AUT Interaction OS Q T P A U T Interface VBScript User and QTP interact in VB Script language. QTP and AUT interface is managed by Add-in manager in QTP.
  • 12. Copyright 2015 IT Professional Academy 12 QTP Set Up •QTP 10 works on windows XP. •Windows Virtualization is to be Used to Run Windows XP over Windows 7. •Oracle VM can also be used to achieve virtualization.
  • 13. Copyright 2015 IT Professional Academy 13 QTP Record and Playback Recording: While recording, QTP records user’s commandsstatements and targetsObjects description. Objects Description: Is Stored in Object repository. Stored Object is also called TO (Test object). Commands: Is stored in Actions under QTP Test. Playback: When script is replayed, QTP reads the statementscommands from the script and try to find the similar object in the AUT. If target is found, command is executed; if not test fails.
  • 14. Copyright 2015 IT Professional Academy 14 QTP Record and Playback Object Repository: Object 1 Object 2 TO mapping with RO. Failed TO mapping with RO. Passed Test Object is Mapped with Run Object during Playback. AUT
  • 15. Copyright 2015 IT Professional Academy 15 Object Spy: •Is used to analyze objects of the Application. •It records Properties and Their corresponding values. •It also displays Object Hierarchy. •Once invoked will start reading the Application Properties. •Press control key to move Object Spy window.
  • 16. Copyright 2015 IT Professional Academy 16 What is VBScript? •A Safe subset of visual basic •The VBScript Code is case Insensitive. •Microsoft Visual Basic Scripting Edition brings active scripting to a wide variety of environments, including Web client scripting in Microsoft Internet Explorer and Web server scripting in Microsoft Internet Information Service (IIS).
  • 17. Copyright 2015 IT Professional Academy 17 VBScript data type? •VBScript has only one data type called a Variant. •A Variant is a special kind of data type that can contain different kinds of information, depending on how it is used. •Because Variant is the only data type in VBScript, it is also the data type returned by all functions in VBScript. •At its simplest, a Variant can contain either numeric or string information. •A Variant behaves as a number when you use it in a numeric context and as a string when you use it in a string context.
  • 18. Copyright 2015 IT Professional Academy 18 VB Script Example : Calculator 1. VB Script Editor 2. Create a .vbs File 3. Create a simple Program for Addition and Display the result. 4. Calculator Program for Add, Subtract, Multiply and Divide. 5. Walk thorough the VB Script Code to Automate IE.
  • 19. Copyright 2015 IT Professional Academy 19 VB Script Example:Calculator Dim Num1 Dim Num2 Dim result Num1 = InputBox("Enter First Number","My First Calculator Program") Num2 = InputBox("Enter 2nd Number","My First Calculator Program") operation = InputBox("What you wish to do? For Add enter '+'; for subtract enter '-'; for multiply enter '*'; for division enter '/'","My First Calculator Program") Select case trim(operation) Case "+" result = Int(Num1) + Int(Num2) msgbox result Case "-" result = Int(Num1) - Int(Num2) msgbox result Case "*" result = Int(Num1) * Int(Num2) msgbox result Case "/" result = Int(Num1) / Int(Num2) msgbox result Case "" result = Int(Num1) / Int(Num2) msgbox result Case Else msgbox "Incorrect Operation" End Select
  • 20. Copyright 2015 IT Professional Academy 20 VB Script Example: Calculator and Automate Browser Note: Click on the Icons to Invoke the Program.
  • 21. Copyright 2015 IT Professional Academy 21 Assignment: Record and Playback Open QTP. Use Add-In: Web Create New Test Select Action 1, click on Record button. A Window with Record and play Back Settings will appear. Enter URL as : http://parabank.parasoft.com/parabank/index.htm Click on ok. Window is closed and IE with the mentioned page is opened. Click on the Register link. Page navigates to registration form. Enter values in the field and click register link. Register successful page appears. Task: Add text Check points for Register page and Register confirmation page. Add Synchronization point. Advanced: Add logic for multiple registrations.
  • 22. Copyright 2015 IT Professional Academy 22 QTP DAY 2 Ends. Thank you.