I had a doubt in object repository.Could u pls help me. We are exporting the .tsr file in per-action modeAnd we can make use of it in shared mode by means oftest settings - resources-location...it works for me..ok For example ...We have two registeration form with some identical datas here we can use the shared OR of one for other...right ok my doubt is..though we are using the shared object rep of first registeration again we have to record & have to give all the details as name, email....for second form too[all the details we gave for first form] So i am able to get the use of the shared rep here...

Showing Answers 1 - 15 of 15 Answers

sreekanth

  • Nov 7th, 2006
 

I didn't get your question . Could you please ask clearly?

  Was this answer useful?  Yes

srikanth

  • Nov 8th, 2006
 

Hi,

It may not be possible? Always remember that QTP identifies the objects based on the parent.

You told that you are having the two identical forms , u have taken the objects of one form and you want to use the same objects for the second.

one thing you remember , are the two forms are haivng the same name and properties?

it is not possoble for two forms having the same properties in one application.

just add the objects of the second form and write the code

regards

Srikanth N.

  Was this answer useful?  Yes

Hi,

You said you have two identical forms with same objects which has the Registration .

Suppose when you are trying to record the actions on Registration Form then  QTP recognizes the objects and stores in obj repository as say for example "object1,object2" under the parent "Registration" whenver you record actions on the other form QTP recognizes the other form as "Registration_1" eventhough it is identical and the objects under the form as "object1,object2".

Regards,

Vasavi

  Was this answer useful?  Yes

megana

  • Dec 11th, 2006
 

hi

could you plz explain me how can we exporting the .tsr file in per-action mode
And we can make use of it in shared mode by means of
test settings - resources-location...

  Was this answer useful?  Yes

Hi Megana,

Using Test--Settings--Resources tab, we can select the object Repository type but we cannot change  existing Repo which has objects information in it once it is selected unless until we open a new test.

Whenever we open a new test, if we want to use shared obj repository then Go to Test--Settings--Resources and change the Object Repository type from Per-Action to Shared.

And coming to your Question,Suppose you want to change already existing Object Repository which is of PEr-Action(.mtr) to Shared(.tsr) mode then open the test for which repository you want to change to Shared(.tsr) mode.Go to Tools--Object Repository  and click on "Save AS" button and save it with an extension .tsr which will be exported from Per-Action to Shared automatically.

This is how you can Export the object repository from  Per-Action(.mtr) to Shared (.tsr )

Regards,

Vasavi

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions