|
|
|
|
|
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". 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.
- 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. |
The default scenario file name is: "[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]". For example: "C:\Users\Doc\AppData\Roaming\Applications WINDEV\MonAppli\Monappli_20161023_130812.wsct". Warning: If you use dynamic string construction (option "Allow "[% %]" in strings" 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("[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]")
becomesdbgStartRecording(-%"[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]")
Remarks - 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|