ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Test / Automated tests
  • Overview
  • How to create the test?
  • Creating an automated test on a window
  • Remarks
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
The automated tests of window are used to check the different features proposed by the window.
How to create the test?

Creating an automated test on a window

To create an automated test on a window:
  1. Open the window whose test must be run in the window editor.
  2. On the "Automated tests" tab, in the "Tests" group, expand "New" and select "Record a new scenario".
    • An information dialog is displayed, indicating that the window will be run in test mode and that all the operations performed from now on will be recorded in WLanguage in the test scenario.
    • Click the "Start recording" button to validate.
      Remark: If the window expects parameters, type the test values of window.
  3. Perform the necessary operations in your window.
  4. To stop the test, close the window.
  5. At the end of the test, the test description window is displayed. You have the ability to specify the test name and its description ("General" tab). The information available on the other tabs is specified by default. This information can be modified at any time.
  6. The code corresponding to the test is displayed in the code editor.

Remarks

  • If a window is opened from the "Initialization" event of the project, a test is also created for this window. The event "Automated test" of the project is modified to take into account the test of this window.
  • If your application uses the user groupware:
    • in manual mode: if gpwOpen is used, this function must be replaced with gpwLogin in the test code.
    • in automatic mode: in the configuration window of user groupware, specify the login and password that will be used for the automatic test mode.
  • If the window whose test is run opens another window (or an internal window), the operations performed in the different windows are recorded in the same scenario.
  • If the window opens another window found in a component, the operations performed in the component window will also be recorded in the same scenario.
Caution: No automated test can be created if a window coming from a component is opened in the project initialization code.

Limits

  • No test can be run on the Carousel control.
  • No test can be run on the windows automatically displayed by WINDEV (windows for managing HFSQL errors, print windows, ...). If these windows are included in the project in order to be customized, the automatic test can be run.
  • The operation used to Drag and Drop a control to another one cannot be replayed in an automatic test.
  • The recording of a scenario ignores the persistence of controls. Indeed, if this was not the case, the context and therefore the result could be different between two tests passed at two different moments.
  • When an automated test is run on an organizer control, the selection of the period with the mouse must be performed without scroll.
  • You cannot run the test of a print via the print preview. The code automatically generated to manage the "Preview" window must be deleted from the test code.
Related Examples:
WD Example of unit test Training (WINDEV): WD Example of unit test
[ + ] This example presents the use of the test editor included in WINDEV:
- test of a window
- test of a global procedure
- test of a global procedure from a set of test data (available from the versions 12)
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help