Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

XRAY cloud: graphql to retrieve only failed tests from Test Execution

Bilonozhko, Tina
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 23, 2023

Hi, 
I have xray cloud and i need a way to filter Test Execution results to show only FAILED tests. 
Is it possible to filter testResults? 
My query that returns all tests in test execution:

getTestExecution(issueId: "XXXX") {
issueId
jira(fields: ["key"])
tests(limit: 100) {
total
start
limit
results {
issueId
jira(fields: ["key"])
status {
name
}
}
}
}


this query returns all tests in execution, but i need only failed ones.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events