Test Step Attachment using Zephyr Json Object and Java Edited

Hi,

Can you provide me a sample to show attachment upload to test steps results using json object and Java.

 

I have got the URL ready but how do you upload attachement?

latest/attachment?entityId=" + ts.getStepResultId()  + "=&entityType=stepResult"

 Is it entityId=  step id or stepresult id? 

Is it entityType = TestStepResult?

 

Please help!

Thanks,

Preetha

 

1 answer

Hi Preetha

Thanks for your interest in Zephyr.

Please refer the knowledge base link below that descripes the attachment at test step execution level in Zephyr for Jira Cloud (ZAPI Cloud)

There is a sample Java code too attached at the end of the article

https://support.getzephyr.com/hc/en-us/articles/115002187443-Sample-java-code-to-upload-test-execution-attachment

Below is for Zephyr for Jira Server (ZAPI Server)

https://support.getzephyr.com/hc/en-us/articles/202466019-Sample-Add-Attachment-to-Execution

Thanks

ZephyrSupport

Thank You. Will try the sample. So its not just entityid and entityname you pass with the URL as mentioned here?

http://docs.getzephyr.apiary.io/#reference/attachmentresource/add-attachment-into-entity/add-attachment-into-entity?console=1

 

Arun's reply is notmatching what is mentioned in Zephyr API document. Why is it different?

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Apr 10, 2018 in Marketplace Apps

Learn about how Stefan K. built one of the *first ever* Marketplace apps

In this post you will discover more about the evolution of K15t software, some big topics they're currently focusing on in the app space, and a rare (not not funny!) photo of founders Mike Cannon-Bro...

13,054 views 11 24
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you