Inheriting from Ranorex.Form

Class library usage, coding and language questions.
atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Inheriting from Ranorex.Form

Post by atom » Mon Sep 20, 2010 11:34 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Inheriting from Ranorex.Form

Post by Support Team » Mon Sep 20, 2010 1:08 pm

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
.
Image

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: Inheriting from Ranorex.Form

Post by atom » Mon Sep 20, 2010 1:35 pm

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