After the test session is finished you need to collect the report.xml file, which contains the pass/fail results and other information about the test. Test results are downloaded from CAM and will be saved to a %REPORTS_DIR%.
You must also collect the coverage.xml file, which contains the coverage information. Coverage results are saved in the %MONITOR_DIR%\runtime_coverage folder by default, but they can also be downloaded using the CAM GUI. Coverage information will be processed in the next step (Publishing Test and Coverage Results to DTP).
By default, DTP displays coverage data for the latest build. It is important to use a consistent build as you process the coverage data. See the Jtest (or dotTEST) documentation for details about setting the build ID to define builds.
Open a command prompt and run the following command to merge the dynamic coverage with the static coverage collected in Setting Up the Coverage Agent Manager:
jtestcli -config "builtin://Calculate Application Coverage" -staticcoverage %MONITOR_DIR%\static_coverage.xml -runtimecoverage %MONITOR_DIR%\runtime_coverage -property build.id=Calculator-2016-09-25 -property dtp.project=Calculator -property report.coverage.images="Calculator-All" -report %REPORT_DIR% -property session.tag="Manual Coverage Tests" -property report.dtp.publish=false
A coverage.xml file is created.