About Creating Tests - WinRunner

You can create tests using both recording and programming. Usually, you start by recording a basic test script. As you record, each operation you perform generates a statement in Mercury Interactive’s Test Script Language (TSL). These statements appear as a test script in a test window. You can then enhance your recorded test script, either by typing in additional TSL functions and programming elements or by using WinRunner’s visual programming tool, the Function Generator.

Two modes are available for recording tests:

  • Context Sensitive records the operations you perform on your application by identifying Graphical User Interface (GUI) objects.
  • Analog records keyboard input, mouse clicks, and the precise x- and y-coordinates traveled by the mouse pointer across the screen.

You can add GUI, bitmap, text, and database checkpoints, as well as synchronization points to your test script. Checkpoints enable you to check your application by comparing its current behavior to its behavior in a previous version. Synchronization points solve timing and window location problems that may occur during a test run.

You can create a data-driven tests, which are tests driven by data stored in an internal table.

To create a test script, you perform the following main steps:

  1. Decide on the functionality you want to test. Determine the checkpoints and synchronization points you need in the test script.
  2. Document general information about the test in the Test Properties dialog box.
  3. Choose a Record mode (Context Sensitive or Analog) and record the test on your application.
  4. Assign a test name and save the test in the file system or in your TestDirector project.

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

WinRunner Topics