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
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.
Example
dbgStartRecording()
Syntax
<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.
  • constructed using the following keywords:
    [%ExeDir%]Directory of executable, always filled with the "\" character. This directory is equivalent to the result of fExeDir.
    [%ExeName%]Name of the executable.
    [%Date%]Start date of scenario (YYYYMMDD format).
    [%Time%]Start time of scenario (HHMMSS format).
    [%UserName%]Name of the current user.
    [%ComputerName%]Name of the machine.
    Versions 18 and later
    [%DataDir%]
    New in version 18
    [%DataDir%]
    [%DataDir%]
    Directory of the HFSQL data files specified by the user when installing the application. This directory is equivalent to the result of fDataDir.
    Versions 18 and later
    [%DirUserData%]
    New in version 18
    [%DirUserData%]
    [%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\Applications WINDEV\MonAppli\Monappli_20161023_130812.wsct".
Versions 22 and later
Caution: If you use the dynamic string construction ("Allow "[% %]" in the strings" in the "Compilation" tab of the project description), a compilation error occurs (unknown identifier). In this case, each string must be preceded by '-%'. Example:
dbgStartRecording("[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]")
becomes
dbgStartRecording(-%"[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]")
New in version 22
Caution: If you use the dynamic string construction ("Allow "[% %]" in the strings" in the "Compilation" tab of the project description), a compilation error occurs (unknown identifier). In this case, each string must be preceded by '-%'. Example:
dbgStartRecording("[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]")
becomes
dbgStartRecording(-%"[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]")
Caution: If you use the dynamic string construction ("Allow "[% %]" in the strings" in the "Compilation" tab of the project description), a compilation error occurs (unknown identifier). In this case, each string must be preceded by '-%'. Example:
dbgStartRecording("[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]")
becomes
dbgStartRecording(-%"[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]")
Remarks
  • The dbgStartRecording function has no effect if a scenario Record is already in progress.
  • 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: wd270vm.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment