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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

XRay Test Execution not keeping history

Hi, I have test plan with a bunch of cucumber tests. When I execute the set, only the latest result are updated. The historical information is not updated and '# Test Executions' always remains 1.

 

Is there a way I can get the history of all test executions?

 

Screenshot 2021-02-08 at 08.24.49.png

1 answer

1 accepted

Hi @Gokul Sukumar 

 

When importing Cucumber results, it either updates an existing Test Execution or creates a new Test Execution.

If you want to have a history of all executions, it is necessary to create new Test Executions.

When creating new Test Executions, it is necessary to link the new Test Execution with the Test Plan, and this can be done using the multipart endpoint (https://docs.getxray.app/display/XRAYCLOUD/Import+Execution+Results+-+REST#ImportExecutionResultsREST-CucumberJSONresultsMultipart).

With the multipart, you can specify the Test Plan of the Test Execution, as described in the documentation example.   

Please contact the Xray Support (http://xraysupport.xpand-it.com) if you need additional help.

Kind regards,
Rogério Paiva [Xray Support Team]

Hi @Rogério Paiva - Xray Xporter this sounds good. Thank you very much for the solution. But I am afraid we might end up uploading our xray board by allowing it to create new test executions each time. 

 

Is there a way that I can remove some test execution results (not manually) as and when a new one is updated. Say something like I can have only the last 5 executions any time I check?

Hi @Gokul Sukumar 

There is no automatic option to do that; however, you can build it using the Xray API.

For instance, you can use GraphQL request deleteTestExecution to delete the previous test execution when a new one is created.

Using a CI/CD tool, you can create a job to perform both requests (import new test execution, delete old test execution).

@Rogério Paiva - Xray Xporter Perfect! Thank you so much for the guidance. Appreciate your time.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

476 views 5 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you