Xray auto achieves test runs against global test achieving setting

justin okoli December 13, 2021

Jira Xray is globally set to achieve test runs older than one year, but this setting is not honoured by Xray as test runs even as fresh as 3 weeks are achieved,  The only way to view the past history of these  test runs is to click on the "warning that this test execution have achieved test runs",

This may be OK for workflow where the user have to interact manually  with JIRA's front-end  but very limiting for automated workflow.

Querying for sets of data(test execution) using API call does not return test run entries  for test which are achieved, neither does it provide any clue on how to retrieve them.

How can I retrieve the test run entries of achieved  test execution via API calls? 

How can I disable this feature to auto achieve test runs that are not older than the configured threshold.

Why does an API call to the GraphQL not return test run details of test execution which are achieved.

 

 

Example :  

Query below returns zero test runs, because the test run which fell within the time range has been achieved against the global achieving setting of 1 yeartest_run_setting.png

"""{
getTestExecutions(jql: "project = 'XX' AND type = 'Test Execution' AND created >= '2021-11-19 12:00' AND created < '2021-11-23 12:00' ", limit: 100) {
total
start
limit
results {
issueId
tests(limit: 100){
total
results {
issueId
testType{ name }
steps { data result action }
}}
testRuns(limit: 100){
total
results {
comment
startedOn
status{
name
description
}
testType{name }
test{ issueId lastModified jira(fields: ["summary", "key" ]) steps { action data result }} } }
jira(fields: ["summary", "key", "customfield_11020"])
} }}"""

 

Quering the Jira frontend i have about 64 entries  but each entry showing this messgae:

test_run_2.png

Test created date as show below:


Screenshot from 2021-12-13 14-37-14.png

1 answer

0 votes
Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 3, 2022

Hi @justin okoli 

Xray also archives based on a fixed limit of 50 Test Runs per Test. If this limit is exceeded, older Test Runs are candidates to be archived automatically as well. Test Runs in analysis scopes do not count for this limit.

Please check this documentation page with some additional information (https://docs.getxray.app/display/XRAYCLOUD/Test+Run+Archiving).

Also, it is best to contact Xray Support (http://Xraysupport.getXray.app) to share your configuration so that we can better understand your use case and look for options.

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events