|
QuickBuild 2.0 Documentation
|
The QuickBuild has a very flexible reporting system, and most of the build reports supported by QuickBuild are generated and rendered by defining an XML configuration. You can change the definitions in the report plugin setting to create customized report or to change the look-and-feel of the reports itself. You can also create a very simple plugin and write the XML definition in the plugin setting to add a new kind of report not yet supported in QuickBuild.
Concepts of QuickBuild ReportQuickBuild report is like a table in a database system that includes data rows and data columns. All data columns are defined in report meta data, which is the schema of a report. All data will be stored as a XML file in QuickBuild. The relationship between reports is retrieved from the primary columns defined in the report meta data. Following shows a typical QuickBuild report: <?xml version="1.0" encoding="UTF-8"?> <testcase version="1.0"> <row id="0" name="testMerging" status="success" time="18"/> <row id="1" name="testHandSQL" status="success" time="26"/> <row id="2" name="testSerializationOnAfterStatementAggressiveRelease" status="success" time="44"/> <row id="3" name="testSerializationFailsOnAfterStatementAggressive" status="success" time="27"/> <row id="4" name="testQueryIteration" status="success" time="29"/> .... ...... </testcase> To create a QuickBuild report, we will define a report generator to tell QuickBuild how to create the report. After generating a report, you also need to define a report renderer so QuickBuild can render the report to HTML and the report can be displayed by web browser. In QuickBuild, there are two kinds of report, one is for build, we call it Build Report, and another is for statistics, we call it Statistics Report. Both of them use the concepts we just described. The Build Report will be rendered in the Builds Tab, and the Statistics Report will be rendered in the Statistics Tab. The Build Report is used to show build specific data, while the Statistics Report is used to gather the statistics data from the Build Report. You can then follow the trends of the build data in the Statistics Report. Report CategoryIn QuickBuild, reports are categorized into a category. For example, we can categorize all JUnit related reports together into JUnit Report Category. Normally, one report plugin contains one report category. The definition of a report category can be viewed/customized in the plugin setting (you may need be authorized to do so). As the screenshot shows, the report category contains:
DataRowThe data stored in QuickBuild Report is a set of data rows. Each data row is a record of the report. In many situations, you need to retrieve the data from a data row. For example, when you generate the report, you need to retrieve the value of 'errors' column, so that you can set the value of column 'status', or when you are using velocity template to render the page, you also need to retrieve the appropriate values of the report columns. Following are the frequently used functions:
In most cases you do not need to invoke the 'setValue' functions directly, QuickBuild will do it for you. |
08. Customize The Report
(None)
