PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Displaying the content of script file
  • Adding/Inserting new operations into a script file
  • Copying/Pasting/Cutting operations in a script file
  • Inserting the operations of a script file into another script file
  • Deleting operations from a script file
  • Merging the mouse movements found in a script file
  • Merging some mouse movements
  • Merging all the mouse movements
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
A script editor is included in WDTest. This editor allows you to display and modify the content of a script file.
This script editor allows you to:
  • Display the content of a script file.
  • Add/Insert new operations into a script file.
  • Copy/Cut/Paste operations in a script file.
  • Insert the operations of a script file into another script file.
  • Delete operations from a script file.
  • Merge some or all mouse movements stored in a script file.
Note: It is often easier to record a new script file instead of modifying it.
How to proceed?

Displaying the content of script file

To display the content of script file:
  1. In WDTest, select the requested script.
  2. To display the test script file (".TXT" file) or the result script file (".LOG" file), click the button found in the column corresponding to the requested script.
The script is a text file containing the description of the operations performed. 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 description of the action performed. This description can be entered when editing the script and it allows the tester to know the action corresponding to the script line.
  • the title of the window used, followed by specific characteristics.
The mouse operations are displayed in green. The keyboard operations are displayed in blue.
For example:

Adding/Inserting new operations into a script file

To add/insert new operations into a script file:
  1. Display the requested script file in the script editor.
  2. To add/insert:
    • a keyboard action:
      • select the Windows event corresponding to the action (key pressed, key released, ...) in the "Event" combo.
      • select the key affected by the action in the "Key" combo box.
    • a mouse action:
      • select the Windows event corresponding to the action (mouse movement, right mouse button pressed, ...) in the "Event" combo box.
      • specify the position of the mouse cursor (in pixels) when the action is performed in the "X" and "Y" controls.
        To automatically capture the position of the mouse cursor, move the mouse cursor to the requested location and press [Alt]+[C] simultaneously.
  3. Click:
    • the "Add" button to add the specified action after the last action of the script file.
    • the "Insert" button to insert the specified action after the selected action in the script file.
Reminder: It is often easier to record a new script file instead of modifying it.

Copying/Pasting/Cutting operations in a script file

To copy/paste/cut operations in a script file:
  1. Display the requested script file in the script editor.
  2. Select the operations to copy/cut.
    Note: To select several operations, keep the [Ctrl] key down during the selection.
  3. Click:
    • The "Copy" button to copy the selected actions.
    • The "Cut" button to cut the selected actions.
  4. Select an operation in the script file. The copied/cut operations will be pasted with the selected operation.
  5. Click the "Paste" button.
Limit: You cannot copy/paste/cut more than 2000 operations at the same time.

Inserting the operations of a script file into another script file

To insert the operations of a script file into another script file:
  1. In the script editor, display the script file in which you want to insert the operations of another script file.
  2. Select an operation in the script file. These operations will be inserted after the selected operation.
  3. Click the "Insert" button and select the script file containing the operations to insert. All the operations of the selected script file are automatically inserted into the current script file.

Deleting operations from a script file

To delete operations from a script file:
  1. Display the requested script file in the script editor.
  2. Select the operations to delete.
    Note: To select several operations, keep the [Ctrl] key down during the selection.
  3. Click the "Delete" button and confirm the deletion. These operations are permanently deleted.
Merging the mouse movements found in a script file
The script editor allows you to merge:
  • Some of the mouse movements. In this case, the movements must be adjacent.
  • All of the mouse movements. The adjacent movements are merged together.

Merging some mouse movements

To merge some mouse movements:
  1. Display the requested script file in the script editor.
  2. Select the operations to merge. The number of selected operations is displayed in the "Number of selected operations" control.
    Note: To select several operations, keep the [Ctrl] key down during the selection.
  3. Click the "Merge" button. During the merge operation:
    • the position of the mouse cursor will correspond to the last selected movement,
    • the duration of the merged movements will be added.

Merging all the mouse movements

To merge all the mouse movements:
  1. Display the requested script file in the script editor.
  2. Click the "Reduce the mouse movements" button. During the merge operation:
    • the position of the mouse cursor will correspond to the last adjacent movement,
    • the duration of the adjacent movements will be added.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment