PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The following functions can be used in the code of an automatic 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 automatic test mode.
TestCheckEqualChecks whether the expressions are equal in assertive programming and in automatic test mode.
TestCheckFalseChecks whether an expression is false in assertive programming and in automatic test mode.
TestCheckNotNullChecks whether an expression is not Null in assertive programming and in automatic test mode.
TestCheckNullChecks whether an expression is Null in assertive programming and in automatic test mode.
TestCheckTrueChecks whether an expression is set to True in assertive programming and in automatic test mode.
TestErrorProvokes
  • an assertion during the test of element or project (Go mode)
  • an error in automatic test mode.
TestOnErrorProvokes
  • an assertion during the test of element or project (Go mode)
  • an error in automatic 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 automatic 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