windows with the same name.
How does the GUI map in winrunner cope with the following please.
In our software we have many windows with the same label name for example Test. These windows appear as actions to either entering incorrect data, pressing the wrong button etc etc. Also these windows some might have just OK and Cancel buttons others Yes or No.
Window : Myshop you enter text into a field press Ok button you get the message label name 'shop', "Text is to long" OK or Cancel.
In the same window Myshop you select a checkbox and press Ok button, you now get the message label name 'shop', "You can not select this do you wish to continue", Yes or No
I hope this is explained correctly if not i will try to modify it.
Re: windows with the same name.
By default, WinRunner will learn windows by their label. If the many window variations only occur one at a time, no problem. You can read the static text and decide which buttons should be present, or can code an obj_exists() to test.
Multiple instances of the same window and label are differentiated with the index/location parm.