ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WEBDEV concepts / Part 6 - Testing a website
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
2. How to test a site?
Previous pageTable of contentsNext page
Multiple tools are available to test a WEBDEV site:
  • WEBDEV's main editor.
  • the WEBDEV administrator.
    This module is required to run a dynamic WEBDEV site (in Session mode or in AWP mode). On the development computer, dynamic sites can be tested using a test page created by the administrator.
  • WDTestSite, load test tool.
The table below presents how and when these test modes must be used.
Test modeType of testRunning the test
EditorRunning the test from the editor allows you to test:
  • the site features,
  • the code used in the different events and processes. A powerful debugger allows you to monitor the execution of different events and processes.
  • the use of the site with different browsers (installed on the development computer).
This type of test:
  • allows you to use the debugger.
  • is taken into account by the "Code Coverage".
  • On the "Project" tab, in the "Test mode" group, expand "Test mode" and select "Debug project".
  • On the "Project" tab, in the "Test mode" group, expand "Test mode" and select "Debug project from the home page".
The rights granted to the user (access, write and read rights) correspond to the rights granted to the developer.
WEBDEV administrator
(dynamic WEBDEV site only)
Running the test from the administrator allows you to test:
  • the site features,
  • Web-specific features (cookies, etc.),
  • the use of the site in real conditions.
Start the WEBDEV administrator ("Start" menu) and click the "Test page" button ("Advanced" tab).
This test allows you to use the WEBDEV site as a real user.
The rights granted to the user (access, write and read) correspond to the rights granted to the default user defined in the Web server used.
WDTestSite
(dynamic WEBDEV site only)
WDTestSite runs load tests.
WDTestSite is used to start multiple simultaneous connections to a WEBDEV site.
Each connection performs a set of actions in the WEBDEV site (preset scenario).
This test must be run on a ready-to-use WEBDEV site installed on a deployment computer.
  1. Create a test scenario (with WDTestSite).
  2. Install WDTestSite and the scenario on different computers to simulate a large number of accesses.
  3. Specify the number of connections to establish.
  4. Run the test scenario on each computer.
Remarks:
  • Each computer establishes a defined number of connections.
  • Each connection performs the selected scenario.
Automated testsAutomated tests are used to test procedures and classes of a site at different levels of development.
The test scenarios are generated in WLanguage from the procedure test or from the class test. The scenarios can be modified in the code editor.
This type of test is taken into account by the "Code Coverage".
  1. Go to the procedure or the class in the "Project explorer" pane.
  2. Right-click to open the context menu of the element and select "Create a unit test".
Previous pageTable of contentsNext page
Comments
Click [Add] to post a comment

Last update: 08/25/2022

Send a report | Local help