Page 1 of 1

Data Binding for instance of the class

Posted: Wed Feb 22, 2017 12:07 am
by nkarora
Hi
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.

Scenario:
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.

Re: Data Binding for instance of the class

Posted: Wed Feb 22, 2017 11:03 am
by odklizec
Hi,

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:
http://www.ranorex.com/support/user-gui ... brary.html