Download 1. Confluence User Guide

Transcript
Confluence 3.0 Documentation
To insert the JUnit report macro into a page using the Wiki Markup Editor,
Enter the junitreport code tags into your document as follows.
{junitreport:directory=file:///*directory*/}
Parameters
Parameters are settings for Confluence macros that allow the user to control their content or presentation. The table below lists relevant
parameters for this macro.
Parameter names are displayed differently in the macro browser interface and in wiki markup. Below, parameter names used in the
macro browser are indicated in Bold text, while their equivalents in wiki markup are indicated in (bracketed) text. If the latter is not shown,
then in wiki markup, the parameter's name should be omitted and only its value should be added immediately after the colon symbol ( :).
Parameter
Default
Description
Directory (URL) of
your test result files
(directory)
None
URL of a directory containing your test result files.
Report Detail
(reportdetail)
'fixture'
Detail for report. Can be 'all', 'fixture', 'summary' or 'failuresonly'.
URL of the test
result XML file
(url)
None
URL of a particular test result XML file. For Confluence installations without anonymous user access,
you can specify logon credentials as part of this parameter in the form of URL parameters:
os_username — The username of a Confluence user with permission to access to the JUnit
test results.
os_password — The password of the Confluence user specified in the os_username
parameter.
(debug)
None
Shows the content of failures, as well as the error messages.
Examples
Loading JUnit reports from a local drive
{junitreport:directory=file:///C:/TEMP/}
Must be a directory name and not the XML file itself.
Loading JUnit reports from a network drive
{junitreport:url=http://*host*/*path*}
Loading JUnit reports from a Confluence instance
{junitreport:url=http://yourConfluenceInstance.com/download/attachments/<page id>/file.xml}
Loading JUnit reports from a Confluence instance without anonymous user access
If your Confluence instance is not accessible by anonymous users, specify logon credentials with the os_username and os_password URL
parameters (as part of the macro's url parameter). In this case, we are specifying a username of "admin" and a password of "admin".
{junitreport:url=http://yourConfluenceInstance.com/download/attachments/<page
id>/file.xml?os_username=admin&os_password=admin}
If you use both the directory and url parameters in the same macro, the directory will be used and the url
parameter ignored.
240