Having issue with our Importer utility for Zephyr for Jira Cloud.Please click here for the steps to resolve the issue. If you are not able to access Capture Cloud and seeing a message, it means your Capture cloud instance is not migrated as part of our GDPR and Atlassian privacy policy. Please click here for the steps to Migrate your Capture Cloud instance to use Capture.
Support | Zephyr



Sample java code to upload test execution attachment

Created on

Problem : Looking for sample java code which can upload attachment to test execution.

Description/Fix:

Please follow the attachment resource API in "http://docs.zfjcloud.apiary.io/#reference/attachment/create-attachment/create-attachment"

The entityID is nothing but the id of the entity(execution/teststep) you are using. 
You can get the execution Id by using any of the "Get List of Executions" URI of execution resource http://docs.zfjcloud.apiary.io/#reference/execution
OR
Simply by inspecting the element of the [E] button from the Plan Test Cycle page or View Test page Test Executions.

execution_id.PNG

Also we have attached the sample java code that will help you in understanding how to use the APIs to upload or add attachment


Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request
Powered by Zendesk