Producing a Use Case Report with Report Writer
Report writer is one of the reporting tools in VP-UML which let you produce well formatted report in an ad-hoc approach. In this tutorial, we will produce a use case report from a use case diagram of an online shop, to show in report the diagram image as well as the flow of events defined in use case.
- Download the project Online Shop.vpp attached with this tutorial.
- Start VP-UML.
- Open Online Shop.vpp in VP-UML.
- We will write a report for the use case diagram modeled in this project. Let's checkout what was modeled. Open use case diagram Online Shop and study the diagram content. The diagram involves two use cases - Register and Buy Item.
- Let's take a look at the flow of events defined for the use case Register. Right click on Register and select Open Use Case Details... from the popup menu.

- Open the tab Flow of Events. The steps required to accomplish the use case was written there.

- We will write a report in the structure as shown in the following image. Let's take a look:

- Now, select Tools > Report > Report Writer... from the main menu.
- In the Report Engine Installation dialog box, keep the option Download from the Internet selected and click OK. If you have already downloaded and installed report engine, you can skip this step.

- Let the download run itself. When completed, click Close to continue with validation and installation. After the installation, click Close to start the report writer. Note that it takes some time to start report writer the first time. Be patient and wait for the Templates dialog box to appear.
-
In the Templates dialog box, enter the following information:
| Field |
Value |
| Company Name |
Hello World Online Shop |
| Report Name |
Online Shop Use Case Report |
| Report Type |
Use Case Report |
| Object Name |
|
| Issue No. |
A-001 |
- Select Lotus to be the document theme and click OK to continue.

-
A new report is created with fields like company name, report name, report type, object name and issue number pre-set.
| Region |
Description |
| 1 |
The menu bar where all the functions can be found and triggered. |
| 2 |
The toolbar where common functions can be triggered. |
| 3 |
The Diagram Navigator / Model Explorer where project data are listed. |
| 4 |
The template pane where template are listed according to the selection in Diagram Navigator / Model Explorer. |
| 5 |
The editing document. |
- Scroll down the document to the final page, where we want to start writing our report.
- We want to first create a diagram image of the use case diagram. Select the diagram Online Shop in Diagram Navigator.

- The template pane is updated with all the templates you can create for a use case diagram listed. Press on the template Use Case Diagram. Drag to the report and drop below the report name.

-
We want to list the shapes on the diagram. Select the template Children. Again, drag and drop to the report, below the image:
Up to now the report should look like this:
- Move on to the use cases. We want to report the use cases' flow of events. Let's start from use case Register. Select it in Diagram Navigator. Then, select Basic Information in the template pane.

- Drag and drop Basic Information to report, below the Children table just created. The report should look like this:

- Select template Flow of Events. Drag and drop below Basic Information. The report should look like this:

-
Report steps 18 to 20 on use case Buy Item. Up to now, the report should look like this:
You can see that nothing is presented under the section Flow of Events of use case Buy Item. This is because the flow of events was not written yet.
- Now, switch to the VP-UML window. In use case diagram, right click on use case Buy Item and select Open Use Case Details... from the popup menu.

- Define the flow of events as shown in the image below.

-
We want to refresh the report content to show the flow of events just defined. Instead of re-creating everything, we can perform an update to let the report refresh itself to reflect the latest project data. Click on button Update from Model Element in report writer.
You can see that the Flow of Events section is now filled.
- Click on the Save Report button in toolbar. This is the end of the tutorial.

Resources
- Online Shop.vpp
Rate this Article
Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).
One Moment Please
Thanks for rating this article.
Comments (0)