Repository

Ask general questions here.
Behdad95
Posts: 5
Joined: Wed Nov 14, 2012 3:19 am

Repository

Post by Behdad95 » Thu Jun 27, 2013 3:44 am

Hi everyone,

Is there anyway to reference/use repositories from Visual Studio?

What I like to be doing:

1) Reference Ranorex's DLLs in a Visual Studio project...I know how to do
2) Write classes in Visual Studio to interact with the GUI using Ranorex's API...I know how to do
3) Maintain my object repositories in Ranorex's studio...straightforward
4) Reference the objects in the repository from Visual Studio....Not sure how to do

For step 4, I need some guidance.

I appreciate your thoughts.

Thank you.
Behdad.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Repository

Post by Support Team » Fri Jun 28, 2013 10:33 am

Hi,

You need to first get an instance of the repository and then you can easily reference/use the stored repository items as in Ranorex Studio.
In case of a start button it works the following way:
TestSuiteLibrary.TestSuiteLibraryRepository repo = TestSuiteLibrary.TestSuiteLibraryRepository.Instance;
repo.Start.Self.Click();
Regards,
Markus

Behdad95
Posts: 5
Joined: Wed Nov 14, 2012 3:19 am

Re: Repository

Post by Behdad95 » Sun Jun 30, 2013 11:53 pm

Markus,

Thank you for the information. That helps a lot.

Regards,
Behdad.