AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de pruebas
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)
Versión mínima requerida
  • Versión 11
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/06/2023

Señalar un error o enviar una sugerencia | Ayuda local