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

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
aminmesbahi
 

What's hot (18)

Qtp questions and answers
Qtp questions and answersQtp questions and answers
Qtp questions and answers
 
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
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestions
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
Qtp - Introduction to automation basics
Qtp -  Introduction to automation basicsQtp -  Introduction to automation basics
Qtp - Introduction to automation basics
 
First QTP Tutorial
First QTP TutorialFirst QTP Tutorial
First QTP Tutorial
 
Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
 
Qtp Mgl Presentation
Qtp Mgl PresentationQtp Mgl Presentation
Qtp Mgl Presentation
 
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
 
.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
 

Similar to QTP Automation Testing Tutorial 5

Qtp basic stuff
Qtp basic stuffQtp basic stuff
Qtp basic stuff
Ramu Palanki
 
Qtp stuff
Qtp stuffQtp stuff
Qtp 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 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
 

Similar to QTP Automation Testing Tutorial 5 (20)

Qtp basic stuff
Qtp basic stuffQtp basic stuff
Qtp basic stuff
 
Qtp stuff
Qtp stuffQtp stuff
Qtp stuff
 
Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginners
 
QTP Tutorial
QTP TutorialQTP Tutorial
QTP Tutorial
 
Object Repository
Object RepositoryObject Repository
Object Repository
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
QTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptQTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.ppt
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test Professional
 
QTP Interview Questions and answers
QTP Interview Questions and answersQTP Interview Questions and answers
QTP Interview Questions and answers
 
Automation framework123
Automation framework123Automation framework123
Automation framework123
 
QTP Faqs
QTP FaqsQTP Faqs
QTP Faqs
 
SAP Testing Training
SAP Testing TrainingSAP Testing Training
SAP Testing Training
 
Qtp basic
Qtp basicQtp basic
Qtp basic
 
React Native Firebase
React Native FirebaseReact Native Firebase
React Native Firebase
 
Spring Framework
Spring FrameworkSpring Framework
Spring Framework
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
 
Qtp day 2
Qtp day 2Qtp day 2
Qtp day 2
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
Qtp-training A presentation for beginers
Qtp-training  A presentation for beginersQtp-training  A presentation for beginers
Qtp-training A presentation for beginers
 
Qtp certification training_material
Qtp certification training_materialQtp certification training_material
Qtp certification training_material
 

Recently uploaded

RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
National Information Standards Organization (NISO)
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Vivekanand Anglo Vedic Academy
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
RidwanHassanYusuf
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 

Recently uploaded (20)

RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 

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