|
|
|
|
|
Automated tests: Functions specific to tests
The following functions can be used in the code of an automated test:
| | TestAddIteration | Adds an iteration into the current test and gives the values of test parameters for this iteration. | TestCheck | Writes a result into the status report of a test according to the result of a boolean expression. | TestCheckDifferent | Checks whether the specified expressions are different in assertive programming and in automated test mode. | TestCheckEqual | Checks whether the expressions are equal in assertive programming and in automated test mode. | TestCheckFalse | Checks whether an expression is false in assertive programming and in automated test mode. | TestCheckNotNull | Checks whether an expression is not Null in assertive programming and in automated test mode. | TestCheckNull | Checks whether an expression is Null in assertive programming and in automated test mode. | TestCheckTrue | Checks whether an expression is set to True in assertive programming and in automated test mode. | TestError | Provokes: - an assertion during the test of element or project (Go mode).
- an error in automated test mode.
| TestOnError | Provokes: - an assertion during the test of element or project (Go mode).
- an error in automated test mode.
| TestWriteResult | Writes information or an error into the status report of a unit test, in the test editor. |
Note: In the code of an automation test, you can also use the ON instruction..
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|