PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Running a scenario
  • Running a scenario
  • Notes
  • Running a scenario in command line
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
WDTestSite: Running a scenario
Overview
The scenario is a text file (".WCN" extension) containing all the operations performed when recording the scenario.
This scenario is run by WDTestSite.
Running a scenario
Running a scenario allows you to run regression tests on a WEBDEV site. Indeed, a scenario run with an earlier version of the site must operate properly with an upgraded site.
Running the same scenario several times consecutively is used to test the server capacity for multiple connections, ... In this case, we recommend that you use a scenario that does not close the site.
In all cases, the scenario should be run:
  • from any computer (development computer for example).
  • on the Web server for deploying the WEBDEV site.

Running a scenario

To run a scenario:
  1. Configure the WEBDEV administrator of the computer where the scenario will be run (Web server). Check the parameters of the site corresponding to the scenario:
    • the maximum number of connections to the site:
      This number must correspond to the maximum number of simultaneous connections (or successive connections if the sites are not closed).
    • the maximum number of times a user can reconnect to the site:
      For a scenario run several times from a computer, this number must correspond to the number of scenario executions.
    • the idle time before disconnecting the inactive users:
      Wen checking the server capacity, the idle time before disconnecting the inactive users must be quite long (more than 30 minutes for example).
  2. Start WDTestSite on the test computer (development computer for example).
  3. Select the Web server on which the scenario must be run. This server must be accessible from the test computer. The WEBDEV administrator (Development version or Deployment version) must be started on the server.
    In the "Target Computer" list, you can enter:
    • the name of a computer accessible via network. Example: "Test server"
    • an IP address. Example: 123.3.456.12
    • an Internet address. Example: www.webdev.eu
      The "Neighborhood" button is used to list the computers directly accessible via network (not available in Windows 98 or Me).
  4. Select your scenario from the list of available scenarios.
  5. Click "Run". The runtime window is displayed and the test is automatically run.
  6. To run the scenario several times consecutively, specify a number of turns greater than 1 and click the "Re-run" button.

Notes

  • When running the scenario, all the actions performed in the site are displayed. If a problem occurs (error, ...), the scenario stops and the last line displays the error that occurred.
  • If an error occurs, an HTML file containing the error is saved in the "C:\TEMP" directory of the current computer. Caution: the Internet user must have read/write rights on "C:\Temp".
  • To test the server capacity during simultaneous connections, the same scenario should be run from different computers. See "Installing WDTestSite on different computers" for more details.
Running a scenario in command line
To run a scenario in command line:
  1. Configure the WEBDEV administrator of the computer where the scenario will be run (Web server). Check the parameters of the site corresponding to the scenario:
    • the maximum number of connections to the site:
      This number must correspond to the maximum number of simultaneous connections (or successive connections if the sites are not closed).
    • the maximum number of times a user can reconnect to the site:
      For a scenario run several times from a computer, this number must correspond to the number of scenario executions.
    • the idle time before disconnecting the inactive users:
      Wen checking the server capacity, the idle time before disconnecting the inactive users must be quite long (more than 30 minutes for example).
  2. Start WDTestSite on the test computer by using the following syntax:
WDTestSite /AUTO = <Scenario name>
For example: "WDTestSite /AUTO = MyScenario.wcn". The scenario is automatically run and WDTestSite is closed.
The scenario must be found in the scenario directory.
Reminder: The scenario (".WCN" file) is created in the "Scenario" sub-directory of the directory containing "WDTestSite.EXE".
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment