ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Test functions
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
The following functions can be used in the code of an automated test:
TestAddIterationAdds an iteration into the current test and gives the values of test parameters for this iteration.
TestCheckWrites a result into the status report of a test according to the result of a boolean expression.
TestCheckDifferentChecks whether the specified expressions are different in assertive programming and in automated test mode.
TestCheckEqualChecks whether the expressions are equal in assertive programming and in automated test mode.
TestCheckFalseChecks whether an expression is false in assertive programming and in automated test mode.
TestCheckNotNullChecks whether an expression is not Null in assertive programming and in automated test mode.
TestCheckNullChecks whether an expression is Null in assertive programming and in automated test mode.
TestCheckTrueChecks whether an expression is set to True in assertive programming and in automated test mode.
TestErrorProvokes:
  • an assertion during the test of element or project (Go mode).
  • an error in automated test mode.
TestOnErrorProvokes:
  • an assertion during the test of element or project (Go mode).
  • an error in automated test mode.
TestWriteResultWrites information or an error into the status report of a unit test, in the test editor.
Remark: In the code of an automated test, it is also possible to use the statement ON.
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