Inheriting from Ranorex.Form : Automation API

Inheriting from Ranorex.Form

Class library usage, coding and language questions.

Inheriting from Ranorex.Form

Postby atom » Mon Sep 20, 2010 12:34 pm

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
atom
 
Posts: 339
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland

Re: Inheriting from Ranorex.Form

Postby Support Team » Mon Sep 20, 2010 2: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
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Inheriting from Ranorex.Form

Postby atom » Mon Sep 20, 2010 2: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
atom
 
Posts: 339
Joined: Mon Dec 08, 2008 12:14 am
Location: Dublin, Ireland


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests