|
|
|
|---|---|
|
A Detailed Look at Visual Basic Coverage Expert
The screens below give some idea of the way Visual Basic Coverage Expert (VBCE) works and how it reports results to the user. You will see that VBCE supports all the functions you would expect and gives you full control of the coverage measurement to be performed on your VB project. However, using just screen shots, it is not possible to show how intuitive and easy to use VBCE is, or how well integrated it is with the Visual Basic® development environment. To understand the product fully you need to Download The Free Trial Version.
NOTE: You can click on any thumb-nail to bring up a larger version of the picture in a separate window.
VBCE's basic results window gives a summary of the coverage obtained during testing for Statements (%S), Blocks (%B), Entry points/functions (%E) and Decisions (%D). The easy to use navigator window allows you to look at the results for any part of your project on a module-by-module or function-by-function basis. Results can, at the users option, include all test runs or just the current run. Also, error handlers can be specifically included or excluded from the reported results. A more detailed report of coverage can be obtained by viewing the coverage of the code, or by sending the data to an Excel® spreadsheet or CSV file. Double clicking any of the functions in the list will bring up the following window, which details code coverage at the function level.
Results Windows with code coverage view
This window shows in full detail which code has and hasn't been executed in a function. The blue code is executed and the red is unexecuted. Black indicates a non-executable statement such as a declaration, comment or parts of some control constructs. The code can be viewed by statements or blocks. More detail can be obtained on individual lines of code, as shown in the next screen.
Results window with code coverage view and statistics
By clicking on a line of code statistics on that statement or block are shown. This includes how many times the statement has been executed and, in the case of conditional statements, shows how many times each decision outcome has been executed. So VBCE gives full visibility of the code from the project right down to the level of individual lines of code. But there's more - VBCE can show you how many of your functions have been executed while the code is running. VBCE allows you to watch coverage increase, in real-time, as the code executes. This window updates automatically as the program executes allowing you to see which functions have not been entered. This gives immediate indication of areas requiring more testing. The following window is an alternative representation of the same information:
Results Window with Trace Function
Another useful function provided by VBCE is 'tracing'. With tracing enabled, VBCE can step through the code, line by line, and show the user in which order their code was executed. This means that they can see which path the execution has taken through a function after testing it. This is something which can not be shown with coverage statistics alone and is complimentary to the VB debugger. No development tool is useful without good documentation. VBCE's documentation is in the form of comprehensive on-line help. This gives both the background to the coverage statistics provided by VBCE and step-by-step details on using the tool. VBCE works by instrumenting the users code to monitor its execution. This screen controls which modules and functions within them are instrumented and the type of instrumentation to be performed on each. |