SlideShare a Scribd company logo
Copyright 2015 IT Professional Academy 1
Automation (QTP) Testing
Course
DAY - 5
Copyright 2015 IT Professional Academy 2
Topics
Object Repository
i. About Object Repository
ii. Object Repository wizard features (Add object to local, Highlight obj from app,
update object, etc..)
iii. Object Spy
iv. Types of Object repository
1. Local Object Repository (.Mtr)
2. Shared Object Repository (.TSR)
v. OR Creation & associate Shared object repository
vi. Object Methods
Object Repository manager
i. Create shared OR
ii. Compare Two TSR files- Intro Only
iii. Merge Two TSR files-Intro Only
Scripting
Test object Methods
i. GetToProperty
ii. GetToProperties
iii. SetToProperty
iv. GetRoProperty
Copyright 2015 IT Professional Academy 3
Topics
Virtual object
Run Modes
i. Normal or Default – i) Normal & ii) Fast
ii. Maintenance Run mode –i)Normal
iii. Update - i) Normal & ii) Fast
Synchronization
i. About Synchronization
ii. Types of Synchronization
1. Static
2. Dynamic
iii. Settings
Reporter
i. About the Reporter utility object
ii. Reporter Methods
1. Reporter Event
2. Filter
3. Reporter Path
4. Run Status
Copyright 2015 IT Professional Academy 4
Object Repository
Object Repository
Local OR
Every Action has a
default OR called
as Local OR
Shared OR
Separate Entity.
Can be used across
multiple actions.
Copyright 2015 IT Professional Academy 5
Object Repository
Local OR: If the objects are stored in the local object repository they
are available for particular action only.
Shared OR: If the objects are stored in the shared object repository
they are available for entire application.
Shared object repository occupies less memory than the local object
repository, as it is common and no need to add the same objects
multiple number of times in several tests.
Precedence for Objects:
If an object with the same name is located in both the local object
repository and in a shared object repository associated with the same
action, the action uses the local object definition.
If an object with the same name is located in more than one shared
object repository associated with the same action, the object definition
is used from the first occurrence of the object, according to the order in
which the shared object repositories are associated with the action.
Copyright 2015 IT Professional Academy 6
Compare and Merge OR
•Invoked from Object Manager
•Used for Comparison and Merging of Shared OR.
•Local OR can not be Compared and Merged.
Copyright 2015 IT Professional Academy 7
Compare OR
Copyright 2015 IT Professional Academy 8
Merge OR
Copyright 2015 IT Professional Academy 9
Get, Set RO and TO Property
GetTOProperty: To get the Property values of the
Object located in side an OR at Run time.
GetROProperty: To get the Property values of the
Object present in AUT at Run time.
SetToProperty: To Set the Property values of the Object
located in side an OR at Run time. Value set at run time
will not impact actual values in OR.
SetROProperty: Set RO Property is not a valid function.
We can not set the value of the Run-Time Object in AUT
at run time. This is also a Interview question asked to
confuse.
Copyright 2015 IT Professional Academy 10
Run Modes
Used to control Execution Speed of the Execution.
Useful for Implementing Synchronizations in the Script.
Two Modes:
1. Normal: Can set Delay. For example: If a Delay of 1 Sec
is inserted, QTP will wait 1 Sec before executing new
step.
Also, Execution Marker will be displayed while
execution.
2. Fast: QTP will not wait and will continue to execute
with out any delay. Performance can be improved by
selecting this option. Execution Cursor will not be
displayed here.
Copyright 2015 IT Professional Academy 11
Run Modes
Copyright 2015 IT Professional Academy 12
Synchronization
Synchronization is a collection of techniques to sync Scripts
based on AUT response; i.e. QTP should wait for Application
to respond before doing the next step in the script.
It is the most important thing which makes a FW robust.
There are multiple ways to insert synchronization points:
a. Browser.Page.Sync
b. Browser.Sync
c. Browser.Page.WebElement.Exist(5)
d. Browser.Page.WebElement.WaitProperty()
e. Wait(5)
f. Object Synchronization Time Out. Test->Settings->Run
g. Browser Navigation Time Out. Test->Setting->Web
Copyright 2015 IT Professional Academy 13
Synchronization
Copyright 2015 IT Professional Academy 14
Synchronization
Copyright 2015 IT Professional Academy 15
Synchronization
Copyright 2015 IT Professional Academy 16
Reporter
Reporter is a QTP Utility methods which is used for sending
information to the test results.
The following examples use the ReportEvent method to report a failed
step.
Reporter.ReportEvent 1, "Custom Step", "The user-defined step failed."
or
Reporter.ReportEvent micFail, "Custom Step", "The user-defined step
failed."
The following example uses the ReportEvent method to include a
captured bitmap in the test results.
Browser("Browser").Page("WebPage").Image("MyLogo").CaptureBitmap
("MyLogo.bmp")
Reporter.ReportEvent micDone, "Display Logo", "This is my logo",
"MyLogo.bmp"
Copyright 2015 IT Professional Academy 17
Reporter
Copyright 2015 IT Professional Academy 18
Thank You

More Related Content

What's hot (18)

Qtp questions and answers
Qtp questions and answersQtp questions and answers
Qtp questions and answers
Ramu Palanki
 
Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentation
Ramu Palanki
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
sunny.deb
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtp
Ramu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
Ramu Palanki
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
satyaragha
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
Ramu Palanki
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestions
yoummr
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.
tjdhans
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
mehramit
 
Qtp - Introduction to automation basics
Qtp -  Introduction to automation basicsQtp -  Introduction to automation basics
Qtp - Introduction to automation basics
Vibrant Technologies & Computers
 
First QTP Tutorial
First QTP TutorialFirst QTP Tutorial
First QTP Tutorial
tjdhans
 
Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780
Azhar Satti
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
sasidhar
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
Prashanth BS
 
Qtp Mgl Presentation
Qtp Mgl PresentationQtp Mgl Presentation
Qtp Mgl Presentation
techgajanan
 
Unit testing and mocking in Python - PyCon 2018 - Kenya
Unit testing and mocking in Python - PyCon 2018 - KenyaUnit testing and mocking in Python - PyCon 2018 - Kenya
Unit testing and mocking in Python - PyCon 2018 - Kenya
Erick M'bwana
 
.NET Core, ASP.NET Core Course, Session 9
.NET Core, ASP.NET Core Course, Session 9.NET Core, ASP.NET Core Course, Session 9
.NET Core, ASP.NET Core Course, Session 9
Amin Mesbahi
 
Qtp questions and answers
Qtp questions and answersQtp questions and answers
Qtp questions and answers
Ramu Palanki
 
Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentation
Ramu Palanki
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
sunny.deb
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtp
Ramu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
Ramu Palanki
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
satyaragha
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
Ramu Palanki
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestions
yoummr
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.
tjdhans
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
mehramit
 
First QTP Tutorial
First QTP TutorialFirst QTP Tutorial
First QTP Tutorial
tjdhans
 
Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780
Azhar Satti
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
sasidhar
 
Qtp Mgl Presentation
Qtp Mgl PresentationQtp Mgl Presentation
Qtp Mgl Presentation
techgajanan
 
Unit testing and mocking in Python - PyCon 2018 - Kenya
Unit testing and mocking in Python - PyCon 2018 - KenyaUnit testing and mocking in Python - PyCon 2018 - Kenya
Unit testing and mocking in Python - PyCon 2018 - Kenya
Erick M'bwana
 
.NET Core, ASP.NET Core Course, Session 9
.NET Core, ASP.NET Core Course, Session 9.NET Core, ASP.NET Core Course, Session 9
.NET Core, ASP.NET Core Course, Session 9
Amin Mesbahi
 

Similar to QTP Automation Testing Tutorial 5 (20)

Qtp stuff
Qtp stuffQtp stuff
Qtp stuff
Ramu Palanki
 
Qtp basic stuff
Qtp basic stuffQtp basic stuff
Qtp basic stuff
Ramu Palanki
 
Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginners
Ramu Palanki
 
QTP Tutorial
QTP TutorialQTP Tutorial
QTP Tutorial
pingkapil
 
Object Repository
Object RepositoryObject Repository
Object Repository
G.C Reddy
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
Ramu Palanki
 
QTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptQTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.ppt
Kalyan Chakravarthy
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test Professional
Vitaliy Ganzha
 
QTP Interview Questions and answers
QTP Interview Questions and answersQTP Interview Questions and answers
QTP Interview Questions and answers
Rita Singh
 
Automation framework123
Automation framework123Automation framework123
Automation framework123
subbusjune22
 
QTP Faqs
QTP FaqsQTP Faqs
QTP Faqs
VGlobal Govi
 
SAP Testing Training
SAP Testing TrainingSAP Testing Training
SAP Testing Training
VGlobal Govi
 
Qtp basic
Qtp basicQtp basic
Qtp basic
Sandeep
 
React Native Firebase
React Native FirebaseReact Native Firebase
React Native Firebase
Kobkrit Viriyayudhakorn
 
Spring Framework
Spring FrameworkSpring Framework
Spring Framework
NexThoughts Technologies
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
mehramit
 
Qtp day 2
Qtp day 2Qtp day 2
Qtp day 2
Prashanth BS
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
VenkateswaraRao Siddabathula
 
Qtp-training A presentation for beginers
Qtp-training  A presentation for beginersQtp-training  A presentation for beginers
Qtp-training A presentation for beginers
Dhavamani Prakash
 
Qtp certification training_material
Qtp certification training_materialQtp certification training_material
Qtp certification training_material
Vishwaprakash Sahoo
 

Recently uploaded (20)

CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
Lecture 1 Introduction history and institutes of entomology_1.pptx
Lecture 1 Introduction history and institutes of entomology_1.pptxLecture 1 Introduction history and institutes of entomology_1.pptx
Lecture 1 Introduction history and institutes of entomology_1.pptx
Arshad Shaikh
 
Overview Well-Being and Creative Careers
Overview Well-Being and Creative CareersOverview Well-Being and Creative Careers
Overview Well-Being and Creative Careers
University of Amsterdam
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
Form View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo SlidesForm View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo Slides
Celine George
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)
Mohamed Rizk Khodair
 
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptxTERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
PoojaSen20
 
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
Dr. Nasir Mustafa
 
Kenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 CohortKenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 Cohort
EducationNC
 
What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)
jemille6
 
How to Add Customer Note in Odoo 18 POS - Odoo Slides
How to Add Customer Note in Odoo 18 POS - Odoo SlidesHow to Add Customer Note in Odoo 18 POS - Odoo Slides
How to Add Customer Note in Odoo 18 POS - Odoo Slides
Celine George
 
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast BrooklynBridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
i4jd41bk
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
How to Manage Upselling in Odoo 18 Sales
How to Manage Upselling in Odoo 18 SalesHow to Manage Upselling in Odoo 18 Sales
How to Manage Upselling in Odoo 18 Sales
Celine George
 
How to Configure Scheduled Actions in odoo 18
How to Configure Scheduled Actions in odoo 18How to Configure Scheduled Actions in odoo 18
How to Configure Scheduled Actions in odoo 18
Celine George
 
LDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living WorkshopLDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living Workshop
LDM Mia eStudios
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 
CNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscessCNS infections (encephalitis, meningitis & Brain abscess
CNS infections (encephalitis, meningitis & Brain abscess
Mohamed Rizk Khodair
 
Lecture 1 Introduction history and institutes of entomology_1.pptx
Lecture 1 Introduction history and institutes of entomology_1.pptxLecture 1 Introduction history and institutes of entomology_1.pptx
Lecture 1 Introduction history and institutes of entomology_1.pptx
Arshad Shaikh
 
Overview Well-Being and Creative Careers
Overview Well-Being and Creative CareersOverview Well-Being and Creative Careers
Overview Well-Being and Creative Careers
University of Amsterdam
 
All About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdfAll About the 990 Unlocking Its Mysteries and Its Power.pdf
All About the 990 Unlocking Its Mysteries and Its Power.pdf
TechSoup
 
antiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidenceantiquity of writing in ancient India- literary & archaeological evidence
antiquity of writing in ancient India- literary & archaeological evidence
PrachiSontakke5
 
Form View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo SlidesForm View Attributes in Odoo 18 - Odoo Slides
Form View Attributes in Odoo 18 - Odoo Slides
Celine George
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)Myasthenia gravis (Neuromuscular disorder)
Myasthenia gravis (Neuromuscular disorder)
Mohamed Rizk Khodair
 
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptxTERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
PoojaSen20
 
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
PHYSIOLOGY MCQS By DR. NASIR MUSTAFA (PHYSIOLOGY)
Dr. Nasir Mustafa
 
Kenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 CohortKenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 Cohort
EducationNC
 
What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)What is the Philosophy of Statistics? (and how I was drawn to it)
What is the Philosophy of Statistics? (and how I was drawn to it)
jemille6
 
How to Add Customer Note in Odoo 18 POS - Odoo Slides
How to Add Customer Note in Odoo 18 POS - Odoo SlidesHow to Add Customer Note in Odoo 18 POS - Odoo Slides
How to Add Customer Note in Odoo 18 POS - Odoo Slides
Celine George
 
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast BrooklynBridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
i4jd41bk
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
How to Manage Upselling in Odoo 18 Sales
How to Manage Upselling in Odoo 18 SalesHow to Manage Upselling in Odoo 18 Sales
How to Manage Upselling in Odoo 18 Sales
Celine George
 
How to Configure Scheduled Actions in odoo 18
How to Configure Scheduled Actions in odoo 18How to Configure Scheduled Actions in odoo 18
How to Configure Scheduled Actions in odoo 18
Celine George
 
LDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living WorkshopLDMMIA Reiki Yoga S5 Daily Living Workshop
LDMMIA Reiki Yoga S5 Daily Living Workshop
LDM Mia eStudios
 
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and GuestsLDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDMMIA Reiki News Ed3 Vol1 For Team and Guests
LDM Mia eStudios
 

QTP Automation Testing Tutorial 5

  • 1. Copyright 2015 IT Professional Academy 1 Automation (QTP) Testing Course DAY - 5
  • 2. Copyright 2015 IT Professional Academy 2 Topics Object Repository i. About Object Repository ii. Object Repository wizard features (Add object to local, Highlight obj from app, update object, etc..) iii. Object Spy iv. Types of Object repository 1. Local Object Repository (.Mtr) 2. Shared Object Repository (.TSR) v. OR Creation & associate Shared object repository vi. Object Methods Object Repository manager i. Create shared OR ii. Compare Two TSR files- Intro Only iii. Merge Two TSR files-Intro Only Scripting Test object Methods i. GetToProperty ii. GetToProperties iii. SetToProperty iv. GetRoProperty
  • 3. Copyright 2015 IT Professional Academy 3 Topics Virtual object Run Modes i. Normal or Default – i) Normal & ii) Fast ii. Maintenance Run mode –i)Normal iii. Update - i) Normal & ii) Fast Synchronization i. About Synchronization ii. Types of Synchronization 1. Static 2. Dynamic iii. Settings Reporter i. About the Reporter utility object ii. Reporter Methods 1. Reporter Event 2. Filter 3. Reporter Path 4. Run Status
  • 4. Copyright 2015 IT Professional Academy 4 Object Repository Object Repository Local OR Every Action has a default OR called as Local OR Shared OR Separate Entity. Can be used across multiple actions.
  • 5. Copyright 2015 IT Professional Academy 5 Object Repository Local OR: If the objects are stored in the local object repository they are available for particular action only. Shared OR: If the objects are stored in the shared object repository they are available for entire application. Shared object repository occupies less memory than the local object repository, as it is common and no need to add the same objects multiple number of times in several tests. Precedence for Objects: If an object with the same name is located in both the local object repository and in a shared object repository associated with the same action, the action uses the local object definition. If an object with the same name is located in more than one shared object repository associated with the same action, the object definition is used from the first occurrence of the object, according to the order in which the shared object repositories are associated with the action.
  • 6. Copyright 2015 IT Professional Academy 6 Compare and Merge OR •Invoked from Object Manager •Used for Comparison and Merging of Shared OR. •Local OR can not be Compared and Merged.
  • 7. Copyright 2015 IT Professional Academy 7 Compare OR
  • 8. Copyright 2015 IT Professional Academy 8 Merge OR
  • 9. Copyright 2015 IT Professional Academy 9 Get, Set RO and TO Property GetTOProperty: To get the Property values of the Object located in side an OR at Run time. GetROProperty: To get the Property values of the Object present in AUT at Run time. SetToProperty: To Set the Property values of the Object located in side an OR at Run time. Value set at run time will not impact actual values in OR. SetROProperty: Set RO Property is not a valid function. We can not set the value of the Run-Time Object in AUT at run time. This is also a Interview question asked to confuse.
  • 10. Copyright 2015 IT Professional Academy 10 Run Modes Used to control Execution Speed of the Execution. Useful for Implementing Synchronizations in the Script. Two Modes: 1. Normal: Can set Delay. For example: If a Delay of 1 Sec is inserted, QTP will wait 1 Sec before executing new step. Also, Execution Marker will be displayed while execution. 2. Fast: QTP will not wait and will continue to execute with out any delay. Performance can be improved by selecting this option. Execution Cursor will not be displayed here.
  • 11. Copyright 2015 IT Professional Academy 11 Run Modes
  • 12. Copyright 2015 IT Professional Academy 12 Synchronization Synchronization is a collection of techniques to sync Scripts based on AUT response; i.e. QTP should wait for Application to respond before doing the next step in the script. It is the most important thing which makes a FW robust. There are multiple ways to insert synchronization points: a. Browser.Page.Sync b. Browser.Sync c. Browser.Page.WebElement.Exist(5) d. Browser.Page.WebElement.WaitProperty() e. Wait(5) f. Object Synchronization Time Out. Test->Settings->Run g. Browser Navigation Time Out. Test->Setting->Web
  • 13. Copyright 2015 IT Professional Academy 13 Synchronization
  • 14. Copyright 2015 IT Professional Academy 14 Synchronization
  • 15. Copyright 2015 IT Professional Academy 15 Synchronization
  • 16. Copyright 2015 IT Professional Academy 16 Reporter Reporter is a QTP Utility methods which is used for sending information to the test results. The following examples use the ReportEvent method to report a failed step. Reporter.ReportEvent 1, "Custom Step", "The user-defined step failed." or Reporter.ReportEvent micFail, "Custom Step", "The user-defined step failed." The following example uses the ReportEvent method to include a captured bitmap in the test results. Browser("Browser").Page("WebPage").Image("MyLogo").CaptureBitmap ("MyLogo.bmp") Reporter.ReportEvent micDone, "Display Logo", "This is my logo", "MyLogo.bmp"
  • 17. Copyright 2015 IT Professional Academy 17 Reporter
  • 18. Copyright 2015 IT Professional Academy 18 Thank You
  翻译: