WINDEV Concepts
Part 4: Advanced concepts 149 Unit tests/Automated tests Unit tests (also called automated tests) are used to test windows, procedures and classes in an application at different levels of development. To do so, select (or create) the test scenario that will be run. Test scenarios are generated in WLanguage and can be directly modified. These scenarios can be found in the test editor. The test editor analyzes the result of the unit tests and calculates the validation rate of the application. WINDEV window in the editor 1 2 Creating a test scenario Record test scenario 3 WLanguage code of test scenario Display test editor 1 2 Using a test scenario (classes and procedures) Run test 3 Result of the test Correction To create a unit test on the current window, go to the "Automated tests" tab, "Tests" group, expand "New" and select "Record a new scenario". To create a unit test on a procedure or on a class method, select the procedure or class method in the "Project explorer" pane and select "Unit tests .. Create a unit test" in the context menu.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==