|
- Overview
- List of available tests
- Run an automatic test
- Notes
- Display the results of tests
- Overview
- List of available tests
- Run an automatic test
- Notes
- Display the results of tests
Handling an automatic test
When an automatic test is created, this test is in "construction" by default. Several operations can be performed on an automatic test from the test manager: - Change its status (make a test available for example).
- View the status report of test.
- Modify the test code.
- Modify the test description.
You can also: Note: Use in Windows Vista and later: To record and replay the automatic unit tests, the UAC mechanism must be disabled. The list of all the existing automatic tests can be viewed in the "Tests" section of "Project explorer" pane. The different scenarios are grouped according to the element whose test is run (or according to the element that started the automatic test). For example, "TEST_WIN_Menu" groups all the test scenarios run from the "WIN_Menu" window. Note: To view the automatic tests run on a project, you also have the ability to select "Automatic tests .. Display the results". To edit a test found in this list, all you have to do is double-click its name. The results can be printed via the "Print" button.Note: To view the different automatic tests run on a project, on the "Automatic tests" pane, in the "Tests" group, click "Show the results". To edit a test found in this list, all you have to do is double-click its name. The results can be printed via the "Print" button. Several methods can be used to run the tests, from the product used or from the test manager. To run all the tests of the current window in the editor, all you have to do is select "Automatic tests .. Run the tests".To run all the tests of the current window in the editor, on the "Automatic tests" pane, in the "Tests" group, expand "Run" and select "Run the tests". To run a test from the test manager, all you have to do is select the requested test and select "Run" from the popup menu. To run all the tests displayed in the test manager, all you have to do is select "Automatic tests .. Run all the list tests". Notes - When a list of tests is run, the tests marked as "In construction" are not run.
Versions 16 and laterIf the option "Automatic tests .. Enable the dynamic audit during the automatic tests" is enabled, the dynamic audit will be automatically run during the automatic tests and the report window of the dynamic audit will be displayed at the end of test execution. New in version 16If the option "Automatic tests .. Enable the dynamic audit during the automatic tests" is enabled, the dynamic audit will be automatically run during the automatic tests and the report window of the dynamic audit will be displayed at the end of test execution. If the option "Automatic tests .. Enable the dynamic audit during the automatic tests" is enabled, the dynamic audit will be automatically run during the automatic tests and the report window of the dynamic audit will be displayed at the end of test execution. To enable the dynamic audit during the automatic tests, on the "Automatic tests" pane, in the "Tests" group, expand "Run" and select "Enable the dynamic audit during the automatic tests". The dynamic audit will be automatically run during the automatic tests and the report window for the dynamic audit will be displayed at the end of the test execution. - Before creating the executable of the application, you should run the tests of the application in order to avoid regressions. The wizard for executable creation presents the different tests run and their status.
- The different tests can be run on the executable directly. See Running the test of an executable for more details.
- The dashboard of the project allows you to quickly find out the number of tests in construction, validated, passed, ...
Versions 21 and laterThe tests can be run at slow speed to see the actions performed for example: on the "Automatic tests" pane, in the "Tests" group, expand "Run" and select "Run the tests at slow speed". New in version 21The tests can be run at slow speed to see the actions performed for example: on the "Automatic tests" pane, in the "Tests" group, expand "Run" and select "Run the tests at slow speed". The tests can be run at slow speed to see the actions performed for example: on the "Automatic tests" pane, in the "Tests" group, expand "Run" and select "Run the tests at slow speed".
Display the results of tests To display the result of automatic tests on a project: - Select "Automatic tests .. Display the results".On the "Automatic tests" pane, in the "Tests" group, click "Show the results".
- From the project dashboard, click the test button.From the dashboard of the project, expand the arrow in the "Tests" widget and select "Display the results".
The result of tests is displayed: From this window, you can: - Handle a test via its popup menu
- Re-run a test.
- Print the results of automatic tests.
When an automatic test is created, this test is in "construction" by default. Several operations can be performed on an automatic test from the test manager: - Change its status (make a test available for example).
- View the status report of test.
- Modify the test code.
- Modify the test description.
You can also: Note: Use in Windows Vista and later: To record and replay the automatic unit tests, the UAC mechanism must be disabled. The list of existing automatic tests can be viewed in the "Tests" folder of "Project explorer" pane. The different scenarios are grouped according to the element whose test is run (or according to the element that started the automatic test). For example, "TEST_WIN_addressinput" groups all the test scenarios run from the "WIN_addressinput" window. Several methods can be used to run the tests, from the product used or from the test manager. To run all tests of current window in the editor: - Check whether the requested window is opened in the window editor.
- On the "Automatic tests" pane, in the "Tests" group, click "See the associated tests".
- In the test manager, position on the test name and select "Start all the tests in the list" from the popup menu.
To run a test from the test manager, all you have to do is choose the requested test and select "Run" from the popup menu. To run all the tests displayed in the test manager, all you have to do is select "Run all the tests found in the list" from the popup menu of test manager. To run all the project tests, on the "Automatic tests" pane, in the "Tests" group, expand "Run" and select "Run all the project tests". Notes - To enable the dynamic audit during the automatic tests, on the "Automatic tests" pane, in the "Tests" group, expand "Run" and select "Enable the dynamic audit during the automatic tests". The dynamic audit will be automatically run during the automatic tests and the report window for the dynamic audit will be displayed at the end of the test execution.
The different tests can be run on the executable directly. See Running the test of an executable for more details. - The dashboard of the project allows you to quickly find out the number of tests in construction, validated, passed, ...
- The tests can be run at slow speed to see the actions performed for example: on the "Automatic tests" pane, in the "Tests" group, expand "Run" and select "Run the tests at slow speed".
Display the results of tests To display the result of automatic tests on a project, on the "Automatic tests" pane, in the "Tests" group, click "Show the results". The result of tests is displayed in the "Results of tests" pane.
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |