WINDEV Mobile Concepts

Part 4: Advanced concepts 67 Unit 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 Mobile window in the editor 1 2 Creating a test scenario Record the test scenario 3 WLanguage code of test scenario Display the test editor 1 2 Using a test scenario (classes and procedures) Run the 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.

RkJQdWJsaXNoZXIy NDQ0OA==