Accessing method from DLL Ranorex Class Library

Class library usage, coding and language questions.
kmck
Certified Professional
Certified Professional
Posts: 83
Joined: Fri Jul 12, 2013 2:41 pm

Accessing method from DLL Ranorex Class Library

Post by kmck » Fri Aug 23, 2013 4:17 pm

Hello,

I created a new Ranorex Class Library within one of my tests suites to reuse a method throughout various test cases.

The project's namespace is SharedMethods and the method is called WaitForItem().

I've tried accessing the method using the entire namespace SharedMethods.SharedMethods.WaitForItem(); but that isn't working.

How would I access the method from my separate Ranorex Class Library?

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Accessing method from DLL Ranorex Class Library

Post by krstcs » Fri Aug 23, 2013 5:27 pm

Have you added the dll to your project's "References"?
Shortcuts usually aren't...

kmck
Certified Professional
Certified Professional
Posts: 83
Joined: Fri Jul 12, 2013 2:41 pm

Re: Accessing method from DLL Ranorex Class Library

Post by kmck » Fri Aug 23, 2013 5:47 pm

Whoops, that was the issue! Thank you much.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Accessing method from DLL Ranorex Class Library

Post by krstcs » Fri Aug 23, 2013 5:59 pm

You're welcome! Happens to all of us from time to time.
Shortcuts usually aren't...