WEBDEV Concepts

196 Part 6: Testing a Web site Site test in practice 1 Overview WEBDEV offers several methods for testing your sites: • test of the entire project, • test of a single page, • test of a single query, • test of a single report, • step-by-step project execution, • site performance test, • regression test/automatic test, • stress test. A test of the entire project simulates the site startup. This makes it possible to test the entire site, even if its development is not complete yet. If a problem occurs, you can start the debugger to identify and fix the problem. A test of a single page runs the current page only. This allows you to test of your project from a given page or to check the operating mode of a page as soon as its development is complete. Like for the project test, the debugger can be started if a problem occurs. The test of a single query runs the current query only. This allows you to check the operating mode of a query once it has been developed. The test of a single report runs the current report only. This allows you to test a report once it has been developed. Like for the project test, the debugger can be started if a problem occurs. A step-by-step project execution allows you to launch the debugger when starting the site. This solution allows you to closely monitor how the site runs. A performance test allows you to check and optimize the execution time of your site. A regression test (or automated test) is based on the execution of scripts. It allows you to check that, during the execution of your site, the existing features are still supported. A load test establishes multiple simultaneous connections to a dynamic WEBDEV site. In addition to these methods, WEBDEV also includes the "Code coverage" of the site, i.e., the measurement of how much code is executed when the site is tested. For more details, see the online help. 2 Testing a WEBDEV project 2.1 Testing the project from the editor Running the test from the editor allows you to test: • the site features, • the use of the site with different browsers. The test of a project can be run regardless of the current element in the editor. Remark: The test browser used to run the project test can be chosen: • in the WEBDEV options: on the "Home" tab, in the "Environment" group, expand "Options" and select "General options of WEBDEV". The browser can be selected in the "Web" tab. • in the test mode options: on the "Project" tab, in the "Test mode" group, expand "Test mode" and select "Test browser". Different types of tests To run the test of a static site from the editor : 1. On the "Project" tab, in the "Test mode" group, expand "Test mode" and select "Debug project from the home page". 2. The editor is automatically minimized. 3. The browser specified in the WEBDEV options is opened and the site home page is displayed. To run the test of a dynamic site (Session or AWP) from the editor , several methods are available: • On the "Project" tab, in the "Test mode" group, expand "Test mode" and select "Debug project" (or press Ctrl + F9). • Click in the quick access buttons. The editor is automatically minimized, the browser specified in the WEBDEV options is opened and the first site page is displayed.

RkJQdWJsaXNoZXIy NDQ0OA==