SlideShare a Scribd company logo
1 of 6
For QTP Scripts & Documents Visit:               www.gcreddy.com

                   Object Repository
Object Repository:

It is a storage place of QTP where we can store the objects information and it also
acts as interface between the test script and the AUT in order to identify the objects
during execution.

Object:

Object is something, which has structure and properties.

Software objects:

We call windows, WebPages, buttons, edit boxes, check boxes etc.. as software
objects.

Types of Object in QTP:

There are four types of object available in QTP.

   1.   Run time objects
   2.   Test objects
   3.   Utility objects
   4.   Automation objects/User defined objects.



Run time objects: The objects present in the AUT. Ex: Buttons, links, etc…

Test Objects: References of Run time objects. Ex: WinEdit, WinButton,
WebButton, Link, etc…

   Note:
   Test objects names vary from one environment to another.
   Ex:
   Run time objects   Test objects in      Test objects in VB      Test objects in
                      windows              Environment             web Environment
                      Environment
   buttons            WinButton            VBButton                WebButton
   Edit box           WinEdit              VBEdit                  WebEdit
   Check box          Wincheckbox          Vbcheckbox              Webcheckbox


Utility objects

   They are QTP reserved objects used for testing and result reporting.
   Ex:
   1. SystemUtil for launching/closing the application.
   2. Reporter for defining results.

For Software Testing Documents visit: ww.gcreddy.net                                     1
For QTP Scripts & Documents Visit:               www.gcreddy.com
   3. Services for inserting transaction points
   4. Environment for using environment variables


Automation objects/User defined objects

User can create objects; those can be used for performing specific operations. Ex:
Creating objects in file system object class, adodb.connection class, dictionary object
class, excel. Application class etc.


There are two types of repository available in QTP.
   1. Local repository (.MTR extension)
   2. Shared repository(.TSR extension)

Local Repository:

   QTP creates a Local Repository for every action automatically during Recording.
   That cannot be shared among tests.

   User can add some more objects to Local repository

   User can perform rename, delete operations in local repository. As it is QTP
   internal file user no need to save modifications.

   Navigation: Resource menu>object repository (Short cut key Ctrl+R)




For Software Testing Documents visit: ww.gcreddy.net                                  2
For QTP Scripts & Documents Visit:             www.gcreddy.com




                              QTP- Local Repository

Shared Repository:

User (Test Engineer) creates shared repository by adding objects. That can be
shared among number of tests.
Using this method user can perform modifications on objects easily.


             Operations on Object Repository
Adding objects

a. Local Repository:

   Navigation: open local repository (resource menu>object repository)
   >objects>Add objects to Local>show the object>click ok
   (No need to save separately, it saves automatically)




For Software Testing Documents visit: ww.gcreddy.net                            3
For QTP Scripts & Documents Visit:                  www.gcreddy.com
B. Shared Repository:

   Navigation: Resource menu>object repository manager>object>Add
   objects>show the window/object>click ok

           o   Selected object only
           o   Default object types
           o   All objects types
           o   Selected object types

(If we select first option it stores Selected objects only, if we select second option it
stores all default objects, if we select third option it stores All objects including static
objects, if we select fourth option, we have to select object classes then it stores
that class objects, we can select more than one class also.)


Renaming objects

a. Local Repository:

Resources > object repository >select object and right click >choose rename option
>modify the name>release the mouse.>close repository

b. Shared Repository:

Resources >object repository manager>file>open>browse path of the repository file
>file>enable editing>select object &Right click>choose rename option>modify the
name > release mouse>save the file & close repository manager.

Deleting objects

a. Local Repository:

Resources > object repository >select object and right click >choose delete option
>confirm deletion>. >close repository

b. Shared Repository:

Resources >object repository manager>file>open>browse path of the repository file
>file>enable editing>select object &Right click>choose delete option>confirm the
deletion >save the file & close repository manager.


Associating objects repositories to an action

Resources>Associate repositories>click add icon (+)>browse path of the
repository>Associate with an action>click ok




For Software Testing Documents visit: ww.gcreddy.net                                       4
For QTP Scripts & Documents Visit:                www.gcreddy.com

Merging Repositories

Resources > object repository manager>tools>object repository merge tool >browse
path of the first repository> browse path of the second repository>click ok>click
close>save the merged repository>close the repository manager.

Note: After merging also, source repository files will be available, if we do not want
source files we can delete.

Defining new test objects

Navigation: Object>Define new test object >Select Environment>Select Class of the
object>Enter name of the object>Click Add>click close>Select object >select
property name>enter value (like this select one by one properties and enter
values)>save

Note: This feature can be used for preparing tests before the AUT is ready.

Spying objects

For getting objects information, (Test objects names, property & Values) QTP is
providing a feature called Object Spy, using this we can get objects information.

Navigation>Tools>object spy>take hand icon & Show the object>get information
(Object Spy shows the specific objects all available properties with their values)

Note: As Object spy is an important feature, it can be available in 3 Areas.(1. In
tools Menu 2. In local repository 3. In Repository manager)

View Options

Locate in Repository

   This feature can be used for identifying objects from application to repository.
   Navigation: View>Locate in repository >show the object>click Ok>it locates
   specified object in the repository.

Highlight in Application

   This feature can be used for identifying objects from repository to application.
   Navigation: Select object in the repository >view>highlight in application>it
   highlights specified objects in the application.


Exporting Repository to an XML file

We can export our repository file to an xml file.

Navigation: File >export Test objects to XML Enter the file name and Save with xml
extension.



For Software Testing Documents visit: ww.gcreddy.net                                     5
For QTP Scripts & Documents Visit:              www.gcreddy.com

Importing Repository from XML file.

We can import XML file to our repository.

Navigation: File>import from XML >browse path of the XML file >it loads objects.

Note: The purpose of this feature is Editing objects information outside of the QTP




By

             www.gcreddy.com




For Software Testing Documents visit: ww.gcreddy.net                                  6

More Related Content

What's hot

Android Automated Testing
Android Automated TestingAndroid Automated Testing
Android Automated Testingroisagiv
 
Finalize() method
Finalize() methodFinalize() method
Finalize() methodJadavsejal
 
9781305078444 ppt ch06
9781305078444 ppt ch069781305078444 ppt ch06
9781305078444 ppt ch06Terry Yoast
 
9781305078444 ppt ch07
9781305078444 ppt ch079781305078444 ppt ch07
9781305078444 ppt ch07Terry Yoast
 
Serialization/deserialization
Serialization/deserializationSerialization/deserialization
Serialization/deserializationYoung Alista
 
9781305078444 ppt ch12
9781305078444 ppt ch129781305078444 ppt ch12
9781305078444 ppt ch12Terry Yoast
 
Is2215 lecture5 lecturer_g_cand_classlibraries
Is2215 lecture5 lecturer_g_cand_classlibrariesIs2215 lecture5 lecturer_g_cand_classlibraries
Is2215 lecture5 lecturer_g_cand_classlibrariesdannygriff1
 
Object Lifetime In C C++
Object Lifetime In C C++Object Lifetime In C C++
Object Lifetime In C C++ppd1961
 
Ian 2014.10.24 weekly report
Ian 2014.10.24 weekly reportIan 2014.10.24 weekly report
Ian 2014.10.24 weekly reportLearningTech
 

What's hot (9)

Android Automated Testing
Android Automated TestingAndroid Automated Testing
Android Automated Testing
 
Finalize() method
Finalize() methodFinalize() method
Finalize() method
 
9781305078444 ppt ch06
9781305078444 ppt ch069781305078444 ppt ch06
9781305078444 ppt ch06
 
9781305078444 ppt ch07
9781305078444 ppt ch079781305078444 ppt ch07
9781305078444 ppt ch07
 
Serialization/deserialization
Serialization/deserializationSerialization/deserialization
Serialization/deserialization
 
9781305078444 ppt ch12
9781305078444 ppt ch129781305078444 ppt ch12
9781305078444 ppt ch12
 
Is2215 lecture5 lecturer_g_cand_classlibraries
Is2215 lecture5 lecturer_g_cand_classlibrariesIs2215 lecture5 lecturer_g_cand_classlibraries
Is2215 lecture5 lecturer_g_cand_classlibraries
 
Object Lifetime In C C++
Object Lifetime In C C++Object Lifetime In C C++
Object Lifetime In C C++
 
Ian 2014.10.24 weekly report
Ian 2014.10.24 weekly reportIan 2014.10.24 weekly report
Ian 2014.10.24 weekly report
 

Viewers also liked

Milling - Mouture
Milling - MoutureMilling - Mouture
Milling - MoutureAlapala Inc
 
Cleaning - Nettoyage
Cleaning - NettoyageCleaning - Nettoyage
Cleaning - NettoyageAlapala Inc
 
QTP 10 00 Guide
QTP 10 00 GuideQTP 10 00 Guide
QTP 10 00 GuideG.C Reddy
 
Au Psy492 M7 A3 Flick L.
Au Psy492 M7 A3 Flick L.Au Psy492 M7 A3 Flick L.
Au Psy492 M7 A3 Flick L.Lori Flick
 
New features in qtp11
New features in qtp11New features in qtp11
New features in qtp11G.C Reddy
 
File System Operations
File System OperationsFile System Operations
File System OperationsG.C Reddy
 
Advanced Qtp
Advanced QtpAdvanced Qtp
Advanced QtpG.C Reddy
 
Advanced Qtp Book
Advanced Qtp BookAdvanced Qtp Book
Advanced Qtp BookG.C Reddy
 
Qtp (advanced)
Qtp (advanced)Qtp (advanced)
Qtp (advanced)G.C Reddy
 
Qtp (basics to advanced)
Qtp (basics to advanced)Qtp (basics to advanced)
Qtp (basics to advanced)G.C Reddy
 
Qtp commands
Qtp commandsQtp commands
Qtp commandsG.C Reddy
 
Manual Testing Notes
Manual Testing NotesManual Testing Notes
Manual Testing Notesguest208aa1
 
02 test automation functional testing (qtp)
02 test automation functional testing (qtp)02 test automation functional testing (qtp)
02 test automation functional testing (qtp)Siddireddy Balu
 
Qtp training in hyderabad
Qtp training in hyderabadQtp training in hyderabad
Qtp training in hyderabadG.C Reddy
 
Java applet basics
Java applet basicsJava applet basics
Java applet basicsSunil Pandey
 

Viewers also liked (20)

Milling - Mouture
Milling - MoutureMilling - Mouture
Milling - Mouture
 
Cleaning - Nettoyage
Cleaning - NettoyageCleaning - Nettoyage
Cleaning - Nettoyage
 
QTP 10 00 Guide
QTP 10 00 GuideQTP 10 00 Guide
QTP 10 00 Guide
 
Au Psy492 M7 A3 Flick L.
Au Psy492 M7 A3 Flick L.Au Psy492 M7 A3 Flick L.
Au Psy492 M7 A3 Flick L.
 
Qtp Summary
Qtp SummaryQtp Summary
Qtp Summary
 
New features in qtp11
New features in qtp11New features in qtp11
New features in qtp11
 
File System Operations
File System OperationsFile System Operations
File System Operations
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Advanced Qtp
Advanced QtpAdvanced Qtp
Advanced Qtp
 
Advanced Qtp Book
Advanced Qtp BookAdvanced Qtp Book
Advanced Qtp Book
 
Qtp (advanced)
Qtp (advanced)Qtp (advanced)
Qtp (advanced)
 
Qtp (basics to advanced)
Qtp (basics to advanced)Qtp (basics to advanced)
Qtp (basics to advanced)
 
Life is a gift
Life is a giftLife is a gift
Life is a gift
 
Qtp test
Qtp testQtp test
Qtp test
 
eCertificate-JAVA-2
eCertificate-JAVA-2eCertificate-JAVA-2
eCertificate-JAVA-2
 
Qtp commands
Qtp commandsQtp commands
Qtp commands
 
Manual Testing Notes
Manual Testing NotesManual Testing Notes
Manual Testing Notes
 
02 test automation functional testing (qtp)
02 test automation functional testing (qtp)02 test automation functional testing (qtp)
02 test automation functional testing (qtp)
 
Qtp training in hyderabad
Qtp training in hyderabadQtp training in hyderabad
Qtp training in hyderabad
 
Java applet basics
Java applet basicsJava applet basics
Java applet basics
 

Similar to QTP Object Repository Explained

Automation Tool QTP
Automation Tool  QTPAutomation Tool  QTP
Automation Tool QTPBugRaptors
 
Qtp training session II
Qtp training session IIQtp training session II
Qtp training session IIAisha Mazhar
 
QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5Akash Tyagi
 
Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Azhar Satti
 
SAP Testing Training
SAP Testing TrainingSAP Testing Training
SAP Testing TrainingVGlobal Govi
 
Automation framework123
Automation framework123Automation framework123
Automation framework123subbusjune22
 
Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginnersRamu Palanki
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtpRamu Palanki
 
Interview qutions
Interview qutionsInterview qutions
Interview qutionssatyaragha
 
Qtp 8.0 basic
Qtp 8.0 basicQtp 8.0 basic
Qtp 8.0 basicmedsherb
 
QTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptQTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptKalyan Chakravarthy
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test ProfessionalVitaliy Ganzha
 
QTP Automation Testing Tutorial 3
QTP Automation Testing Tutorial 3QTP Automation Testing Tutorial 3
QTP Automation Testing Tutorial 3Akash Tyagi
 

Similar to QTP Object Repository Explained (20)

Automation Tool QTP
Automation Tool  QTPAutomation Tool  QTP
Automation Tool QTP
 
Qtp training session II
Qtp training session IIQtp training session II
Qtp training session II
 
QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5
 
Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780
 
Qtp stuff
Qtp stuffQtp stuff
Qtp stuff
 
Qtp basic stuff
Qtp basic stuffQtp basic stuff
Qtp basic stuff
 
QTP Faqs
QTP FaqsQTP Faqs
QTP Faqs
 
SAP Testing Training
SAP Testing TrainingSAP Testing Training
SAP Testing Training
 
Qtp object repository
Qtp object repositoryQtp object repository
Qtp object repository
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
 
Automation framework123
Automation framework123Automation framework123
Automation framework123
 
Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginners
 
Qtp faqs
Qtp faqsQtp faqs
Qtp faqs
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtp
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
 
Qtp 8.0 basic
Qtp 8.0 basicQtp 8.0 basic
Qtp 8.0 basic
 
Qtp 80 Basics3561
Qtp 80 Basics3561Qtp 80 Basics3561
Qtp 80 Basics3561
 
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 Automation Testing Tutorial 3
QTP Automation Testing Tutorial 3QTP Automation Testing Tutorial 3
QTP Automation Testing Tutorial 3
 

More from G.C Reddy

More from G.C Reddy (9)

Html
HtmlHtml
Html
 
Functions
FunctionsFunctions
Functions
 
QTP Training
QTP TrainingQTP Training
QTP Training
 
Software+struc+doc
Software+struc+docSoftware+struc+doc
Software+struc+doc
 
Qtp Scripts
Qtp ScriptsQtp Scripts
Qtp Scripts
 
Manual Testing
Manual TestingManual Testing
Manual Testing
 
Qtp Faq
Qtp FaqQtp Faq
Qtp Faq
 
Qtp Scripts
Qtp ScriptsQtp Scripts
Qtp Scripts
 
Web Dictionary
Web DictionaryWeb Dictionary
Web Dictionary
 

Recently uploaded

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 

Recently uploaded (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 

QTP Object Repository Explained

  • 1. For QTP Scripts & Documents Visit: www.gcreddy.com Object Repository Object Repository: It is a storage place of QTP where we can store the objects information and it also acts as interface between the test script and the AUT in order to identify the objects during execution. Object: Object is something, which has structure and properties. Software objects: We call windows, WebPages, buttons, edit boxes, check boxes etc.. as software objects. Types of Object in QTP: There are four types of object available in QTP. 1. Run time objects 2. Test objects 3. Utility objects 4. Automation objects/User defined objects. Run time objects: The objects present in the AUT. Ex: Buttons, links, etc… Test Objects: References of Run time objects. Ex: WinEdit, WinButton, WebButton, Link, etc… Note: Test objects names vary from one environment to another. Ex: Run time objects Test objects in Test objects in VB Test objects in windows Environment web Environment Environment buttons WinButton VBButton WebButton Edit box WinEdit VBEdit WebEdit Check box Wincheckbox Vbcheckbox Webcheckbox Utility objects They are QTP reserved objects used for testing and result reporting. Ex: 1. SystemUtil for launching/closing the application. 2. Reporter for defining results. For Software Testing Documents visit: ww.gcreddy.net 1
  • 2. For QTP Scripts & Documents Visit: www.gcreddy.com 3. Services for inserting transaction points 4. Environment for using environment variables Automation objects/User defined objects User can create objects; those can be used for performing specific operations. Ex: Creating objects in file system object class, adodb.connection class, dictionary object class, excel. Application class etc. There are two types of repository available in QTP. 1. Local repository (.MTR extension) 2. Shared repository(.TSR extension) Local Repository: QTP creates a Local Repository for every action automatically during Recording. That cannot be shared among tests. User can add some more objects to Local repository User can perform rename, delete operations in local repository. As it is QTP internal file user no need to save modifications. Navigation: Resource menu>object repository (Short cut key Ctrl+R) For Software Testing Documents visit: ww.gcreddy.net 2
  • 3. For QTP Scripts & Documents Visit: www.gcreddy.com QTP- Local Repository Shared Repository: User (Test Engineer) creates shared repository by adding objects. That can be shared among number of tests. Using this method user can perform modifications on objects easily. Operations on Object Repository Adding objects a. Local Repository: Navigation: open local repository (resource menu>object repository) >objects>Add objects to Local>show the object>click ok (No need to save separately, it saves automatically) For Software Testing Documents visit: ww.gcreddy.net 3
  • 4. For QTP Scripts & Documents Visit: www.gcreddy.com B. Shared Repository: Navigation: Resource menu>object repository manager>object>Add objects>show the window/object>click ok o Selected object only o Default object types o All objects types o Selected object types (If we select first option it stores Selected objects only, if we select second option it stores all default objects, if we select third option it stores All objects including static objects, if we select fourth option, we have to select object classes then it stores that class objects, we can select more than one class also.) Renaming objects a. Local Repository: Resources > object repository >select object and right click >choose rename option >modify the name>release the mouse.>close repository b. Shared Repository: Resources >object repository manager>file>open>browse path of the repository file >file>enable editing>select object &Right click>choose rename option>modify the name > release mouse>save the file & close repository manager. Deleting objects a. Local Repository: Resources > object repository >select object and right click >choose delete option >confirm deletion>. >close repository b. Shared Repository: Resources >object repository manager>file>open>browse path of the repository file >file>enable editing>select object &Right click>choose delete option>confirm the deletion >save the file & close repository manager. Associating objects repositories to an action Resources>Associate repositories>click add icon (+)>browse path of the repository>Associate with an action>click ok For Software Testing Documents visit: ww.gcreddy.net 4
  • 5. For QTP Scripts & Documents Visit: www.gcreddy.com Merging Repositories Resources > object repository manager>tools>object repository merge tool >browse path of the first repository> browse path of the second repository>click ok>click close>save the merged repository>close the repository manager. Note: After merging also, source repository files will be available, if we do not want source files we can delete. Defining new test objects Navigation: Object>Define new test object >Select Environment>Select Class of the object>Enter name of the object>Click Add>click close>Select object >select property name>enter value (like this select one by one properties and enter values)>save Note: This feature can be used for preparing tests before the AUT is ready. Spying objects For getting objects information, (Test objects names, property & Values) QTP is providing a feature called Object Spy, using this we can get objects information. Navigation>Tools>object spy>take hand icon & Show the object>get information (Object Spy shows the specific objects all available properties with their values) Note: As Object spy is an important feature, it can be available in 3 Areas.(1. In tools Menu 2. In local repository 3. In Repository manager) View Options Locate in Repository This feature can be used for identifying objects from application to repository. Navigation: View>Locate in repository >show the object>click Ok>it locates specified object in the repository. Highlight in Application This feature can be used for identifying objects from repository to application. Navigation: Select object in the repository >view>highlight in application>it highlights specified objects in the application. Exporting Repository to an XML file We can export our repository file to an xml file. Navigation: File >export Test objects to XML Enter the file name and Save with xml extension. For Software Testing Documents visit: ww.gcreddy.net 5
  • 6. For QTP Scripts & Documents Visit: www.gcreddy.com Importing Repository from XML file. We can import XML file to our repository. Navigation: File>import from XML >browse path of the XML file >it loads objects. Note: The purpose of this feature is Editing objects information outside of the QTP By www.gcreddy.com For Software Testing Documents visit: ww.gcreddy.net 6