Thursday, March 8, 2007

Analog

Analog

In Analog mode, WinRunner records the exact coordinates traveled by the mouse, as well as mouse clicks and keyboard input. For example, if you click the OK button in the Login window, WinRunner records statements that look like this:
When this statement is recorded... .......... it really means:
move_locator_track (1);
mouse track mtype ("-");
left mouse button press mtype ("+");
left mouse button release
When you run the test, WinRunner retraces the recorded movements using absolute screen coordinates. If your application is located in a different position on the desktop, or the user interface has changed, WinRunner is not able to execute the test correctly.
When choosing a record mode, consider the following points:

If you are testing an application that contains both GUI objects and bitmap areas, you can switch between modes as you record. This will be discussed later in the lesson.