Between two versions of the same executable, the MSW_id numbers for some of
my GUI elements were changed. I talked to the developers and, of course,
they did nothing to change it.
Is there somewhere to get more information regarding this ID? I'm concerned
that this change happens randomly, and that I can't do anything to safe
guard against it. I checked the WR docs, and it says that this ID is a
Microsoft thing, but the MSDN library has no information regarding this.
User Stephanie (email@example.com) posted:
each time the executable is re-compiled the MSW_id changes. I would
recommend trying to use another method of recognizing the objects. You can
play with the recognition method in the GUI configuration to use another
----- Original Message -----
From: "Bryan Krol" <firstname.lastname@example.org>
Sent: Wednesday, April 25, 2001 4:14 PM
Subject: [winrunner] MSW_id Numbers
User Richard McCrae (email@example.com) posted:
The best solution is to get new developers. Second best is to take the MSW id out of the properties list for the
particular type of object. There is no other way around it. If you learn it as a static value and it is dynamic (as
yours clearly are) it will just continue to corrupt your gui map.
To get rid of them, go to the gui map configuration, move out the MSW_id, and (probably best) move something else in.
You will need to make a decision as to what to include and it will depend on your application and your needs. Remember
to save the lines generated into your startup script.
ps - Don't forget to mention to your manager how much more difficult the sloppy programmers are making things.
What if the properties that you choose also change? I used a push button's label properties but the application under test is translated in several languages and the labels may or may not remain static. Also, what if several buttons in the window have the same label - in other words, the label is either too unique or not unique enough for WinRunner to recognize. I spoke to Mercury Interactive about this and they suggested Adding custom (static) properties for GUI objects. Has anyone tried this or know of where I can go for more info -- I'm reading the Customization Guide right now about it but any help would be appreciated. Thanks,
Dade Behring, Inc.