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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 Import Execution Results Behave JSON tutorial problem

Hi there! I'm trying to follow the Testing using Behave in Python tutorial. I can get the import to work, but the "The execution details displays the result of the Cucumber Scenario." does not work. 

Here's what I'm doing:

I'm creating a new Test Execution (say, PROJ-123).

I'm creating a new Automated[Cucumber] test (say, PROJ-234)

I'm creating a new Automated[Cucumber] test (say, PROJ-345)


I'm using the following feature file with Behave

Feature: Verify something

Scenario Outline: Verify something with <data>
Given I use the data <data>
Then the result is <result>

| data | result |
| 1 | 1 |

| data | result |
| 2 | 4 |


I'm running behave with:

behave -k --format=cucumber_json:PrettyCucumberJSONFormatter -o cucumber.json --junit --format=json -o reports/data.json x.feature


I'm importing the report with


curl -H "Content-Type: application/json" -X POST -u user:password --data @reports/data.json ""


But when I look at the Test Details for either PROG-234 or PROJ-345, it's empty:



I've also tried to import the Cucumber JSON test report:

curl -H "Content-Type: application/json" -X POST -u user:pass --data @cucumber.json

The result is exactly the same: empty Test Details for either PROG-234 or PROJ-345.

I'm using Jira Data Center 
v8.13.1 with Xray.

1 answer

Hi @gitcrashcourse 

It is necessary to analyze the JSON report that is being sent to Xray.

Must likely the report is not correctly formated.

If it is a behave report it cannot be uploaded into a Cucumber Test case, it needs to be uploaded to a Generic Test case.

If you need further help, please contact the Xray Support ( so that we can request additional information and investigate further.

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


I should have read the tutorial more carefully. According to the tutorial:


The test (specification) is initialy created in Jira as a Cucumber Test and afterwards, it is exported using the UI or the REST API. 


I was expecting that importing the JSON reports would automatically fill that information, but it doesn't.


Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

114 views 0 2
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