Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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 "There are no valid tests imported" when uploading cucumber JSON result

I'm trying to upload a JSON file with test executions, manually from UI. But I face a problem when Xray returns an error. I don't understand why I used the JSON format provided in official documentation:

https://docs.getxray.app/display/XRAYCLOUD/Import+Execution+Results+-+REST#ImportExecutionResultsREST-XrayJSONresults 

[
{
"keyword": "Feature",
"name": "Arithmetic Operations",
"line": 3,
"description": "",
"tags": [
{
"name": "@DEMO-48",
"line": 1
},
{
"name": "@REQ_DEMO-45",
"line": 2
}
],
"id": "arithmetic-operations",
"uri": "features/1_DEMO-45.feature",
"elements": [
{
"comments": [
{
"value": "#In order to avoid silly mistakes",
"line": 4
},
{
"value": "#As a math idiot ",
"line": 5
},
{
"value": "#I want to be told the result of basic arithmetic operations between two numbers",
"line": 6
}
],
"keyword": "Scenario Outline",
"name": "Add two Numbers",
"line": 18,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-47",
"line": 9
}
],
"id": "arithmetic-operations;add-two-numbers;;2",
"type": "scenario",
"steps": [
{
"embeddings": [
{
"mime_type": "text/plain",
"data": "{data base64}"
},{
"mime_type": "text/plain",
"data": "{data base64}"
}],
"keyword": "Given ",
"name": "I have entered 20 into the calculator",
"line": 11,
"match": {
"arguments": [
{
"offset": 15,
"val": "20"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 487000
}
},
{
"keyword": "And ",
"name": "I have entered 30 into the calculator",
"line": 12,
"match": {
"arguments": [
{
"offset": 15,
"val": "30"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 340000
}
},
{
"keyword": "When ",
"name": "I press add",
"line": 13,
"match": {
"arguments": [
{
"offset": 8,
"val": "add"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 327000
}
},
{
"keyword": "Then ",
"name": "the result should be 50 on the screen",
"line": 14,
"match": {
"arguments": [
{
"offset": 21,
"val": "50"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 11723000
}
}
]
},
{
"comments": [
{
"value": "#In order to avoid silly mistakes",
"line": 4
},
{
"value": "#As a math idiot ",
"line": 5
},
{
"value": "#I want to be told the result of basic arithmetic operations between two numbers",
"line": 6
}
],
"keyword": "Scenario Outline",
"name": "Add two Numbers",
"line": 19,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-47",
"line": 9
}
],
"id": "arithmetic-operations;add-two-numbers;;3",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 2 into the calculator",
"line": 11,
"match": {
"arguments": [
{
"offset": 15,
"val": "2"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 992000
}
},
{
"keyword": "And ",
"name": "I have entered 5 into the calculator",
"line": 12,
"match": {
"arguments": [
{
"offset": 15,
"val": "5"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 775000
}
},
{
"keyword": "When ",
"name": "I press add",
"line": 13,
"match": {
"arguments": [
{
"offset": 8,
"val": "add"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 322000
}
},
{
"keyword": "Then ",
"name": "the result should be 7 on the screen",
"line": 14,
"match": {
"arguments": [
{
"offset": 21,
"val": "7"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 423000
}
}
]
},
{
"comments": [
{
"value": "#In order to avoid silly mistakes",
"line": 4
},
{
"value": "#As a math idiot ",
"line": 5
},
{
"value": "#I want to be told the result of basic arithmetic operations between two numbers",
"line": 6
}
],
"keyword": "Scenario Outline",
"name": "Add two Numbers",
"line": 20,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-47",
"line": 9
}
],
"id": "arithmetic-operations;add-two-numbers;;4",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 0 into the calculator",
"line": 11,
"match": {
"arguments": [
{
"offset": 15,
"val": "0"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 384000
}
},
{
"keyword": "And ",
"name": "I have entered 40 into the calculator",
"line": 12,
"match": {
"arguments": [
{
"offset": 15,
"val": "40"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 313000
}
},
{
"keyword": "When ",
"name": "I press add",
"line": 13,
"match": {
"arguments": [
{
"offset": 8,
"val": "add"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 280000
}
},
{
"keyword": "Then ",
"name": "the result should be 40 on the screen",
"line": 14,
"match": {
"arguments": [
{
"offset": 21,
"val": "40"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 350000
}
}
]
},
{
"keyword": "Scenario Outline",
"name": "Divide Two Numbers",
"line": 32,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-46",
"line": 23
}
],
"id": "arithmetic-operations;divide-two-numbers;;2",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 8 into the calculator",
"line": 25,
"match": {
"arguments": [
{
"offset": 15,
"val": "8"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 344000
}
},
{
"keyword": "And ",
"name": "I have entered 4 into the calculator",
"line": 26,
"match": {
"arguments": [
{
"offset": 15,
"val": "4"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 292000
}
},
{
"keyword": "When ",
"name": "I press divide",
"line": 27,
"match": {
"arguments": [
{
"offset": 8,
"val": "divide"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 291000
}
},
{
"keyword": "Then ",
"name": "the result should be 2 on the screen",
"line": 28,
"match": {
"arguments": [
{
"offset": 21,
"val": "2"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 320000
}
}
]
},
{
"keyword": "Scenario Outline",
"name": "Divide Two Numbers",
"line": 33,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-46",
"line": 23
}
],
"id": "arithmetic-operations;divide-two-numbers;;3",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 12 into the calculator",
"line": 25,
"match": {
"arguments": [
{
"offset": 15,
"val": "12"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 1102000
}
},
{
"keyword": "And ",
"name": "I have entered 3 into the calculator",
"line": 26,
"match": {
"arguments": [
{
"offset": 15,
"val": "3"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 891000
}
},
{
"keyword": "When ",
"name": "I press divide",
"line": 27,
"match": {
"arguments": [
{
"offset": 8,
"val": "divide"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 291000
}
},
{
"keyword": "Then ",
"name": "the result should be 4 on the screen",
"line": 28,
"match": {
"arguments": [
{
"offset": 21,
"val": "4"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 339000
}
}
]
},
{
"keyword": "Scenario Outline",
"name": "Divide Two Numbers",
"line": 34,
"description": "",
"tags": [
{
"name": "@TEST_DEMO-46",
"line": 23
}
],
"id": "arithmetic-operations;divide-two-numbers;;4",
"type": "scenario",
"steps": [
{
"keyword": "Given ",
"name": "I have entered 3 into the calculator",
"line": 25,
"match": {
"arguments": [
{
"offset": 15,
"val": "3"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 304000
}
},
{
"keyword": "And ",
"name": "I have entered 1 into the calculator",
"line": 26,
"match": {
"arguments": [
{
"offset": 15,
"val": "1"
}
],
"location": "features/step_definitions/calculator_steps.rb:14"
},
"result": {
"status": "passed",
"duration": 309000
}
},
{
"keyword": "When ",
"name": "I press divide",
"line": 27,
"match": {
"arguments": [
{
"offset": 8,
"val": "divide"
}
],
"location": "features/step_definitions/calculator_steps.rb:18"
},
"result": {
"status": "passed",
"duration": 257000
}
},
{
"keyword": "Then ",
"name": "the result should be 5 on the screen",
"line": 28,
"match": {
"arguments": [
{
"offset": 21,
"val": "5"
}
],
"location": "features/step_definitions/calculator_steps.rb:22"
},
"result": {
"status": "passed",
"duration": 840000
}
}
]
}
]
}
]

 

Снимок экрана 2021-03-17 в 11.09.47.pngСнимок экрана 2021-03-17 в 11.09.44.png

1 answer

Hi @Alexander Chako 

In the JSON file there are references to issue keys.

If these values don't match existing issues in Jira/Xray it will not upload the execution file.

Please contact the Xray Support (http://xraysupport.xpand-it.com) so that we can help you further.

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - April 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

251 views 3 20
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