Object Repository is second most important component in UFT after addin manager it has extradinary features and it will support developers to perform task easily.
Object Repository:
Object Repository is a file where we are storing object properties and values so that we can perform actions based on those properties and we can modify those properties according to our test requirement.
How to Open Object Repository in UFT:
Navigations:
1."Resources" menu from menubar----->Object Repository
2.CTRL+R
3.by clicking on Object Repository button as shown in below
Generally object repository is divided into the following two types
Per action repository means for each action we have one repository by default so A repository file is stored with each action that we created
Per -action repository satisfies the following list of points
1.UFT creates a new blank Object repository for each action,as shown in below
2.As we record operations on objects in our application UFT automatically stores the information about the objects.
3.When we create new action,UFT creates another new Object Repository.
here I created new action UFT creates action with repository as shown in below
4.If we record same object in two different actions the object is stores as a separate test object in each object repository.
5.Per Action Repository extension is -->.MTR(Module Test Repository )
2.Shared Object Repository:
Shared Object Repository is repository file where we use same file for all actions in our test.The extension we used for Shared Object Repository is (.tsr{Test Shared Repository})
here test Objects are stored into Object repository while we are recording and they will be used for scripting and any other requirement.
Adding Objects to Object Repository:
There are two ways to add Objects in Object Repository
1.Through Recording
when the tool in normal recording mode what ever the objects that we record those will automatically stores into Object Repository.
2.Pre-learning(Manually Adding):
In this process we add object by Object selectively or all objects available in the window can be added at a time to repository then we start with scripting.
Navigation:
Resources from menu bar--->Object Repository--->Object--->Add objects to local as shown below
or
Resources from menu bar--->Object Repository--->Add Objects to Local from tool bar
Once we click on Add Objects to local our mouse control becomes hand icon as we get in object spy then click on required object if it is independent test element it will automatically stores in to Object Repository or if the selected object is container like it contains multiple objects we need to click on ok,the scenarios as shown in below
After clicking on OK you will get the below window select the required option
the options behavior is as follows:
1.Selected Object Only:
if we select this then it adds to the object repository the previously selected objects's properties and values without its descendant objects.
****here previously selected object means only login dialog will add with out any objects that are present inside that login dialog./only Parent
2.Default object Types:
If we select this option it will add the previously selected object and all the functional objects in side that object to the Object Repository.
All objects are stored with their properties and values in OR
3.All object Types:
if we select this one it will store selected object,all functional,non functional objects inside that Object as shown in below
4.selected Object Types:
Here when we select this option the select button will enable and if we click on this we can set preferences which objects we want to select according to that filter,all objects in side selected objects will stored into Object Repository
select the required option click on ok corresponding objects will add to Object repository which will helpful while writing scripts.
Export Object Repository into XML Format:
we can export Object Repositories in the form of XML format.
Navigation:
Resources--->
to be continued in very shortly
Object Repository:
Object Repository is a file where we are storing object properties and values so that we can perform actions based on those properties and we can modify those properties according to our test requirement.
How to Open Object Repository in UFT:
Navigations:
1."Resources" menu from menubar----->Object Repository
2.CTRL+R
3.by clicking on Object Repository button as shown in below
Generally object repository is divided into the following two types
- Per Action Repository
- Shared Object Repository
1.Per Action Repository:
Per action repository means for each action we have one repository by default so A repository file is stored with each action that we created
Per -action repository satisfies the following list of points
1.UFT creates a new blank Object repository for each action,as shown in below
2.As we record operations on objects in our application UFT automatically stores the information about the objects.
3.When we create new action,UFT creates another new Object Repository.
here I created new action UFT creates action with repository as shown in below
4.If we record same object in two different actions the object is stores as a separate test object in each object repository.
5.Per Action Repository extension is -->.MTR(Module Test Repository )
2.Shared Object Repository:
Shared Object Repository is repository file where we use same file for all actions in our test.The extension we used for Shared Object Repository is (.tsr{Test Shared Repository})
here test Objects are stored into Object repository while we are recording and they will be used for scripting and any other requirement.
Adding Objects to Object Repository:
There are two ways to add Objects in Object Repository
1.Through Recording
when the tool in normal recording mode what ever the objects that we record those will automatically stores into Object Repository.
2.Pre-learning(Manually Adding):
In this process we add object by Object selectively or all objects available in the window can be added at a time to repository then we start with scripting.
Navigation:
Resources from menu bar--->Object Repository--->Object--->Add objects to local as shown below
or
Resources from menu bar--->Object Repository--->Add Objects to Local from tool bar
Once we click on Add Objects to local our mouse control becomes hand icon as we get in object spy then click on required object if it is independent test element it will automatically stores in to Object Repository or if the selected object is container like it contains multiple objects we need to click on ok,the scenarios as shown in below
After clicking on OK you will get the below window select the required option
the options behavior is as follows:
1.Selected Object Only:
if we select this then it adds to the object repository the previously selected objects's properties and values without its descendant objects.
****here previously selected object means only login dialog will add with out any objects that are present inside that login dialog./only Parent
2.Default object Types:
If we select this option it will add the previously selected object and all the functional objects in side that object to the Object Repository.
All objects are stored with their properties and values in OR
3.All object Types:
if we select this one it will store selected object,all functional,non functional objects inside that Object as shown in below
4.selected Object Types:
Here when we select this option the select button will enable and if we click on this we can set preferences which objects we want to select according to that filter,all objects in side selected objects will stored into Object Repository
select the required option click on ok corresponding objects will add to Object repository which will helpful while writing scripts.
Export Object Repository into XML Format:
we can export Object Repositories in the form of XML format.
Navigation:
Resources--->
to be continued in very shortly
Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
ReplyDeleteselenium training in chennai
This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me..
ReplyDeleteHadoop Training in Chennai
Hadoop Training in Bangalore
Big data training in tambaram
Big data training in Sholinganallur
Big data training in annanagar
Big data training in Velachery
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
ReplyDeleteDevops Training in Chennai
Devops Training in Bangalore
It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command
ReplyDeleteData science course in tambaram | Data Science course in anna nagar
Data Science course in chennai | Data science course in Bangalore
Data Science course in marathahalli | Data Science course in btm
QTP training in bangalore,QTP training in Bangalore offered by Training in Bangalore with 100% placement assistance. Best QTP training in Bangalore with certified experts
ReplyDeleteqtp training in bangalore
myTectra offers corporate training services in Bangalore for range of courses on various domain including Information Technology, Digital Marketing and Business courses like Financial Accounting, Human Resource Management, Health and Safety, Soft Skill Development, Quality & Auditing, Food Safety & Hygiene. myTectra is one of the leading corporate training companies in bangalore offers training on more than 500+ courses
ReplyDeletecorporate training in bangalore
top 10 corporate training companies in india
corporate training
corporate training companies
along these we are going to help the professionals and students to crack their interview with interview questions and answers look a head into sites you might be like....
dbms interview questions
spring interview questions
Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging
ReplyDeleteangularjs online Training
angularjs Training in marathahalli
angularjs interview questions and answers
angularjs Training in bangalore
angularjs Training in bangalore
Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
ReplyDeleteData Science Training in Indira nagar | Data Science Training in btm layout
Python Training in Kalyan nagar | Data Science training in Indira nagar
Data Science Training in Marathahalli | Data Science training in Bangalore | Data Science Training in BTM Layout | Data Science training in Bangalore
Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here.
ReplyDeleteJava training in Chennai | Java training in Bangalore
Java online training | Java training in Pune
Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
ReplyDeleteBest Devops Training in pune
A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts read this.
ReplyDeletepython training in chennai | python course institute in chennai
Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.keep sharing more information!!
ReplyDeleteAndroid Training in Chennai
Android Online Training in Chennai
Android Training in Bangalore
Android Training in Hyderabad
Android Training in Coimbatore
Android Training
Android Online Training
kralbet
ReplyDeletebetpark
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
mobil ödeme bahis
betmatik
İ6J
شركة تنظيف منازل بجازان 1LtbuVr2Mu
ReplyDelete