Page 1 of 1

How to link third party reference dll's

Posted: Thu Jun 04, 2015 12:50 pm
by seshadri
Hi Ranorex team,

We are in process of validating Ranorex for our WPF application and we have two questions here

1. How can we link third party dll's in our Ranorex script when we are trying to use "UserCode"
At present we are manually copying the dll's to bin folder

2. We are trying to create an object in the graphics by giving x,y,z coordinates. That we can do using Key sequence action. But now we would like to click on the object in the graphics and do Right mouse button click, here we want to avoid mouse clicks. Please let us know how can we proceed with this!

Thanks

Re: How to link third party reference dll's

Posted: Fri Jun 05, 2015 10:39 am
by Fergal
seshadri wrote:...we would like to click on the object in the graphics and do Right mouse button click, here we want to avoid mouse clicks....
Sorry, not sure that I understand, how could you click whilst avoiding clicks? Are you looking for a mouse movement or something else?

Re: How to link third party reference dll's

Posted: Fri Jun 05, 2015 11:24 am
by seshadri
We have created a graphical object for ex: a curve. Now In the Graphics I have to right click on the curve to see my right click options for ex: I want to select "extrude the curve" in the right click menu. If we record the script with mouse click then my script runs file, but when I change my script to another laptop/desktop then my script fails identifying the click exactly on the created line to see the RMB options.
We are writing the automation Id's for accessing the elemets in Ranorex.
My team now wants to avoid mouse clicks which are recorded with respect to screen coordinates.

Re: How to link third party reference dll's

Posted: Fri Jun 05, 2015 11:41 am
by odklizec
Hi,

It would be very helpful if you post the Ranorex snapshot of the app in question and xpath of the problematic element.

Anyway, if the graphic element is traceable by Ranorex Spy, as a standalone element with its own xpath, it should not be a problem to use mouse clicks? But I suspect your element is not traceable? In this case, you are out of luck and your only option is using coordinate-based approach or image-based automation. Unfortunately, neither option is as reliable as xpath-based automation.

To make the element traceable with Spy, it needs to have implemented accessibility. This is something that must be done by your dev. guys. Let them check for example these two blog posts, describing implementation of accessibility to QT elements...
http://www.ranorex.com/blog/enabling-au ... s-controls
http://www.ranorex.com/blog/enabling-au ... essibility
This is what they need to do to make your graphical objects traceable with Ranorex spy/recorder.

As for linking dlls, check this blog post:
http://www.ranorex.com/blog/organizing- ... rex-studio

Re: How to link third party reference dll's

Posted: Wed Jun 10, 2015 12:26 pm
by seshadri
Hi Team,

I have couple of questions from my developers:

1. We see that the Accessible object is part of the Qt stuff. But we are working on the WPF side, I am interested to know the WPF stuff. And, browsing through I've found "Ranaorex.Plugin.Wpf", but how can I really see the methods/properties contained in the dll. Is there some kind of documentation available for this dll?

2. And, to continue with Ques-1, is Accessible object also part of this WPF plugin?


Thanks

Re: How to link third party reference dll's

Posted: Wed Jun 10, 2015 12:55 pm
by odklizec
Hi,

The WPF plugin you found is a native Ranorex plugin for easier automation of WPF-based apps (element recognition, obtaining WPF properties, etc.). Check this article about new WPF plugin introduced in Ranorex 5.3...
http://www.ranorex.com/news/article/wpf ... ug-in.html

There is an SDK documentation available here:
http://www.ranorex.com/Documentation/Ranorex/

The WPF-related members can be found here:
http://www.ranorex.com/Documentation/Ra ... lement.htm