| || |
Mixed version of AUT testing
A new version of the application I am testing has a change in it that doesn't work with my existing window declarations, but I will need to test the old version and the new version in a mixed environment. For example, the following code was for the old version:
In the new version of the AUT, a change was made to the program so that now the following code must be used:
Notice that ActiveDatabase is now under DialogBox1 and not under PageList1 anymore.
What can I do to modify my window declaration(s) so that they can work with either version of the AUT? I need to somehow check which parent ActiveDatabase has before I try to call a method on it. Any suggestions?
Re: Mixed version of AUT testing
It is fairly easy to define a suitable method of working this out, using a combination of the methods GetParent() and IsOfClass(). How exactly you use them is up to you, there are quite a lot of useful things you can do with these.