Guidelines for Recording a Test - WinRunner

Consider the following guidelines when recording a test:

  • Before you start to record, close all applications not required for the test.
  • Use an invoke_application statement or set a startup application in the Run tab of the Test Properties dialog box to open the application you are testing.
  • Before you record on objects within a window, click the title bar of the window to record a win_activatestatement. This activates the window.
  • Create your test so that it “cleans up” after itself. When the test is completed, the environment should resemble the pre-test conditions. (For example, if the test started with the application window closed, then the test should also close the window and not minimize it to an icon.)
  • When you record a test, you can minimize WinRunner and turn the User toolbar into a floating toolbar. This enables you to record on a full screen of your application, while maintaining access to important menu commands. To minimize WinRunner and work from the floating User toolbar: undock the User toolbar from the WinRunner window, start recording, and minimize WinRunner. The User toolbar stays on top of all other applications. Note that you can customize the User toolbar with the menu commands you use most frequently when creating a test.
  • When recording, use mouse clicks rather than the Tab key to move within a window in the application being tested.
  • When recording in Analog mode, use softkeys rather than the WinRunner menus or toolbars to insert checkpoints.
  • When recording in Analog mode, avoid typing ahead. For example, when you want to open a window, wait until it is completely redrawn before continuing. In addition, avoid holding down a mouse button when this results in a repeated action (for example, using the scroll bar to move the screen display). Doing so can initiate a time-sensitive operation that cannot be precisely recreated. Instead, use discrete, multiple clicks to achieve the same results.
  • WinRunner supports recording and running tests on applications with RTLstyle window properties. RTL-style window properties include right-to-left menu order and typing, a left scroll bar, and attached text at the top right corner of GUI objects. WinRunner supports pressing the CTRL and SHIFT keys together or the ALT and SHIFT keys together to change language and direction when typing. The default setting for attached text supports recording and running tests on applications with RTL-style windows.
  • WinRunner supports recording and running tests on applications with dropdown and menu-like toolbars, which are used in Microsoft Internet Explorer 4.0 and Windows 98. Although menu-like toolbars may look exactly like menus, they are of a different class, and WinRunner records themdifferently. When an item is selected from a drop-down or a menu-like toolbar, WinRunner records a toolbar_select_item statement. (This function resembles the menu_select_item function, which records selecting menu commands on menus.) .
  • If the test folder or the test script file is marked as read-only in the file system, you cannot perform any WinRunner operations which change the test script or the expected results folder.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WinRunner Topics