We are performing a phasewise scheduled maintenance of our Zephyr for Jira Cloud and Capure for Jira Cloud instances to be compliant with GDPR- Atlassian privacy policy (https://www.atlassian.com/trust/privacy) .Please expect a downtime during this phase of maintenance from Saturday, 01/12/2019, 9:30 PM PST up until Sunday 01/13/2019, 9:30 AM PST.This will be for our phasewise deployment of infrastructure changes, migration utility verification and customer data migration, as part of our GDPR and Atlassian privacy policy compliance efforts.For any further queries regarding this please rasie a ticket by using the option 'Submit a Ticket' below
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.


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
Simply by inspecting the element of the [E] button from the Plan Test Cycle page or View Test page Test Executions.


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