WEBDEV Concepts

Part 6: Testing aWeb site 201 6.4 Choosing a process to optimize The processes to be optimized are chosen based on several criteria: • the process execution time . The longest processes must be optimized. • the percentage of time used by the function or procedure . The higher this percentage is, the greater the number of processes that can be optimized in the code. Remark : If the process corresponds to aWLanguage function, it is fairly hard to optimize it. 7 Regression tests 7.1 Overview Several test tools are available to guarantee the quality of your applications: • The test mode (project Go or page Go) is used to immediately check a modification performed in your site. • WDTestSite that is used to run different tests on a WEBDEV site. To automate these tests and to increase the quality of your applications, you have the ability to run automatic unit tests . These tests allow you to easily check all the features available in your applications. 7.2 Automated tests Each test contains a scenario that can be directly edited in the development environment. This scenario is written in WLanguage and it can be modified at any time. These tests can be run before each deployment in order to check the operating mode of a site after several modifications. The following elements can be tested: • sets of procedures • classes Each test is associated with a WLanguage code: the test scenario. This scenario can be viewed in the code editor. The code of the tests can be modified. The tests and the associated code are not distributed to the end users. Therefore, the number of tests has no impact on the size of the site available to end users. For more details, see the online help (keyword: "Automated test"). 7.3 WDTestSite WDTestSite is used to run different tests on a WEBDEV site. The following tests can be run by WDTestSite: • Load test : The stress test consists in simulating the connection of several Web users to a WEBDEV site. Each Web user runs a set of operations (scenario) simultaneously. • Regression test : The regression test consists in checking the operating mode of a WEBDEV site between two updates. The regression test consists in checking whether a scenario performed with an earlier site version still operates properly once the site was updated. • Test of a site in multi-user mode : The test of a site in multi-user mode is used to check whether concurrent accesses to the data files are managed properly. This test consists in simulating the simultaneous connection of several Web users to a WEBDEV site. Each Web user runs a set of operations (scenario) simultaneously. • Comparison of different servers : WDTestSite is used to compare the speed of different servers. To do so, run the same scenario on different servers and compare the execution time of this scenario. • Optimization of processes developed in WLanguage : WDTestSite is used to compare the execution time of a scenario before and after the WLanguage code was optimized. For more details, see the online help (keyword: "WDTestSite").

RkJQdWJsaXNoZXIy NDQ0OA==