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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

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 ...

107 views 1 8
Read article

Community Events

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

Events near you