---
title: "[Xray Cloud] How to check Tests/Test Runs with attachments?"
canonical: "https://docs.getxray.app/space/ProductKB/46269193/%5BXray%20Cloud%5D%20How%20to%20check%20Tests%2FTest%20Runs%20with%20attachments%3F"
format: markdown
---
<span style="color: #172b4d">At Xray, all attachments included in Test Steps and attachments from Execution Results ( like the screenshots, you add as evidence) are stored in a dedicated database. </span>

<span style="color: #172b4d">Considering the Xray edition you have, you need to take into consideration the following storage limits: </span>

- **100 GB **per Xray instance for Xray Standard.
- **Unlimited **for [Xray Enterprise](https://www.getxray.app/xray-enterprise).

If you want to track your current storage usage, please check **Storage**, at Jira **Settings > Apps > Xray.**

Learn more about how to manage storage at [Global Settings: Storage](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUDDRAFT/pages/44838275)

  
If you want to export this information to have better visibility over it, please see the following approaches:

- Directly in the UI, check all Tests to see if there are Test Step attachments and/or check each Test Run individually to see if they have Evidence attached.
- Using GraphQL to iterate over all Tests this way is possible to see the ones that contain associated attachments.
- Or using Document Generator where it is possible to generate a report with a list of all Tests and Test Runs with attachments/Evidence.

> Macro (toc)

## **GraphQL**  
  


If you are starting to use GraphQL, please visit this article where we provide a tutorial on how to use Insomnia to get such information: [[Xray Cloud] How to export Xray information using Insomnia](https://getxraydocs.atlassian.net/wiki/display/ProductKB/%5BXray+Cloud%5D+How+to+export+Xray+information+using+Insomnia).


To get Tests information, you can adapt the code below. This snippet is prepared to export 200 Tests. You can use 25 resolvers in each request. Please check more info here: [Resolver limit](https://xray.cloud.getxray.app/doc/graphql/index.html#resolver-limit). 


This code receives Test Steps information, as well as for each Test, each Test Run where it is possible to see the Evidence section. 

<details>
<summary>Expand</summary>

```
{
	step1: getTests(jql: "project = 'AMGT'", start: 0, limit: 100) {
		total
		start
		limit

		results {
			jira(fields: ["key"])
			steps {
				id
				attachments {
					id
					filename
				}
			}
			testRuns(limit: 100, start: 0) {
				total
				results {
					id
					testExecution {
						jira(fields: ["key"])
					}
					evidence {
						id
						filename
						size
					}
				}
			}
		}
	}

	step2: getTests(jql: "project = 'AMGT'", start: 101, limit: 100) {
		total
		start
		limit

		results {
			jira(fields: ["key"])
			steps {
				id
				attachments {
					id
					filename
				}
			}
			testRuns(limit: 100, start: 0) {
				total
				results {
					id
					testExecution {
						jira(fields: ["key"])
					}
					evidence {
						id
						filename
						size
					}
				}
			}
		}
	}
}
```
</details>

  
If you see results like this, you can enter the respective Test Run and delete the Evidence:  
  
  
> Macro (inline-media-image)

  


##   
  
**Document Generator**  
  


We have created these two templates to use on Document Generator that will allow get <u>all Tests that contain Test Step attachments</u> and get <u>all Tests that include Test Run Evidence</u>.


Note: Templates were split to avoid performance problems.


**You can download the templates provided below:**


- 
- 



To use them, please follow the instructions below:  


1. Upload the Template to Document Generator. Be sure you add the **Test** entity and **Issue Navigator **on the Scope entity.
  
2. Navigate to your **Search for Issues** page and filter the desired **Tests** to verify. Since Document Generator has a limit of 1000 issues per export, we advise you to do the export in batches.
  
3. Click on the Document Generator button and choose the template created on point 1.




** **:warning:** IMPORTANT DISCLAIMER **:warning:**  These templates are prepared to be exported only for Tests, so we cannot guarantee that all will work as expected if you use them to export different issue types.**

  
For more information about Document Generator, please read this documentation [HERE](https://getxraydocs.atlassian.net/wiki/display/XRAYCLOUD/Document+Generator).

**Related articles**

[Document Generator](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565169)

[GraphQL API](https://getxraydocs.atlassian.net/wiki/spaces/XRAYCLOUD/pages/44565894)

[https://xray.cloud.getxray.app/doc/graphql/](https://xray.cloud.getxray.app/doc/graphql/)

[Xray Cloud](https://getxraydocs.atlassian.net/wiki/pages/createpage.action?spaceKey=productkb&title=Xray%20Cloud&linkCreation=true&fromPageId=46269193)

[https://academy.getxray.app/catalog/info/id:141](https://academy.getxray.app/catalog/info/id:141)