Sample - Fetch, Execute, and Update Test Issues and Executions
Code searches for, by JQL query, issues and appends all the ID’s to a list. Then takes the ID list and assigns them all the a Ad-Hoc cycle. ZAPI will return the execution ID of the newly assigned test issues and appends them all to a new list. Finally, the list is used to then quick executes each assignment through a loop. As a bonus, the code links a predetermined defect to the newly executed executions.
See attached for downloadable copy
ZAPI documentation: http://docs.getzephyr.apiary.io/
Sourced software:
- Python (Sample created in v2.7.5)
- Requests 2.3.0 (Latest version here: http://docs.python-requests.org/en/latest/)