Help / WLanguage / WLanguage functions / Standard functions / Debug functions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
dbgStartRecording (Function)
In french: dbgDébutEnregistrement
Starts recording a test scenario (also called reproduction scenario).
The reproduction scenario is a ".wsct" file containing the test scenario.
This file can be supplied to the application designer. To include this scenario in the automated tests of the application, go to the "Automated tests" tab, "Tests" group, expand "New" and select "Import a scenario recorded on the application".
For more details, see Scenario created by the user.
<Result> = dbgStartRecording([<Name of scenario file>])
<Result>: Boolean
  • True if the recording was started,
  • False otherwise.
<Name of scenario file>: Optional character string
Location and name of the scenario file to create. The name and location of the file can be:
  • fully customized.
  • built using the following keywords:
    [%ExeDir%]Directory of the executable, always filled with the "\" character. This directory is equivalent to the result of fExeDir.
    [%ExeName%]Executable name.
    [%Date%]Start date of scenario (YYYYMMDD format).
    [%Time%]Start time of scenario (HHMMSS format).
    [%UserName%]Name of the current user.
    [%ComputerName%]Computer name.
    [%DataDir%]Directory of the HFSQL data files specified by the user when installing the application. This directory is equivalent to the result of fDataDir.
    [%DirUserData%]Directory for the data of the current user of the current application. This directory is equivalent to the result of fDataDirUser.

By default, the name of the scenario file corresponds to: "[%UserDataDir%][%ExeName%]_[%Date%]_[%Time%]".
For example: "C:\Users\Doc\AppData\Roaming\WINDEV Applications\MyApp\Myapp_20161023_130812.wsct".
Caution: If you build strings dynamically ("Allow '[% %]' in the strings" option in the "Compilation" tab of the project description, a compilation error appears (unknown identifier). In this case, each string must be preceded by '-%'. Example:
  • dbgStartRecording has no effect if a scenario is already being recorded.
  • dbgEndRecording is used to end the recording of the scenario.
  • The recording of the scenario can also be started via the ".wx" file found beside the executable. For more details, see Scenario created by the user.
Component: wd290vm.dll
Minimum version required
  • Version 12
This page is also available for…
Click [Add] to post a comment

Last update: 07/03/2023

Send a report | Local help