Data Binding for instance of the class

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 12
Joined: Mon Dec 05, 2016 12:54 am

Data Binding for instance of the class

Post by nkarora » Wed Feb 22, 2017 12:07 am

I have a problem with Data binding for instance of the class. Ranorex not giving option for data binding if instance of class used in the module.

I have different function and combination of data. In First Module, based on the number of rows on a screen, I calculated and run the loop and pass value to use action/function to update the common screen.

I have created a module for Common screen as it is repeated which require data from external source.

I did this as I don't want to copy/ paste same code and variables for data source. Also, it is not good for maintainability.

Please suggest the solution.

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

Re: Data Binding for instance of the class

Post by odklizec » Wed Feb 22, 2017 11:03 am


I'm not quite sure I understand what exactly you want to achieve? Could you please show us (a screenshot should be fine) the structure of your test suite?

Also, to be able to create Ranorex variables and connect them to TC data connector, use Ranorex Code Module instead of simple C# class file!

As for sharing code and data between modules, I would suggest to read this user guide chapter: ... brary.html
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