Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Attach a PDF file execution evidence in Jira Xray

Johnson Anthony September 26, 2020

The documentation https://docs.getxray.app/display/XRAY/Test+Runs+-+REST#TestRunsREST-ExecutionEvidence provides how to attach a image. How to upload a PDF for the same?

1 answer

0 votes
Lauren Allen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 27, 2020

I'm not 100% certain on this, but looking at the sample POST from the link you provided, perhaps you could try changing from:

"filename":"image21.jpg",   
"contentType":"image/jpeg"

to something like this:

"filename":"sample.pdf",   
"contentType":"application/pdf"

Tushar Daharwal October 28, 2020

I am trying to do the same using below JSON body , however I am facing an error :

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

Error:

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.

Neither the Body nor Attachments/Parts were suppliedReading response. Content Type: text/html; charset=us-ascii, Encoding: nullThe REST response could not be read. Reason: Server returned HTTP response code: 411 for

Error:

Length Required

 

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events