Extending the EditBox object / class with "custom" methods
I'm looking to develop an automated framework to test a .NET application with TestPartner.
Much of the testing involves validation of GUI objects (e.g. checking field lengths, checking whether special characters are permitted etc.) and a number of other custom validations I can't find existing methods for.
My feeling is that these "methods" are actually analogous to methods of the EditBox object such as setText etc and should therefore be implemented as extensions of the existing class.
Just wondering what the best way of doing this is. Could I write a class module which "extends" the EditBox class or DotNETEditBox class?
Know the question is a bit vague so if the answer is of the RTFM nature then any suggestions on a good core VB6 book (with good OO coverage) are welcomed!!
Re: Extending the EditBox object / class with "custom" methods
Definitely not an RTFM question. You can use Classs modules to extend TestPartner Objects, but I am not sure how successful you would be with .NET in 5.2.1. In the TestPartner directory there is a folder named sampleScripts that has a Class module that extends the THTMLTable. That should point you in the right direction.
I was just able to get a look at the 5.3.0 beta and saw a feature that should help a lot once it goes GA. CPWR has added the ability to add .NET references and it will support third party .NET controls. There are some issues that need to be worked out before it goes GA, so I cannot provide much feedback on the new feature. I hope that everyone finds this helpful as I know many were concerned that they would not be able to use their .NET libraries in 5.3.0.
Quality is the result of a carefully constructed cultural environment. It has to be the fabric of the organization, not part of the fabric.