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:
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/*****
"data":"encodedStringFile", # this file holds the encoded string
Appreciate any response or help in this regard !
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.
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
Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...
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