Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Xray "Error retrieving Project from Jira with key "null"" when uploading JSON file

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

{
"info" : {
"summary" : "Execution of automated tests for release v1.3",
"description" : "This execution is automatically created when importing execution results from an external source",
"version" : "v1.3",
"user" : "admin",
"revision" : "1.0.42134",
"startDate" : "2014-08-30T11:47:35+01:00",
"finishDate" : "2014-08-30T11:53:00+01:00",
"testPlanKey" : "DEMO-100",
"testEnvironments": ["iOS", "Android"]
},
"tests" : [
{
"testKey" : "DEMO-6",
"start" : "2014-08-30T11:47:35+01:00",
"finish" : "2014-08-30T11:50:56+01:00",
"comment" : "Successful execution",
"status" : "PASSED"
},
{
"testKey" : "DEMO-7",
"start" : "2014-08-30T11:51:00+01:00",
"finish" : "2014-08-30T11:52:30+01:00",
"comment" : "Execution failed. Example #5 FAIL.",
"status" : "FAILED",
"evidences" : [
{
"data": "iVBORw0KGgoAAAANSUhEUgAABkIAAAO9CAYAAADezXv6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEn(...base64 file enconding)",
"filename": "image21.jpg",
"contentType": "image/jpeg"
}
],
"examples" : [
"PASSED",
"PASSED",
"PASSED",
"PASSED",
"FAILED"
],
"steps": [
{
"status": "PASSED",
"comment": "Comment on Test Step Result 1",
"actualResult" : "Step Passed with Status Code 200",
"evidences" : [
{
"data": "iVBORw0KGgoAAAANSUhEUgAABkIAAAO9CAYAAADezXv6AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEn(...base64 file enconding)",
"filename": "image22.jpg",
"contentType": "image/jpeg"
}
]
}
],
"defects" : [
"DEMO-10",
"DEMO-11"
]
}
]
}

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

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

1 answer

0 votes
Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 28, 2021

Hi @Alexander Chako 

In the JSON file there are references to the Test issue key and the Test Plan issue key.

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
AUG Leaders

Atlassian Community Events