Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,932
Community Members
 
Community Events
176
Community Groups

Xray auto achieves test runs against global test achieving setting

Edited

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

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

Atlassian Community Events