PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Method that must be taken into account before recording a test script
  • Some precautions are necessary:
  • Recording a test script
  • Screen shot
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
Recording the test script is an important step.
The test script is a text file (".TXT" extension) that contains all the operations performed when recording the script. For each operation, the script contains:
  • the action performed (mouse movement, key used, ...).
  • the position of the mouse cursor, if it is a mouse action.
  • the key used, if it is a keyboard action.
  • the duration of the action (in milliseconds).
  • the title of the window used.
WDTest allows you to view the script:
Note: The following operations are not stored:
  • Using the mouse wheel.
  • Using the Windows keys on the keyboard (key opening the "Start" menu or displaying the popup menu of the hovered element).
    Caution: Using the Windows keys while recording a script may generate failures in WDTest.
Method that must be taken into account before recording a test script

Some precautions are necessary:

  • Plan the operations to perform before recording a test script.
    Caution: The number of operations stored in a script cannot be exceed 100,000. If there is an important number of actions to record, we recommend that you record several test scripts. Then, these scripts can be played one after the other if necessary.
  • Close the current applications that could affect the recording of the script (applications displaying a window every 5 minutes for example).
  • Run the application to test.
    Caution: The position of the mouse cursor will be saved. Therefore, the Windows windows (file picker, directory picker, explorer, ...) must be handled via the keyboard keys only ([TAB], [Enter], ...).
    WDTest allows you to replay an action performed by the mouse on a window even if the window is not positioned in the same place as when the test was recorded. For example, if a button found in a window was moved since the recording of a script that clicks this button, there is no need to record the script again.
  • WDTest allows you to replay the test scripts on any computer. However, we recommend that you record and run the test script on the same computer. Indeed, the execution of the script on another computer requires a setting similar to the one of initial computer (same screen resolution, same operating system, ...).
  • A test script cannot contain the operations performed in the debugger of WINDEV or WINDEV Mobile.
Recording a test script
To record a test script:
  1. Start (if necessary) the application to test.
  2. Start WDTest if necessary. When minimizing WDTest, the application to test must be the first application displayed.
  3. Click the "New" button to add a new test script.
  4. Specify the following information in the new window:
    • the name of the script.
    • the description of the script
    • the directory of the script file. Use the "Browse" button if necessary. By default, the script file is saved in the "Programs" sub-directory of the setup directory of WINDEV.
    • the directory of the result file. Use the "Browse" button if necessary. By default, the script file is saved in the "Programs" sub-directory of the setup directory of WINDEV.
  5. Validate. WDTest automatically proposes to start recording the script.
  6. Perform the operations to record. The description of these actions is automatically saved in the script file (".TXT" file).
  7. To end the recording of the test script:
    • press the [Scroll Lock] key,
    • press [Ctrl]+[Shift]+[Num keypad simultaneously. +].
Once it is recorded, the script can be replayed. See Running a test script for more details.
Screen shot
WDTest allows you to perform screen shots when running the test script.
To perform screen shots:
  1. When recording the script, press the [Alt]+[Scroll Lock] keys simultaneously as soon as a screen shot must be performed.
  2. When running the script, the screen shots will be automatically performed. Each screen shot will be saved in a bitmap file (".BMP" extension).
These files are named "<NameResultScriptFile>XXX.BMP" and they are created in the directory of the result script file (directory of the ".LOG" file).
"XXX" represents a three-digit number corresponding to the order in which the screen shots have been performed. The first screen copy will be named "<NameResultScriptFile>000.BMP", the second one "<NameResultScriptFile>001.BMP", and so on.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment