PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
Provokes:
  • an assertion during the test of element or project (Go mode).
  • an error in automated test mode.
Remark: This function is equivalent to dbgError.
Syntax
TestError(<Comment 1> [, <Comment 2> [... [, <Comment N>]]])
<Comment 1>: Character string
Text that will be displayed in the assertion window or in the status report of unit test.
<Comment 2>: Optional character string
Text that will be displayed in the assertion window or in the status report of unit test.
<Comment N>: Optional character string
Text that will be displayed in the assertion window or in the status report of unit test.
Remarks
  • When TestError is called:
    • WINDEVWEBDEV - Server code in automatic test mode, an error is added to the test report (equivalent to the TestWriteResult function).
    • in manual test mode, an assertion is displayed (equivalent to dbgAssert).
    • in runtime mode, an assertion is displayed if the assertions have been enabled (equivalent to dbgAssert).
  • Versions 22 and later
    AndroidAndroid Widget The messages of TestError will be written into the ADB log (at "Assert" level). For more details, see Managing ADB logs.
    New in version 22
    AndroidAndroid Widget The messages of TestError will be written into the ADB log (at "Assert" level). For more details, see Managing ADB logs.
    AndroidAndroid Widget The messages of TestError will be written into the ADB log (at "Assert" level). For more details, see Managing ADB logs.
Component: wd270vm.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment