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?
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.