|
|
|
|
|
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 mode | Type of test | Running the test |
---|
Editor | Running 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. | - Create a test scenario (with WDTestSite).
- Install WDTestSite and the scenario on different computers to simulate a large number of accesses.
- Specify the number of connections to establish.
- Run the test scenario on each computer.
Remarks: - Each computer establishes a defined number of connections.
- Each connection performs the selected scenario.
| Automated tests | Automated 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". | - Go to the procedure or the class in the "Project explorer" pane.
- Right-click to open the context menu of the element and select "Create a unit test".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|