Session 1. Basic Setup and Use

  1. Start LiveCoverage using Start | Programs | LiveCoverage. Or, if LiveCoverage is already running, select File | New Project to start with a fresh project.

  2. Select File | Add Executable... . You will get a File Open dialog.

  3. In the dialog, navigate to the folder where LiveCoverage was installed. This is normally C:\Program Files\LiveCoverage. Open the DemoFiles folder, select the file Scribble.exe and choose Open.

  4. Scribble.exe will now appear in the summary window. The Folder, File, and Procedure columns will be empty. The Hit column will be zero, indicating that no part of the program has been executed. The Missed column will equal the Size column, again showing that all of the program is still unexecuted. The Percent column shows yet another metric for coverage and will be zero. The Excluded and Hidden columns are optional fields and will be zero.

  5. Select Test | Start. The sample application will start. Resize the windows so you can see both the LiveCoverage summary window and the sample application window.

  6. Notice in the LiveCoverage summary window that over 3,000 bytes of the sample application have already been Hit, representing about 30% of the program. In the right half of the status bar at the very bottom of the LiveCoverage window, LiveCoverage reports that one executable module is running.

    Monitoring test coverage - 1 of 1 executable modules are running

  7. Keeping an eye on the summary window, click and drag the mouse in the sample application window, drawing a line freehand. Notice how the Hit count and Percent both jump.

  8. Close the sample application without saving changes.

  9. Select File | Save Project to save the LiveCoverage project. Use the default name and folder.