Attached code uses a given issue ID to find the latest scheduled execution using ZAPI. Then it uses ZAPI to upload a file to the previously returned schedule.
See attached for downloadable copy
ZAPI documentation: http://docs.getzephyr.apiary.io/
- Python (Sample created in v2.7.5)
- Requests 2.3.0 (Latest version here: http://docs.python-requests.org/en/latest/)
Title: Sample - Add Attachment to Execution
Version: Zephyr for JIRA 2.1+, ZAPI 1.0+
Summary: Add an Attachment to a Test Execution using ZAPI