You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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 used: https://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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.