For many Windows controls (i.e. GUI components) Squish exposes the tooltip property. That property can be checked during a test execution using standard Property Verifications. But how can you check whether the tootlip is really displayed to the end users?

You first have to trigger (i.e. display) the tooltip by moving the mouse cursor over a component (see the line 17 in the code below for our Addressboook example), then you can iterate over all top-level objects and check their class names (see the loop at line 3). Native Windows tooltips are of the window class “tooltips_class32” and tooltips from Windows Forms have class names like “WindowsForms10.tooltips_class32.app.0.b7ab7b”. So usually they have the part “tooltips_class32” in common and that can be used to identify top-level tooltip windows.
Once you have identified the tooltip window, you can just check its text property (see the line 7).

This will prevent the extension to take over handling of tooltip classes so that the JavaScript code above can be used as it is. Otherwise it would have to be modified a bit in order to implement the same idea.

froglogic is a privately owned company which has been founded in 2003 and is known for its automated testing suite Squish with its flagship product Squish GUI Tester, the market-leading automated testing tool for GUI applications.