Empty "tests" section in xray.json when generated from pytest framework

Iryna Plekhanenka
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!
May 24, 2023

Hi all,

I'm using pytest framework for e2e tests.

Currently I need to export tests execution results into the Xray. pytest-jira-xray plugin is being used for these purposes.

When test run is over I'm getting the following error:

HTTPError: Could not post to JIRA service at https://xray.cloud.getxray.app/api/v2/import/execution. Response status code: 400
Error message from server: Result is not valid Xray Format

Quick investigation (adding --xraypath=xray.json to save execution results into the XRAY execution report file instead of direct reporting on the server) resulted in "test" section being empty, which results in Xray not being able to map the results to Xray artifacts:

Screenshot 2023-05-24 at 12.59.40.png

Could anyone suggest any ideas why this can be happening?

 

1 answer

0 votes
Dayana Garcia
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 12, 2023

Hey, did you find a solution for this issue?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events