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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,435
Community Members
 
Community Events
176
Community Groups

Unable to submit Xray Test Execution evidences pdf file using XRAY REST API

Edited

I have been trying to use below Xray REST API 1.0/2.0 to PUT/POST pdf evidences file as attachement to Xray Test execution record. Facing below error:

Not sure if pdf attachement is supported

Value does not resolve to a primitive type: com.provar.core.model.base.java.InvalidExpressionValueImplCalling a Web Service. Connection Name: AuthXray, target: rest:untyped?method=POST&bodyStyle=JSONConnecting to website. Address: https://jira.*****.net/rest/raven/1.0/api/testrun/*****

Neither the Body nor Attachments/Parts were suppliedReading response. Content Type: text/html; charset=us-ascii, Encoding: nullThe REST response could not be read. Address: https://jira.****.net/rest/raven/1.0/api/testrun/*****, Reason: Server returned HTTP response code: 411 for URL: https://jira.****.net/rest/raven/1.0/api/testrun/*****, Error:

Length Required

 

HTTP Error 411. The request must be chunked or have a content length.

 

End point URL usedhttps://jira.****.net/rest/raven/2.0/api/testrun/*****

JSON Body:

{
"status": "FAIL",
"comment":"{ErrorLogs}",
"evidences":{
"add":[{
"data":"encodedStringFile", # this file holds the encoded string
"filename": "Summary.pdf",
"contentType": "application/pdf"
}]
}
}

Appreciate any response or help in this regard !

Thanks,

Tushar

 

1 answer

1 accepted

0 votes
Answer accepted

Hi @Tushar Daharwal 

Concerning the concrete error you're having, you'll need to provide more information so I recommend you reach out Xray support and the team will be glad to help you out.

Best REgards, 

Sérgio

_______

Solution Architect and Testing Advocate @Xray

Personal blog on testing, Agile, and software development: https://sergiofreire.com

Follow me on Twitter: https://twitter.com/darktelecom

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events