In this page

What is Zephyr Squad?

(supported since Better PDF Exporter 1.3.0)

Zephyr Squad is the most popular test management solution for the Jira platform.

Zephyr Squad integration features

  • Zephyr Squad tests are regular Jira issues. This enables creating self-containing PDF exports from Zephyr Squad tests that contain issue field values, attachments, comments and the following test step data: test step instructions, test step data and expected result.
  • You can export the test executions for any test. Executions are exported with their (customizable) details for a comprehensive report: test cycle, version, status, defects, executor user and execution date.
  • You can export the test step results of the test executions for detailed test reports. In this case, the following (customizable) details are exported for each step: status, defects, comments and execution date.

(Need more features? Tell us in a support ticket!)

Zephyr Squad integration vs. the Zephyr Squad built-in PDF exports

You may want to ask: if Zephyr Squad has a built-in PDF export feature, why would you use another app for the same?

While the Zephyr Squad built-in PDF exports may be sufficient for basic use cases, the Better PDF Exporter integration is more powerful in, at least, these:

If at least one of these is important for you, give the app a try.

Tutorial video

Watch this short video to get the gist of exporting Zephyr Squad tests to PDF documents! (Although the video below was captured about the app's Server version, the Cloud version is very similar. The only major difference is that in the Cloud version you cannot export directly from the Zephyr Squad screens, due to a limitation in Atlassian Connect.)

Zephyr Squad PDF export samples

Zephyr Squad test steps PDF export

This example shows the export of the Zephyr Squad test steps (with the corresponding test data and expected result), augmented with regular Jira issue information, from field values through attachments to links.

jira-zephyr-squad-atm-test-steps.pdf

Zephyr Squad test executions PDF export

This Zephyr Squad test PDF export also contains the executions of the test, in addition to the definition of that. If you care only about the executions, you can easily customize the PDF template and remove the unwanted parts.

jira-zephyr-squad-atm-test-executions.pdf

Zephyr Squad test step results PDF export

This is the most detailed example, exporting to PDF all Zephyr Squad test executions and their step results. The document also includes the defects related to the test or to a single test step, plus the executor and the test execution time.

jira-zephyr-squad-atm-test-step-results.pdf

Configuration

Configuring the Zephyr Squad REST API access

As this integration relies on the Zephyr Squad REST API, you need to configure the credentials for the REST API calls in issue-fo.vm.

Configuring the Zephyr Squad API keys
  1. Click the cog icon "⚙" in the top right → AppsGenerate API Keys (under Zephyr Squad for Jira Cloud).
  2. Click Create System Key, enter a name for the key pair and click Submit.
  3. Copy the Access Key from the System Keys section (using the copy-page icon).
  4. Click the cog icon "⚙" in the top right → AppsPDF Templates (under Better PDF Exporter).
  5. Open the issue-fo.vm template for editing and paste the key to the value of the $zephyrAccessKey variable (don't remove the quotation marks around the string!):
    ## issue-fo.vm
    
    #set($zephyrAccessKey = "ZjFkNjQ3ZDMtNjRiZi0zMmU5LTgzYzItOGYyOWIxMmRiYzA4IDU1NzA1OCUzQTUyZDJjMDVlLWRmNjQtNGMyYy1iYmI2LWJkYzZhY2ZkZmU5MyBaQVBJ")
    #set($zephyrSecretKey = "7Wdthr-OoVKTuZvDkdFSGLIiL9pqvAwkfN0Tc7goO3g")
    
  6. Similarly, copy the Secret Key, and paste it to the value of $zephyrSecretKey.
  7. Save the changes in issue-fo.vm. (Don't worry about storing keys here: this file is visible only for Jira administrators, who would have super-user permissions anyway.)
Configuring the user account ID
  1. Click your profile icon in the top right, and select Profile.
  2. Copy the account ID from the end of the URL in the address bar (its format should be like 447058:52d2c05e-df64-4b2c-bab6-bdc6acfdfe95).
  3. Click the cog icon "⚙" in the top right → AppsPDF Templates (under Better PDF Exporter).
  4. Open the issue-fo.vm template for editing and paste the ID to the value of the $zephyrAccountId variable (don't remove the quotation marks around the string!):
    ## issue-fo.vm
    
    #set($zephyrAccountId = "447058:52d2c05e-df64-4b2c-bab6-bdc6acfdfe95")
    
  5. Save the changes in issue-fo.vm.

Configuring the Zephyr Squad PDF templates

The template issue-fo.vm contains the following configuration parameters in its top part, to enable these features:

## issue-fo.vm

#set($exportZephyrTestSteps = $pdfView.name.contains('Steps'))
#set($exportZephyrTestExecutions = $pdfView.name.contains('Executions'))
#set($exportZephyrTestExecutionDetails = $pdfView.name.contains('Results'))

As you see, the template checks if the view name contains certain words, and turns on the different features accordingly. If the export is made with the default Zephyr Squad views (like "Zephyr Test Steps"), these will work as expected. But, nothing prevents you from enforcing them to true or false like this:

## issue-fo.vm

#set($exportZephyrTestSteps = true)
## ...

About performance: exporting Zephyr Squad test execution details (test step results and step defects) will significantly increase the number of required Zephyr Squad REST calls and thus the total rendering time. If you are experiencing timeout issues, either set $exportZephyrTestExecutionDetails to false or export a smaller number of tests in one go.

Note that the issue-fo.vm template makes the Zephyr Squad REST calls only for the issues that are actual Zephyr Squad tests. It decides whether an issue is a Zephyr Squad test by checking its issue type name (if it is a "Test"). Therefore, if you rename issue types, you also need to adapt the logic around this part in the template code:

## issue-fo.vm

## Zephyr Squad test steps
#if($issue.issueTypeObject.name == "Test")
	## ...

Learn more about Zephyr Squad