How to link third party reference dll's

Class library usage, coding and language questions.
seshadri
Posts: 4
Joined: Fri Apr 17, 2015 10:28 am

How to link third party reference dll's

Post by seshadri » Thu Jun 04, 2015 12:50 pm

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

Fergal
Certified Professional
Certified Professional
Posts: 298
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: How to link third party reference dll's

Post by Fergal » Fri Jun 05, 2015 10:39 am

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?

seshadri
Posts: 4
Joined: Fri Apr 17, 2015 10:28 am

Re: How to link third party reference dll's

Post by seshadri » Fri Jun 05, 2015 11:24 am

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.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3922
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to link third party reference dll's

Post by odklizec » Fri Jun 05, 2015 11:41 am

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
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

seshadri
Posts: 4
Joined: Fri Apr 17, 2015 10:28 am

Re: How to link third party reference dll's

Post by seshadri » Wed Jun 10, 2015 12:26 pm

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3922
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to link third party reference dll's

Post by odklizec » Wed Jun 10, 2015 12:55 pm

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
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration