PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
  • Overview
  • Running the automatic tests of an executable from WINDEV or WINDEV Mobile
  • Running the automatic tests on an executable from WINDEV Mobile
  • Running the automatic tests of an executable without WINDEV or WINDEV Mobile
  • Caution
  • Running the automatic tests of an executable without WINDEV
  • Translating the entries of the .wx file
  • Code for automatic test of the project
Products
WINDEVWEBDEV - Server codeWEBDEV - Browser codeWINDEV MobileReports and Queries
Platforms
WindowsLinuxWindows MobileUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadApple Watch
Languages
JavaPHPAjaxUser code (UMC)External language
Databases
HFSQLHFSQL Client/ServerStored proceduresOLE DBODBCNative Accesses
Overview
WINDEV and WINDEV Mobile propose to run the different tests of a project on the corresponding executable. This enables you to run the test of an executable in real deployment conditions.
The principle is straightforward:
  1. A test module (WDAutomate.exe) that operates with its own framework allows you to run the requested executable.
  2. The executable to test must be used in the same conditions as the ones experienced by the end users (including, if necessary, the access to the databases used or to an equivalent test database, the framework used, ...).
  3. To run the different tests, the executable whose test must be run loads a specific library containing the tests.
  4. The tests are run and the result is saved in the Control Centers. The result can be displayed:
    • from the test robot (by selecting the executable and the test library).
    • from WINDEV or WINDEV Mobile (for the version of the project that was used to create the executable).
Notes:
  • Use in Windows Vista: At the moment, the UAC (user account control) must be disabled in order to record and replay the automatic tests.
  • The automatic tests do not operate on a non-interactive TSE session.
Running the automatic tests of an executable from WINDEV or WINDEV Mobile
WINDEV MobileWindows Mobile

Running the automatic tests on an executable from WINDEV Mobile

To directly run the automatic tests on an executable from WINDEV Mobile:
  1. Create the executable ("Workshop .. Generate the Windows CE/Mobile application"). The executable must be copied onto the mobile device.Create the executable: expand among the quick access buttons and select "Generate the Windows CE/Mobile application". The executable must be copied onto the mobile device.
  2. Generate the test library ("Automatic tests .. Generate the test library"). The test library has the following format: TEST_<ProjectName>.WDL. This library is created in the "Data of automatic tests" sub-directory of the project.Generate the test library: on the "Automatic tests" pane, in the "Test robot" group, click "Generate the library". The test library has the following format: TEST_<ProjectName>.WDL. This library is created in the "Data of automatic tests" sub-directory of the project.
  3. Run the tests on the executable ("Automatic tests.. Run the test robot". In this window, you must select:Run the tests on the executable: on the "Automatic tests" pane, in the "Test robot" group, click "Start the robot". In this window, you must select:
    • The relevant product (WINDEV Mobile)
    • The executable whose test must be run (on the mobile device).
    • The test library to use.
    • The command line (if necessary)
    • The tests to run.
  4. Click the "Run the tests" button. The tests are automatically run on the mobile device and the result is displayed in the test robot.
Running the automatic tests of an executable without WINDEV or WINDEV Mobile
The automatic tests of an executable can be run without WINDEV or WINDEV Mobile being installed on the computer. However, some files are required:
  • Files required to start the test robot:
    • WDAutomate.exe
    • wdxxxxx.dll
    • wdxxxtest.dll
  • Files required to save the results of the tests: Data files of Control Centers. At least one Control Center must be installed on the computer.
    The data files of Control Centers must be the ones used on the development computer (to be able to see the result of the tests). Several cases may occur:
    • if the Control Centers use a Client/Server database, the data of the Control centers is shared among the computers.
    • if the Control Centers use a HFSQL Classic database in network, the data of Control Centers is found in a shared directory.
  • Executable to test with its framework (and the accesses required for the test). For WINDEV Mobile, the executable must be installed on a Mobile computer connected to the current computer.
  • Test library and test data (the "Data of automatic tests" sub-directory of the project must be copied to the computer)
The result of the automatic tests can be viewed in WINDEV or in WINDEV Mobile: to do so, open the project corresponding to the executable.

Caution

To run the test of an executable created with an earlier WINDEV version, the test engine must have access to the WDxxxTest.DLL library corresponding to the executable version.
Therefore, the WDxxxTest.DLL library corresponding to the version of the executable whose test is run must be copied beside WDAutomate.exe.
Running the automatic tests of an executable without WINDEV

Translating the entries of the .wx file

The entries of the .wx file are available in French or in English. In French, the following section must be added:
[SCENARIO]
ENABLED=1
FILE=<name and path of the test scenario file to record
(the extension of this file must be .wsct)>
CHEMINDLL=<path of the DLLs required to record the scenario>
Code for automatic test of the project
WINDEV and WINDEV Mobile allow you to enable or disable the code for automatic test of the project ("Automatic tests .. Enable the code of automatic test for the project" and "Automatic tests .. Disable the code of automatic test for the project").WINDEV and WINDEV Mobile allow you to enable (or not) the code of automatic test for the project. On the "Automatic tests" pane, click in the "Tests" group and select:
  • "Enable the code of automatic test for the project"
  • "Disable the code of automatic test for the project".
For an automatic test, this process is run before the initialization code of the project. This code allows you to process some special cases when the automatic test may be locked: opening a window in the initialization code of the project (configuration window, license window, custom login window, ...).
The code for automatic test of the project allows you to use EmulateWindow to validate the window.
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment