Working with result locations

By default the Code Coverage Results view contains the local default location so that you can view your previously generated code coverage results. You can add new result locations to access results that were generated elsewhere.

About this task

Adding a result location

Procedure

  1. From the toolbar in the view, click the Add Result Location icon Add Result Button. Alternatively, right-click for the context menu in the view and select the Add Result Location menu option.
  2. In the Add Result Location window, specify the result location to add.
    • To specify a local result location, select Local from the Connection list. In the Location field, type the local directory path or use Browse to select a local directory.
    • To specify a CCS result location, select *CCS from the Connection list. In the URL field, enter a valid URL that contains both the host name and the port number, for example, http://host_name:port_number/ccaas or https://host_name:port_number/ccaas.
      Notes:
      • If the CCS connection is secured with an untrusted certificate, for example a self-signed certificate, you are prompted to accept the certificate before the connection can be added to the view. After that, you will only be prompted to accept the certificate again if you clear the CCS certificate keystore.
      • CCS result locations are only supported with Headless Code Coverage 15.0.0 or later.
    • To specify a remote result location, select an existing one from the Connection list or use New to add a new remote location. In the Location field, type the remote directory path or use Browse to select a remote directory.
  3. Press Ok to add the location to the Code Coverage Results view.

Removing a result location

Procedure

To remove a result location, right-click on a result location, and select the Remove Result Location menu action. Alternatively, select the remote location to remove, and press Delete.

Refreshing a result location

About this task

Built-in result locations are automatically refreshed. However, a local, CCS, or remote result location added by the user is not refreshed automatically.
The following locations are built-in result locations:
  • Workspace Results
  • Java Workspace Results (Deprecated)

Procedure

To ensure that the list of results is in sync with a result location, right-click on a result location, and select the Refresh menu action. Alternatively, select the result location to refresh, and press the F5 key.
Notes:
  • The Refresh button in the view toolbar Add Result Button can be used to refresh all the locations simultaneously.
  • Remote locations and locations that have many results might require a longer amount of time to refresh. During this time, the UI might appear unchanged. Avoid pressing Refresh multiple times as this increases the time to update the list.
  • If the connection is a CCS one and is secured with an untrusted certificate, for example a self-signed certificate, you are prompted to accept the certificate before the connection can be added to the view. After that, you will only be prompted to accept the certificate again if you clear the CCS certificate keystore.

Clearing Code Coverage Service trusted certificates

About this task

After you accept an untrusted certificate when adding or refreshing a CCS location, it is added to the list of trusted certificates, and you are no longer prompted to accept it. You can clear the list if you want.

Procedure

  1. In the Code Coverage Results view, select View menu > Preferences.
  2. In the Preferences window, select Code Coverage Service Certificate Management.
  3. Click Clear stored certificates.
  4. When prompted to confirm, click Yes.
    After you clear the certificates, you will be once again prompted to accept untrusted certificates when adding or refreshing a Code Coverage Service location that is secured with an untrusted certificate, for example, a self-signed certificate.