MediaWiki Reporting Extension: Difference between revisions

From Yocto Project
Jump to navigationJump to search
No edit summary
No edit summary
Line 5: Line 5:
=Report types=
=Report types=


This is a list of reports that can be generated using the reporting extension.
This is a list of reports that can be generated using the reporting extension. The parameters that you need in order to generate a raport are:
# report_id = the ID of the report type (ex: testplan, bugs, status, agenda, concatstats) - does not support multiple inputs
# plan_id = the ID of the test plan/test plans  - supports multiple inputs separated by comma + space ( ", " )
# run_id = the ID of the test run/test runs  - supports multiple inputs separated by comma + space ( ", " )


==Testplan==
==Testplan==


You can generate a list of test cases from one or more test plans. Here is an example:
You can generate a list of test cases from one or more test plans.  
 
NOTE: this is the only current report type that supports (only) test plans. All the rest support (only) test runs.
 
Here is an example:


{| class="wikitable"
{| class="wikitable"
Line 19: Line 26:
  {{#testopia:
  {{#testopia:
  |report_id=testplan
  |report_id=testplan
  |plan_id=34
  |plan_id=34}}
|sortable=true}}
</pre>
</pre>
|{{#testopia:
|{{#testopia:
|report_id=testplan
|report_id=testplan
|plan_id=34
|plan_id=34}}
|sortable=true}}
|}
 
==Status==
 
{| class="wikitable"
|-
|Code
|Output
|-
| <pre>
{{#testopia:
|report_id=status
|run_id=411
|charttype=pie3}}
</pre>
|{{#testopia:
|report_id=status
|run_id=411
|charttype=pie3}}
|}
|}

Revision as of 14:20, 10 May 2013

Summary

This page describes the functionality and usage instructions for the Testopia MediaWiki reporting extension. Derived from http://www.mediawiki.org/wiki/Extension:Testopia_Reports this extension was modified in order to generate reports specific to the Yocto Project's needs. If you wish to use it on another MediaWiki server you can do so by cloning it from the public repository: https://github.com/halstead/testopiareports .

Report types

This is a list of reports that can be generated using the reporting extension. The parameters that you need in order to generate a raport are:

  1. report_id = the ID of the report type (ex: testplan, bugs, status, agenda, concatstats) - does not support multiple inputs
  2. plan_id = the ID of the test plan/test plans - supports multiple inputs separated by comma + space ( ", " )
  3. run_id = the ID of the test run/test runs - supports multiple inputs separated by comma + space ( ", " )

Testplan

You can generate a list of test cases from one or more test plans.

NOTE: this is the only current report type that supports (only) test plans. All the rest support (only) test runs.

Here is an example:

Code Output
 
 {{#testopia:
 |report_id=testplan
 |plan_id=34}}
{{#testopia: report_id=testplan plan_id=34}}

Status

Code Output
 
 {{#testopia:
 |report_id=status
 |run_id=411
|charttype=pie3}}
{{#testopia: report_id=status run_id=411 charttype=pie3}}