|
|
|
|
|
- Overview
- Which elements can be automatically checked?
- Remarks
Automated tests: Overview
Several test tools are available to guarantee the quality of your applications: - The test mode (Go on a project or window), which allows you to test changes in your application as you develop.
- WDTestSite that allows you to run different tests on a WEBDEV site.
To automate these tests and to increase the quality of your applications, you have the ability to run automatic unit tests. These tests allow you to easily check all the features available in your applications. Each test contains a scenario that can be directly edited in the development environment. This scenario is written in WLanguage and it can be modified at any time. These tests can be run before creating the executable in order to check the operating mode of an application. Remark: The automated tests are taken into account by "Code coverage". Which elements can be automatically checked? - Each test is associated with a WLanguage code: the test scenario. This scenario can be viewed in the code editor. The code of the tests can be modified.
- The tests (and the associated code) are not included in the executable and they are not given to the users. Therefore, the number of tests has no impact on the size of the application available to end users.
- The automated tests do not operate on a non-interactive TSE session.
- The "Tests" widget found in the Project dashboard allows you to quickly find out the percentage of tests passed, not passed, ... It can also be used to run the different tests.
Related Examples:
|
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)
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|