WEBDEV Concepts

Part 6: Testing aWeb site 193 WEBDEV administrator (dynamic WEBDEV site only) Running the test from the administrator allows you to test: • the site features, • the features specific to the Web (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 in conditions similar to the ones of a Web user. The rights granted to the Web user (access, write and read) correspond to the rights granted to the default Web user defined in the Web server used. WDTestSite (dynamic WEBDEV site only) WDTestSite is used to run stress tests. WDTestSite is used to start several 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 WEBDEV site installed on a deployment computer that is ready to operate. 1. Create a test scenario (with WDTestSite). 2.  Install WDTestSite and the scenario on the different computers to simulate an important 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. Automatic tests Automatic 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. Display the procedure or the class in the "Project explorer" pane. 2. Open the popup menu of the element (right click) and select "Create a unit test".

RkJQdWJsaXNoZXIy NDQ0OA==