ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Test functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
Note: In the code of an automation test, you can also use the ON instruction..
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: 09/21/2024

Send a report | Local help