Access Keys:
Skip to content (Access Key - 0)
 

GreenPepper Confluence Macros

Children Macro

  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.)
  • sort Default --> 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).
  • reverse Default --> false
    You can reverse the sorting sequence.
  • openInSameWindow Default --> false NEW in v2.1
    You can control whether or not the link to the specification will open in the same window.
EXAMPLE
{greenpepper-children:spaceKey=BNKT|pageTitle=Example - Banking Account System|expanded=true}

Example macro

  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}

The Macros
{greenpepper-children:spaceKey=BNKT|pageTitle=Example - Banking Account System|expanded=true}
{greenpepper-labels:spaceKey=GREENPEPPER|labels=resolution|expanded=true|title=Resolution seeds}

Hierarchy Macro

  Description: This macro retrieves JIRA's version hierarchy for the given version name or link type of a project.
  Syntax: {greenpepper-hirearchy}
  Mandatory parameters:

  • 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.
  • user: Your JIRA user name.
  • pwd: Your JIRA password.
EXAMPLE
{greenpepper-hierarchy:gpUrl=http://www.greenpeppersoftware.com/confluence|
                       gpService=greenpepper1|
                       jiraUid=Jira-BANK|
                       versionName=Iteration 1|
                       linkName=Detail|
                       user=***|pwd=***}

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
{greenpepper-historic:pageTitle=Cell Decoration|
                       spaceKey=GREENPEPPER|
                       sut=GreenPepperOpen - Core Java|
                       maxresult=20|
                       width=700|
                       height=500|
                       border=true|
                       showignored=true}



{greenpepper-historic:pageTitle=Home|
                       spaceKey=GREENPEPPER|
                       sut=GreenPepperOpen - Core Java|
                       maxresult=20|
                       width=700|
                       height=500|
                       border=true|
                       showignored=true|
                       children=first}



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.

Example using the GreenPepper Maven Plugin :

Example using the GreenPepper Maven Plugin
<repositories>
        <repository>
            <type>com.greenpepper.runner.repository.GreenPepperRepository</type>
                <root>
                    <![CDATA[http://.../confluence/rpc/xmlrpc?handler=greenpepper1&sut=Java&includeStyle=false&postExecutionResult=true]]>
                </root>
                <name>greenpepper</name>
                <suites>
                    <suite>GreenPepper Confluence-GREENPEPPER</suite>
                </suites>
        </repository>
    </repositories>

Import Macro

  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 | ... }

EXAMPLE
{greenpepper-import:my.class.to.import|some.other.class.to.import}

This will generate the following hidden table:

import
my.class.to.import
some.other.class.to.import


Include Macro

  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}
  Mandatory parameteres:

  • 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}

  • My bullet list
  • Some information
Wiki Markup Result
{greenpepper-info}
{info:title=Some info}{info}
{greenpepper-info}
My Macro generating a table
Some info


Labels search Macro

  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.)
  • sort Default --> 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).
  • reverse Default --> false
    You can reverse the sorting sequence.
  • openInSameWindow Default --> false NEW in v2.1
    You can control whether or not the link to the specification will open in the same window.
EXAMPLE
{greenpepper-labels}

{greenpepper-labels:spaceKey=GREENPEPPER}

{greenpepper-labels:spaceKey=GREENPEPPER|labels=resolution & seed|expanded=true}


Manage Macro

  Description: This macro retrieves JIRA references for a specific project filtered by the specified version name.
  Syntax: {greenpepper-manage}
  Mandatory parameters:

  • 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.)
  • user: Your JIRA user name.
  • pwd: Your JIRA password.
LIVE EXAMPLE
{greenpepper-manage:gpUrl=http://www.greenpeppersoftware.com/confluence|
                       gpService=greenpepper1|
                       jiraUid=GreenPepper Jira-BANK|
                       versionName=Release 1|
                       user=***|pwd=***}
Begin Info
MACRO-{greenpepper-manage}: Invalid JIRA Project name.
Your selection: Project: Unknown - Version: Unknown
Available selections:
* Project: GreenPepper - Versions: Sprint 10/27 (1.1M1), Sprint 11/10 (1.1M2), Sprint 11/24 (1.1M3), Sprint 12/08 (1.1M4), Sprint 2007/01/02 (1.1M5), Sprint 2007/01/19 (1.1M6), Release 1.1, Marketing 2007/02/23, Sprint 2007/02/23 (1.2M1), Sprint 2007/03/16(1.2M2), Sprint 2007/03/30 (1.2M3), Sprint 2007/04/20 (1.2M4), Release 1.2, Semaines Pedagogiques (Release 1.2), Marketing 2007/07/20, Fridge, Back Burner, Sprint 2007/05/25 (1.3m1), Sprint 2007/06/15 (1.3m2), Sprint 2007/07/06 (1.3m3), Marketing 2007/08/10, Sprint 2007/07/27 (1.3m4 QA), Release 1.3, Release 1.3.1, Release 2.1, Release 2.0, Sprint 2.1M1, Sprint 2.0M1, Sprint 2.0M2, Sprint 2.0M3, Sprint 2.0M4, Sprint 2.1M2, Sprint 2.1M3, Sprint 2.1M4, Sprint 2.1M5, Release 2.2, Sprint 2.2M1, Sprint 2.2M2, Sprint 2.2M3, Release 2.3, Sprint 2.3M1, Sprint 2.3M2, Sprint 2.4M1, Release 2.4, Sprint 2.4M2, Sprint 2.5M1, Sprint 2.5M2, Sprint 2.5M3, Release 2.5, WISH LIST, Sprint 2.6M1, Release 2.6, Sprint 2.6M2, Sprint 2.6M3, Sprint 2.7M1, Sprint 2.7M2, Sprint 2.7M3, Release 2.7, Sprint 2.8M1, Sprint 2.8M2, Release 2.8, Marketing, �� faire cette semaine, Marketing Dec - Jan, Marketing F��vrier
* Project: GreenPepper Ruby - Versions: Sprint S8-7, Sprint S8-6, Sprint S8-5, Sprint S8-4, Sprint S8-3, Sprint S8-2, Sprint S8-1, Sprint S8-0, Sprint ��t��, Sprint 3, Sprint 2, Sprint 1, Release 1, Phase de d��marrage
* Project: GreenHopper JIRA - Versions: Release 1.2.1, Release 1.3, Release 1.4, Release 1.5, Release 1.6, Sprint 1.7M1, Sprint 1.7M2, Sprint 1.7M3, Release 1.7, Release 1.7.1, Modeling Session, Release 2.0, Release 2.1, Release 2.1.1, Sprint 2.2M1, Sprint 2.2M2, Release 2.2, Release 2.3, Release 2.3.1, Release 2.3.2, Release 2.4, Release 2.5, Sprint 2.5M1, Sprint 2.5M2, Release 2.5.1, Sprint 3.0M1, Sprint 3.0M2, Release 3.0, Release 3.0.1, Release 3.0.2, Release 3.1, Release 3.1.1, Release 3.2, Release 3.2.1, Release 3.3, Release 3.4, Release 3.5, Release 3.6, Release 3.7, Release 3.7.1, 3.7.2 - Atlassian Summit, Release 3.8, Sprint 4.0M3, Sprint 4.0M2, Sprint 4.0M1, Release 4.0, Blocked Issues/Requests, Wish list
* Project: Bank (For demo) - Versions: Release 1, Sprint 1, TODO
* Project: Whiteboard Plugin - Versions: 1.1, 1.2, Release 1.3, Release 1.4, Release 1.5, Sprint 1.5M1, Sprint 1.5M2, Releaes 1.5.1, Release 1.6, Release 1.6.1
* Project: GreenPepper C++ - Versions: Sprint 1.7, Sprint 1.6, Sprint 1.5, Sprint 1.4, Sprint 1.3, Sprint 1.2, Sprint 1.1, Release 1.0
* Project: Urban Turtle - Versions: Release 1, Sprint 1M1, Sprint 1M2, Sprint 1M3, Sprint 1M4, Sprint 1M5, Sprint 1M6, Sprint 1M7, Sprint 1M8, Sprint 1M9, Release 1rc, Sprint 1rcM1, Sprint 1rcM2, Release 1.1, Release 1.2, Sprint 1.2M1, Sprint 1.2M2, Sprint 1.1M1, Sprint 1.1M2, Sprint 1.1M3, Sprint 1.1M4, Sprint 1.2M3, Release 1.3, Release 1.4, Sprint 1.3M1, Sprint 1.3M2, Sprint 1.4M1, Sprint 1.4M2, Release 1.5, Sprint 1.5M1, Sprint 1.5M2, Release 1.6 (Refactoring), 1.6M1 - Refactoring, 1.6M2, Release 1.7 (Configuration), Release 1.8 (Template independant), Sprint 1.7M1, Refonte Site Web
* Project: Sandbox - Versions: Sprint 1, Release 1, Sprint 1 r2, Release 2, Sprint 2, Sprint 3, Spint 4, Iteration 2, Iteration 1, Iteration 0, Iteration 'n', version vide
* Project: Minyaa Suite - Versions: 1.0, 1.0-M1, 1.0-M2, 1.0-M3, 1.0-M4
* Project: Workflow Designer - Versions: Sprint 0, Release 1, Sprint 1M1, Sprint 1M2, Sprint 1M3
End Info
Note:
Some functionalities are blocked such as the possibility to add references. The user that we used has restricted permissions to prevent undesired handling.


Adaptavist Theme Builder (3.1.4) Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.4.3 Build:#705 Mar 21, 2007)
Free theme builder license