AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / Pruebas / Pruebas automatizadas
  • Overview
  • Implementation
  • Creating and recording the scenario
  • Importing a scenario into a project
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
WINDEV allows the user to record a test scenario in order to send it to the quality service or to the developer. Therefore, the user can easily transmit a reproduction protocol that is difficult to explain.
The developer will be able to import the tests directly into his project. These tests can be run to reproduce the problem encountered by the user and they can be added to the automated tests of the application.
The extension of a scenario file is "wsct".
Implementation

Creating and recording the scenario

The creation of the scenario can be performed:
  • in the application directly, through programming, with dbgStartRecording. Several WLanguage functions are available:
    dbgEndRecordingStops recording the scenario
    dbgStartRecordingStarts recording the scenario.
  • without modifying the application, via a specific file. To do so, create a file named <Executable Name>.WX beside the executable of the application.
    This file must contain the following lines:
    [Scenario]
    Actif = <0/1>
    Fichier = <Nom du fichier WSCT>
    CheminDLL = <Chemin DLL de test>

    Let's take a look at these lines:
    • Active: This parameter must correspond to 0 for not recording, and 1 for recording the scenario.
    • File: Scenario file name (file extension "wsct"). This name can be built from the following elements:
      [%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 file.
      [%Time%]Start time of scenario file.
      [%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.
    • PathDLL: path to wd300test.dll library. This DLL is required to create the scenario.
Importing a scenario into a project
To import a scenario created by the user into a project:
  1. Open the desired project in WINDEV.
  2. On the "Pruebas automatizadas" tab, in the "Pruebas" group, expand "Nuevo" and select "Import a scenario recorded on the application".
  3. Select the scenario file to import (wsct extension).
  4. The scenario is automatically imported into the project:
    • An automated test is created for each window used in the scenario. If some tests already exist for the window, the imported tests are automatically created in the test associated with the window.
    • Imported tests are automatically put into construction: it's up to the developer to look at the tests and activate them if necessary.
    • The description windows corresponding to the imported tests are displayed below the editor, allowing you to review each test one by one.
Versión mínima requerida
  • Versión 11
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

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