How can I upload generic testng results to X-Ray with attachments and defect comments in JIRA? Edited

I am trying to upload testng report data to JIRA following the link:

But the issue am facing is, I am unable to upload any attachments, even after giving them under evidences section (after encoding base64)

Is it feasible to upload the test execution results with attachments? 

Even after uploading the results, I do not see comments getting updated in the defect, can you tell me how to do so? 

Also I want to update the transition and other fields of JIRA, can you tell me how can we do that? 


sample JSON:

"tests" : [
"testKey" : "PROJ-2",
"start" : "2017-08-31T11:47:35+01:00",
"finish" : "2017-08-31T11:50:56+01:00",
"comment" : "Successful execution",
"status" : "PASS"
"testKey" : "PROJ-1",
"start" : "2017-08-31T11:47:35+01:00",
"finish" : "2017-08-31T11:50:56+01:00",
"comment" : "Successful execution",
"status" : "PASS",
"evidences" : [
"data": "c2FzZGFzZHNhZGFzZGEK",
"filename": "/Users/ravi/Desktop/a.txt",
"contentType": "text/plain"


I do not see where the comment gets reflected. I do not see the comment neither in test execution nor in test case section

I need to understand this as I am trying to integrate selenium with X-Ray in my project to bring down the manual testing

1 answer

Hi ravi,

Thanks for using Xray :)

Xray does support reporting results and embedding attachments. You may see an example here for Xray JSON format; please see "Xray JSON results" section.

In the future, I kindly ask you to directly contact our support using our service desk here.

Best regards,

Xray for JIRA Team

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

128 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you