Page tree
Skip to end of metadata
Go to start of metadata

Table of Contents

Adding a link to your report from within Jenkins

You can add a dynamically generated link to the report for a given Jenkins job by using the Groovy Postbuild Plugin.

The script should include the following code:

jobName = manager.build.getProject().getName()
buildNumber = manager.build.getNumber()

summary = manager.createSummary("graph.gif")
summary.appendText("<a href=\"https://<CQL_NAME>.reporting.perfectomobile.com/?jobName[0]=${jobName}&jobNumber[0]=${buildNumber}\">Perfecto Test Report</a>", false)

See the details of the reporting server.

Grouping tests by job & build in DigitalZoom Reporting

In order to view tests grouped by continuous integration system job and build, you need to provide the job name and build number into reporting as system variables. This will enable you to group your test executions in reporting first by job name and then by build number, providing you a complete overview of the build quality.

Maven or Ivy parameters

If you are running your tests using Maven or Ivy, add the following JVM parameters and (optionally) the Report-tags parameter:

-Dreportium-job-name=${JOB_NAME} -Dreportium-job-number=${BUILD_NUMBER} -Dreportium-job-branch=${myBranch} -Dreportium-tags=${myTag}

The myTag and myBranch values should be supplied by you, the JOB_NAME and BUILD_NUMBER are supplied automatically by Jenkins.

To add CustomField pairs use the following format:

-DReportiumCustomFields=customField1=value1,customField2=value2


Slack notifications

Using the Slack plugin for Jenkins, you can configure Jenkins to send you a notification when the tests complete and include the link to the Report for easy access.

Go to the Post-build Actions section of the Jenkins projects configuration. In the Slack Notifications sub-section:

  1. Find and Check the Include Custom Message checkbox.
    Note: you may need to click on Advanced to access this field.
  2. In the Custom Message field add the following:

    View your Perfecto report at: https://<CQL_NAME>.reporting.perfectomobile.com/?jobName[0]=${JOB_NAME}&jobNumber[0]=${BUILD_NUMBER}&tags[0]=${myTag}

    where:
      <CQL_NAME> : prefix of your Perfecto CQ Lab. For example: if you access the Perfecto Lab at: https://demo.perfectomobile.com, then <CQL_NAME>=demo.