Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

OptionValueDescription
-scope <path>A path to the scope configuration file. Required if the scope is other than the default; see Customizing Scope of Coverage.
-agentTimeout<miliseconds>

Specifies the timeout for connection with the coverage agent. Adjust the timeout to your machine capabilities. The default value is 1500 ms.

Info

If you provide 0 or a negative value, the connection attempt will not timeout, which may lead to a considerable slowdown or hang the tool.

-port<port number>Specifies the port number when you start dottest_iismanager if the default port is unavailable.
-multiuser
Enables collecting coverage information for multiple users; see Collecting Coverage from Multiple Users.
-useSsl
Enables connecting via HTTPS; see Connecting with the the Coverage Agent via HTTPS.
-certificateHash<SSL certificate hash>

Specifies the hash of the SSL certificate for the port that is used by the coverage agent; see Connecting with the Coverage Agent via HTTPS.

-certificatePath<path>Specifies the path to a PFX file that stores the SSL certificate; Connecting with the Coverage Agent via HTTPS.
-certificatePassword<password>Specifies the password to the SSL certificate stored in a PFX file; see Connecting with the Coverage Agent via HTTPS.
-displayappid
Prints the 'appid' of the dotTEST IIS Manager; see Connecting with the Coverage Agent via HTTPS.
-removeCertificate
Removes the SSL certificate when the port is manually unregistered with the -unregister switch; see Connecting with the Coverage Agent via HTTPS.
-skipvalidation
Enables using a self-signed SSL certificate; see Connecting with the Coverage Agent via HTTPS.

Executing Tests to Collect Runtime Coverage

You can use SOAtest to run functional tests, as well as execute manual tests with Coverage Agent Manager (CAM). Refer to the SOAtest user guide or CAM documentation for details about performing test sessions.

When tests are being performed:

...

  1. Go to Report Center in the DTP interface.
  2. Click the gear icon and choose Report Center Settings> Additional Settings> Report Center Administration> Tools> Data Collector Upload Form (requires admin permissions).
  3. Click Choose File and browse for the report.xml file you downloaded from CAM.
  4. Click the Upload button to upload the file to DTP.

If you use Jtest with dotTEST with SOAtest, test results are automatically sent to DTP during test execution. See the Application Coverage section in the SOAtest user guide at https://docs.parasoft.com.

Anchor
Merging Static and Runtime Coverage
Merging Static and Runtime Coverage
Merging Static and Runtime Coverage and Uploading the Data to DTP

If you use Jtest with dotTEST with CAM:

  1. Ensure that dotTEST is properly configured, including DTP, scope and authorship settings. See Connecting to DTP 1Sending Results and Publishing Source Code to DTPConfiguration.
  2. Configure the following settings in the dottestcli.properties file in order to properly merge coverage data:
    report.coverage.images -  Specifies a set of tags that are used to create coverage images in DTP. A coverage image is a unique identifier for aggregating coverage data from runs with the same build ID. DTP supports up to three coverage images per report.
    session.tag - Specifies a unique identifier for the test run and is used to distinguish different runs on the same build.
    build.id - Specifies a build identifier used to label results. It may be unique for each build, but it may also label several test sessions executed during a specified build.
  3. Copy the runtime coverage and static coverage files to the same machine and run dottestcli with the following switches:

    • -runtimeCoverage: Specifies the path to runtime coverage that you download with CAM (see Coverage Agent Manager (CAM) section of the DTP documentation for details). You can provide a path to an individual .data file with coverage information from one testing session, or a path to a folder that contains many .data files from multiple testing sessions.
    • -staticCoverage: Specifies the path to the static coverage file (see Generating the Static Coverage File).
    • -publish: Sends the merged coverage to DTP.
    Code Block
    dottestcli.exe -runtimeCoverage [path] -publish -staticCoverage [path]

If you use Jtest with dotTEST with SOAtest, static and dynamic coverage data are merged and sent to DTP during test execution. See the Application Coverage section in the SOAtest user guide at https://docs.parasoft.com.

...