In our application we have a wizard called OptionsWizard.
This wizard will have Back,Next and Cancel...buttons
Every window that is appeared on clicking Next button is recognized by Silk Test as "Options Wizard" but some contents will be changed...
So I have common window declaration as Window OptionsWizard followed by objects of the OptionsWizard scrren that appeared on clicking Next.
Now when I tried to record VerifyProperties()...I am gettting message as Cannot Get all properties...."xyz" object not found, where "xyz" is the object that will appear in one of other OptionWizard dialog.
I hope it is not confusing...
Can some body help me,
Murali K Parepalli
[This message has been edited by aspmurali (edited 02-04-2003).]
There are two ways you can handle this. For the first, don’t rely on the canned 4test VerifyProperties method. Instead, create your own error checking. For example, if you want to verify the caption of a pushbutton within the window, do the following:
Or, instead of using a common set of declarations, you can identify each version of the Options Wizard by a unique child object within the window. For example, if the first view of the Options Wizard had a unique pushbutton named “More Info” and the second view had a unique pushbutton named “Finish”, you would have declarations that looked like this:
I’d recommend the second solution, as there are advantages of being able to determine which view of the Options Wizard you are on by using OptionsWizardViewX.Exists() as opposed to having to write a function that looks for child objects in a commonly declared window.