Adding the code coverage files to the first build

In this lab, you play the role of Tammy, the test manager, to add the code coverage files for analysis to the first build that is being created in the Manual Builds data provider.

Complete the following steps to add the code coverage files to the first build.
  1. Click the Menu icon next to the IBM® ADI header to open the menu pane.
  2. Click Data Providers to go to the Data Providers page.
  3. Click the Options Menu icon on the header of the SAM Manual Builds data provider card. An options menu appears.
    Note: The options menu are different from what you have seen in the previous lab. This is because of the role permissions that are assigned to this user. Tammy has only the role permissions as a workbook owner. As a result, she can not edit nor delete a data provider. For more information about role permissions, see Assigning role-based permissions to ADI users.
    Figure shows the options menu for SAM Manual Builds data provider.
  4. Select View Builds from the options menu that appears. The Builds page with all the builds in the data provider appears. Currently only one build is available, that is, 2015Nov10Build.
  5. Select the Edit icon () on the 2015Nov10Build row.
    Figure shows the highlighted Edit icon in the 2015Nov10Build row on the page of Builds.

    The Edit Build page appears.

  6. On the Edit Build page, click the Add icon () next to Code Coverage Files header section.
    Figure shows the Add icon on the page of Edit Build where you can add code coverage files.
  7. Select samt1.zip, samt2.zip, samt3.zip, samt4.zip, samt5.zip, samt6.zip, samt7.zip as the code coverage files.
    Note: Browse to the sample data folder. Open the Installed ADI folder > adi >examples> cobol-coverage > SAM App > November 10 2015. Multi-select samt1.zip, samt2.zip, samt3.zip, samt4.zip, samt5.zip, samt6.zip, samt7.zip files.
    Figure shows that 7 sample zip files have been selected as code coverage files.
  8. Click Save to upload the code coverage files. The confirm dialog appears.
    Figure shows the confirm dialog.
  9. Click OK to confirm the files you upload. The Builds page appears with a message that shows the data collection is scheduled. You will be notified when the data collection is completed.
    Figure shows the a message that indicates the data collection was scheduled.
  10. Click the Back icon on the Builds page header to go back to the Data Providers page.
  11. Wait for a couple minutes till the data collection to complete. To view the status of data collection, click Notifications (bell) icon on the upper right corner of the window.
    Figure shows the Notifications icon and recent notification messages.
  12. After the code coverage data collection is completed, you can go to the Analysis workbook to see which source files are tested based on the code coverage results that have been loaded. In real-life scenarios, there can be hundreds of source files for an application which makes it hard for the testers to focus the testing in different area. In this case, you can create multiple Analysis workbooks and define the focus area within each Analysis workbook by using the custom scope. You can complete the following steps to define the custom scope .
    1. Click the Menu icon next to the IBM ADI header to open the menu pane.
    2. Click Workbooks to go to the Workbooks page.
    3. Click the Options Menu icon on the header of the SAM Application card. An options menu appears.
    4. Select Edit to edit the SAM Application information.
      Figure shows the options menu of the SAM Application Analysis workbook.
    5. On the Edit Analysis Workbook page that appears, scroll down to Refine Custom Scope section and click the Expand icon to view the source files that are loaded to the Manual Builds data provider. These source files, SAM1.cbl and SAM2.cbl in this case, are tested as part of the code coverage results.
      Notes:
      • By default, if you do not select any files, ADI considers all files for analysis.
      • If you want to define your own scope for this Analysis workbook, select the Pin icon () in front of the item name to include the file in the scope.
      Figure shows the section of Refine Custom Scope.

    For this tutorial, you will not define the custom scope for SAM Application. Click Cancel to cancel the changes.

Now as Tammy you have added the code coverage files to the first build of the SAM Application Analysis workbook. You are now able to see the code coverage analysis results of the 2015Nov10Build from the Workbooks page.