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.
- Click the Menu icon next to
the IBM® ADI header to open the
menu pane.
- Click Data Providers to go to the Data
Providers page.
- 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.
- 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.
- Select the Edit icon () on
the 2015Nov10Build row.
The Edit
Build page appears.
- On the Edit Build page, click the Add icon
()
next to Code Coverage Files header section.
- 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.
- Click Save to upload the code coverage
files. The confirm dialog appears.
- 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.
- Click the Back icon on the Builds page
header to go back to the Data Providers page.
- 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.
- 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 .
- Click the Menu icon next to
the IBM ADI header to open the
menu pane.
- Click Workbooks to go to the Workbooks
page.
- Click the Options Menu icon on the header
of the SAM Application card. An options menu appears.
- Select Edit to edit the SAM Application
information.
- 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.
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.