---
title: "Exporting a Test Set"
canonical: "https://docs.getxporter.app/space/XPORTER/1412436/Exporting%20a%20Test%20Set"
format: markdown
---
> Macro (rw-ui-expands-macro)
> 
> > Macro (rw-expand)
> 
> > Macro (toc)

## <span style="color: #172B4D">Introduction</span>

<span style="color: #172B4D">Xporter for Jira allows you to get the following data from an Xray Test Set.</span>

## Usage

### Test Set Status

Export all Test Set Status with name and percentage from the Test Set using this placeholder: `${Test Set Status}`

You can print the status of the Test Set by using this notation:

| **% per Status** | **Number of Tests per Status** |
| --- | --- |
| ${Test Set Status.NameOfStatus} | ${Test Set Status.NameOfStatus.Count} |

Example:

```
#Test Set Status Percentage + total of testes per status
Todo: ${Test Set Status.TODO} % (${Test Set Status.TODO.Count})
Fail: ${Test Set Status.FAIL} % (${Test Set Status.FAIL.Count})
Pass: ${Test Set Status.PASS} % (${Test Set Status.PASS.Count})
Executing: ${Test Set Status.EXECUTING} % (${Test Set Status.EXECUTING.Count}) 
Aborted: ${Test Set Status.ABORTED} % (${Test Set Status.ABORTED.Count})
```

You can also use the translated name of Test Set Status to get the same information.

| **Language** | **Translated Name** |
| --- | --- |
| ES | Estado del Grupo de Tests |
| DE | Testsetstatus |
| FR | État de la Suite de Tests |

Example:

```
#Test Set Status Percentage + total of testes per status
Todo: ${Estado del Grupo de Tests.TODO} % (${Estado del Grupo de Tests.TODO.Count})
Fail: ${Estado del Grupo de Tests.FAIL} % (${Estado del Grupo de Tests.FAIL.Count})
Pass: ${Estado del Grupo de Tests.PASS} % (${Estado del Grupo de Tests.PASS.Count})
Executing: ${Estado del Grupo de Tests.EXECUTING} % (${Estado del Grupo de Tests.EXECUTING.Count}) 
Aborted: ${Estado del Grupo de Tests.ABORTED} % (${Estado del Grupo de Tests.ABORTED.Count})
```

### Iterating over Tests

Since it is not known in advance how many Tests exist in a Test Set, this notation allows iterating a section over all the Tests of a Test Set:

```
#{for tests}
	Content and Test Mappings.	Example: ${Tests[n].Key}
#{end}
```

or

```
#{for j=TestsCount}
	Content and Test Mappings.	Example: ${Tests[j].Summary}
#{end}
```

*n* is the index of Test, starting from 0. The field **TestsCount** was created to give the total of Tests.

> ℹ️ Test Sets are Jira Issues combined with Xray data, so, you can print native Jira fields or even native Iterations. You can have a combination of both if you need to.


<details>
<summary>Support/Troubleshooting</summary>

If you have questions or technical issues, please [contact the Support team via the Customer Portal (Jira service management)](https://jira.getxray.app/servicedesk/customer/portal/2/user/login?destination=portal%2F2%2Fcreate%2F28) or [send us a message using the in-app chat](https://docs.getxporter.app/space/XPORTER/23102936).
</details>