extending Ranorex.Report
Posted: Thu Jan 12, 2017 1:47 am
As I understand there is a Ranorex namespace with public class Report inside.
We have a need to extend the standard logging functionality.
One of the simplest examples is to make a wrapper for Report.Info(string s) to make it possible to pass not only variables, but int variables as well.
I'm trying to think about ways to extend the Ranorex.Report class with something like this:
Report.Info(int i){
Report.Info(i.ToString());
}
As well as several other custom useful methods.
Is there a way to properly extend the functionality of Ranorex classes?
PS. I'm already extending adapter methods with custom options like adapter.RightClickAndSelect(string s) so code looks very nice and easy to read for non-automation people. I would appreciate any ideas what else can be extended to provide better customization.
We have a need to extend the standard logging functionality.
One of the simplest examples is to make a wrapper for Report.Info(string s) to make it possible to pass not only variables, but int variables as well.
I'm trying to think about ways to extend the Ranorex.Report class with something like this:
Report.Info(int i){
Report.Info(i.ToString());
}
As well as several other custom useful methods.
Is there a way to properly extend the functionality of Ranorex classes?
PS. I'm already extending adapter methods with custom options like adapter.RightClickAndSelect(string s) so code looks very nice and easy to read for non-automation people. I would appreciate any ideas what else can be extended to provide better customization.