Tuto WINDEV 25
Part 4: Full application with data 281 Automatic tests One of the most interesting features of the dashboard is to give information about the tests that have been run on the application. Several tests have already been run while developing our application. The automatic tests are a category of specific tests. The automatic tests are used to automatically perform some operations on your windows. These tests are recorded as WLanguage scenarios and they can be easily modified in the code editor. Once recorded, the automatic test can be re-run as many times as necessary, to test for example the impact of a modification made to a window, a procedure, ... Let’s give it a try! We are going to create an automatic test on the edit window that was created at the beginning of this lesson. Remark The automatic tests can be run on the windows, procedures, classes. ▶ To create an automatic test on a window, all you have to do is run the test of the window: 1. Open the "WIN_Menu" window in the editor. 2. On the "Automatic tests" pane, in the "Tests" group, expand "New" and select "Record a new scenario". 3. In the window that is displayed, click "Start recording". 4. The test of the window is run. 5. Click the "Finding orders" tab pane. 6. Choose the "Credit card" payment mode. 7. Click "Find". 8. Close the window via "Menu .. Exit" and confirm the end of application. Remark This option may not be available if you did not follow the entire tutorial. In this case, click the "x" to close the window. 9. The recording of the automatic test has ended. 10. The test editor proposes to save a description for the automatic test we just created. Enter the name of the automatic test: "Test for finding orders". Validate.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==