Quick start with My@WndSniper

Using My@WndSniper

Let's recall our everyday duties: it is necessary to start load test scripts and it may be needed to do start the tested application under debugger.

Programmers often use dodges for debugging the bugs. The best example of such dodges is the system of Asserts used in Microsoft Visual Studio. In case of executing a condition, the debugger throws out a special dialog, usually with condition related information and number of the code line where the programmer does the check. Such "Assert" dialogs have 3 buttons: "Retry", "Ignore" and "Cancel". Pressing these buttons it is possible either to continue execution, or to get to the code line from where Assert was thrown out. During the test execution, the debugger can throw out a lot of such dialogs.

And what does TestComplete when such dialogs are shown? It is good if it just reports an Unexpected Window, but the worst thing is that it may completely stop test running.

Here is when you may find My@WndSniper to be your 3-rd eye, look for popup windows and make quick decisions how to proceed.

Its interface can be easily adjusted for different types of tasks; it provides you the possibility to create and fill up the "Ignore-list" and gives the flexibility in automatic tracking of many situations which can cause interruption of test scripts execution.

Using the usual way for searching of Windows controls, it is possible to set initial data for processing any popping up window. It is necessary to set only a WndClass and a WndCaption of an expected window; decide what conditions are enough to include it to the Ignore-list and determine the buttons should be pressed in case of ignoring the window and in case of not ignoring it.

The tool gives you the possibility to create up to 5 various rules for processing 5 various types of pup-up windows. Certainly each rule has its own Ignore list.

The My@WndSniper is also supplied with a special capture tool similar to the one found in Microsoft Spy++.

Cool story:

You can even get some fun using this tool :-). For example, play a trick on your colleague or friend. Just install the tool quietly and adjust it so that it closes an application that he/she often uses. Or force it to quickly press the No button in the Save Dialog of MS Word. But don’t abuse the tool’s power much!