Description: This macro can execute a batch of documents resulting from a page hierarchy. Syntax:{greenpepper-children} Optional parameters:
all:Default --> false
If set to true, the complete hierarchy of the parent page will be included in the execution list.
Otherwise only the first-level children will be included.
spaceKey:Default --> Macro's residing space
You can specify a specific space for your parent page.
pageTitle:Default --> Macro's residing page
You can specify a specific title for the parent page.
title:Default --> blank
You can specify your own title.
expanded:Default --> false
You can ask for the list to be expanded on page load.
suts:Default --> All
You can narrow the list to specific Systems Under Test (1 or more; if more than one they must be separated by a comma).
group:Default --> PAGE
You can regroup all your macros in a page under a group name. (See Group Macro.)
sortDefault --> Hierarchical sort
You can configure the way children are sorted. Choose Creation to sort by content creation dates, Title to sort alphabetically by titles and Modified to sort by modification dates (last date first).
reverseDefault --> false
You can reverse the sorting sequence.
openInSameWindowDefault --> falseNEW in v2.1
You can control whether or not the link to the specification will open in the same window.
Description: This macro allows you in the lazy mode to annotate tables and/or bullet lists that you do want to be processed as executable specifications within your executable documents. Syntax:{greenpepper-example}your example table(s)/list(s){greenpepper-example} Optional parameters:
title:Default --> blank
You can specify your own title.
bgcolor:Default --> NONE
You can change the backgound color of the Info section (ex.: red, blue, grey, lightgrey, green and hexadecimal colors).
If you omit to close your example section, the end of the document will be considered as the end of it
Group Macro
Description: This macro regroups all GreenPepper macros labeled under the same group under a single execution button. Syntax:{greenpepper-group} Optional parameters:
group:Default -> PAGE
The group name
title:Default -> blank
EXAMPLE
{greenpepper-group:title=My Group 1|group=Group 1}
Description: This macro retrieves JIRA's version hierarchy for the given version name or link type of a project. Syntax:{greenpepper-hirearchy} Mandatoryparameters:
gpUrl: The URL of your server (i.e. http ://mydomain:8080/confluence).
gpService: The handler (i.e. *greenpepper1).
jiraUid: The Repository UID of your JIRA project. (See [Repository registration].)
versionName: The version name of your JIRA project for which you want to view the hierarcy.
linkName: The JIRA link type name to draw the hierarchy on.
Broken (It should be working in the next release.)
Begin Info
MACRO-{greenpepper-hierarchy}
This Space is not registered in GreenPepper Server.
End Info
Historic Macro
Description: This macro creates a Chart image of the latest historic data of a page execution. The image created provide clickable area to display the specific execution result. Syntax:{greenpepper-historic}
Optional parameters:
pageTitle:Default --> Macro's residing page
The page title you want to show historic.
spaceKey:Default --> Macro's residing space
You can specify a specific space for your page.
sut:Default --> selected System Under Test of the page
The System Under Test name of the page
maxresult:Default --> 30
The maximum number of the latest historic data entry to show
width:Default --> 500
The width of the chart in pixels
height:Default --> 500
The height of the chart in pixels
border:Default --> false
Indicate to use a border for the chart image
showignored:Default --> false
Indicate to show the count of ignored tests
children:Default --> false
This parameter present a summary Chart containing an aggregation of execution result. If set to first, aggregation will be done for all first level children of the specified page. If set to all, the aggregation will be done with the complete hierarchy of the specified page.
labels:Default --> none
Labels to base the search when doing the aggregation of execution result of pages
Using the , as the label separation is equivalent to an OR query. So label1,label2 will retrieve all pages labeled by label1 OR/AND label2
Using the & as the label separation is equivalent to an AND query. So label1&label2 will retrieve all pages labeled by label1 AND label2
Saving historic data from a local execution or a continuous build server
When executing specification locally or through a continuous build server, result are not saved automatically since they are deconnected from the Confluence plugin (only the specification page is retrieved).
Starting from version 2.2, we can post back the execution result using the repository implementation com.greenpepper.runner.repository.GreenPepperRepository (Java) or Greenpepper.Repositories.GreenPepperRepository (.Net). A new parameter must be added to the URL : postExecutionResult=true.
Description: This macro allows you to import classes into your executable document without polluting it with undesirable and unmeaningful user tables. Syntax:{greenpepper-import: my.class.to.import | some.other.class.to.import | ... }
Description: This macro allows you to include pages content into Executable document allowing for example, to define a setup and a tear down page and include it in executable pages avoiding duplication. Syntax: {greenpepper-include} Mandatoryparameteres:
pageTitle: The page title you want to include
Optional parameteres:
spaceKey:Default --> Macro's residing space
You can specify a specific space for your included page.
title:Default --> Macro's residing pageTitle
expanded:Default --> false NEW in 2.4
You can ask for the included page to be expanded on page load.
EXAMPLE
{greenpepper-include:pageTitle=My Setup}
Info Macro
Description: This macro allows you to create tables and/or bullet lists that you do not want to be processed as executable specifications within your executable documents. Syntax:{greenpepper-info}your body{greenpepper-info} Optional parameters:
title:Default --> blank
You can specify your own title.
bgcolor:Default --> NONE
You can change the backgound color of the Info section (ex.: red, blue, grey, lightgrey, green and hexadecimal colors).
This macro also allows you to insert into your executable document, other macros that generate tables or bullet lists.
For more information on the Info Tag, please refer to Info Tag example.
If you omit to close your info section, the end of the document will be considered as the end of it
EXAMPLES
Wiki Markup
Result
{greenpepper-info}
* My bullet list
* Some information
{greenpepper-info}
Description: This macro can execute a batch of documents resulting from a label search. Syntax:{greenpepper-labels} Optional parameters:
spaceKey:Default --> None
You can narrow the label search to a specific space.
If none is specified, the available GreenPepperized spaces will be in a select list.
labels:Default --> None
You can pre-enter the labels to base the search on.
Using the , as the label separation is equivalent to an OR query. Therefore, label1,label2 will retrieve all pages labeled by label1 OR label2.
Using the & as the label separation is equivalent to an AND query. Therefore, label1&label2 will retrieve all pages labeled by label1 AND label2.
title:Default --> blank
You can specify your own title.
expanded:Default --> false
You can ask for the list to be expanded on page load.
suts:Default --> All
You can narrow the list to specific Systems Under Test (1 or more; if more than one they must be separated by a comma).
group:Default --> PAGE
You can regroup all your macros in a page under a group name. (See Group Macro.)
sortDefault --> NONE
You can configure the way children are sorted. Choose Creation to sort by content creation dates, Title to sort alphabetically by titles and Modified to sort by modification dates (last date first).
reverseDefault --> false
You can reverse the sorting sequence.
openInSameWindowDefault --> falseNEW in v2.1
You can control whether or not the link to the specification will open in the same window.
Description: This macro retrieves JIRA references for a specific project filtered by the specified version name. Syntax:{greenpepper-manage} Mandatoryparameters:
gpUrl: The URL of your server (i.e. http ://mydomain:8080/confluence).
gpService: The handler (i.e. *greenpepper1).
jiraUid: The repository UID of your JIRA project. (See [Repository registration].)
versionName: The version name of the JIRA project you want to view. (ALL will view all versions.)
Note: Some functionalities are blocked such as the possibility to add references. The user that we used has restricted permissions to prevent undesired handling.