Saturday, November 16, 2013

Object Repository in UFT 11.5

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
  1. Per Action Repository
  2. 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

14 comments:

  1. 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.
    selenium training in chennai

    ReplyDelete
  2. 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.. 

    Hadoop 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

    ReplyDelete
  3. 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.
    Devops Training in Chennai

    Devops Training in Bangalore

    ReplyDelete
  4. 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
    Data 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

    ReplyDelete
  5. 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
    qtp training in bangalore

    ReplyDelete
  6. 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
    corporate 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

    ReplyDelete
  7. 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.

    Java training in Chennai | Java training in Bangalore

    Java online training | Java training in Pune

    ReplyDelete
  8. 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.
    Best Devops Training in pune

    ReplyDelete
  9. 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.
    python training in chennai | python course institute in chennai

    ReplyDelete
  10. 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!!

    Android 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

    ReplyDelete

Admin will respond you with in next 24 hours