Page 1 of 1

Inheriting from Ranorex.Form

Posted: Mon Sep 20, 2010 11:34 am
by atom
Hiya

In our GUI automation framework we have a functional code class for each window in the AUT
All our functional window classes expose business methods to test cases
Each functional window class inherit from a base class, and we would like the base class to inherit from Ranorex.Form

e.g.
- Ranorex.Form
- - FunctionalWindowBase
- - - UserLoginWindow
- - - ExitApplicationWindowe

etc.

However it seems than Ranorex.Form methods are not overridable
Can that be changed in future release's?

Thanks

Re: Inheriting from Ranorex.Form

Posted: Mon Sep 20, 2010 1:08 pm
by Support Team
Hi atom,

There shouldn't be a problem to add override methods to the Ranorex.Form class.
I will add a feature request to our internal bug tracking tool.

Regards,
Peter
Ranorex Team

Re: Inheriting from Ranorex.Form

Posted: Mon Sep 20, 2010 1:35 pm
by atom
Ok cool thanks
The .Close method is one we want to over-ride
This is because in the functional class for the window we cache some data
If a test does Form.Close that cached data is not cleared
So we want to inherit from Form, override Close method, clear our data cache, then call MyBase.Close

Thanks