Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Currently, we still don't have an automated way to see all the attachments/evidence stored on the Xray side. Nevertheless, this is a feature that we aim to implement as soon as possible. Check the suggestion here: 

Jira
serverXpand IT Issue Tracker
serverIdb6309ad5-5416-33d6-9a09-a3e02f20d3e6
keyXRAYCLOUD-6224
.


For the moment, it is needed some manual work. 


To see the storage information is necessary to use one of 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 is possible to generate a report with a list of all Tests and Test Runs with attachments/evidence.

GraphQL

If you are starting to use GraphQL, please visit this article where we provide you a tutorial on how to use Insomnia to get such information: [Xray Cloud] 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


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

Code Block
firstline1
linenumberstrue
collapsetrue
{
	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
					}
				}
			}
		}
	}
}


If you see results like this, you can enter the respective Test Run and delete the Evidence:



Document Generator


Content by Label
showLabelsfalse
max5
spacesProductKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "ProductKB"
labelskb-how-to-article

Page properties
hiddentrue
Related issues
Jira
serverId139ecacd-0ab5-35f4-ac6c-7846363ff6c9
keySUPPORT-67057