To make sure you get the correct results for your code coverage, it is important to be aware of which actions will accumulate the recorded code coverage and which actions will reset the value back to zero.
Code coverage reset
The following result in the code coverage value being reset:
Stopping the AUT. When the AUT is started again, the code coverage value is reset to zero. The test executor ensures that all monitoring information is collected before stopping the AUT.
![]() |
If you stop the AUT while code coverage is being calculated, then the value will also be set to zero! |
Code coverage accumulation
The following result in code coverage information being accumulated:
Any actions you perform manually in an AUT that has been started with code coverage will contribute to the code coverage result.
Code coverage is accumulated across Test Suites by default. If you want to reset the code coverage at the beginning of each Test Suite, then select this option in the AUT configuration (Section 3.28.2, “Configuring code coverage for an AUT”).
![]() |
If you are working with Test Jobs, then do not opt to reset the code coverage at the beginning of a Test Suite. |
If you use the restart action during a test, this does not result in the code coverage value being reset.