Attached code parses a text-based result file in Python for a keyword and saves the execution status based on the parsing results. Then, using ZAPI, grabs the latest automation cycle in a given Project-Version combination. Once the cycle is received, the code then grabs all the executions in that cycle using ZAPI. Finally, the executions are all updated using ZAPI with the results of the parsing in the beginning of the code.
See attached for downloadable copy
ZAPI documentation: http://docs.getzephyr.apiary.io/
- Python (Sample created in v2.7.5)
Title: Sample - Update Based on Automation Results
Version: Zephyr for JIRA 2.1+, ZAPI 1.0+
Summary: Update existing execution with information parsed from automation tool results