Attached code uses a given project and version ID to construct a report template in CSV format. It then gets all cycles in the given Project-Version combination. With the cycle information gathered, the code will grab all executions inside the cycles and add each execution as a row in the report. Finally, it creates final totals for various columns and adds them as a final row before completion.
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 - Execution Report for Cycle by Version
Version: Zephyr for JIRA 2.1+, ZAPI 1.0+
Summary: Create execution report based on cycles and versions