Page 1 of 1

Repository

Posted: Thu Jun 27, 2013 3:44 am
by Behdad95
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.

Re: Repository

Posted: Fri Jun 28, 2013 10:33 am
by Support Team
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

Re: Repository

Posted: Sun Jun 30, 2013 11:53 pm
by Behdad95
Markus,

Thank you for the information. That helps a lot.

Regards,
Behdad.