How do I define the summary of the test execution created using /api/v2/import/execution/junit?

Pratt, Trenton
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!
September 6, 2024

I have a Cypress test suite that creates an xml report upon completion. I then import those test results using the /api/v2/import/execution/junit endpoint. This is functioning, but the resulting test execution will have a summary like "Execution results [1725561773655]". What does this code correspond to? And is there a way I can define the summary automatically?

This is all happening in a Gitlab CI. Best case scenario is that I could include a Gitlab predefined variable in the Test Execution summary so that I could trace the Test Execution back to the merge request it was testing.

1 answer

1 accepted

0 votes
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 8, 2024

Hi @Pratt, Trenton - welcome to the community,

unfortunately it‘s not possible directly within the same call.

I managed to do a similar thing in a github action by creating a test exdcution issue via the native jira rest api and saving the key in a variable right before importing the cypress test results. I could then use the variable within the import call.

Let me know if this is helpful or if you have any further questions.

Best
Stefan

Pratt, Trenton
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!
September 9, 2024

Thanks for the help!

Like Stefan Salzl likes this
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 9, 2024

@Pratt, Trenton 

it´s my pleasure ;)

 

Suggest an answer

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

Atlassian Community Events