Support | Zephyr



Integrate Selenium, JUnit, and ANT with Zephyr for JIRA and ZAPI

Created on

Preface

Typically, a tester will need to update the Zephyr for JIRA GUI for automated tests manually through the web interface. With the summary, steps, and attached code a tester can setup up a scenario where - after automation - they can run a Python script to update execution in Zephyr for JIRA automatically.

Detailed Summary

Attached code (modified slightly from here) parses a text-based result file in Python for a keyword and saves the execution status based on the parsing results. ZAPI then grabs the latest automation cycle in a given Project-Version combination. Once the cycle is received, the code will grab all the executions in that cycle using ZAPI. Finally, the execution(s) are updated using ZAPI with the results of the parsing.

Sample code is designed to take result from one file and update result of one execution in Zephyr for JIRA. Customization will be needed to change or enhance functionality.

General Steps 

1) Create Selenium Tests

2) Use JUnit to run Selenium Tests

3) Create ANT build file to run junitreport after JUnit tests. Reports will then generate after JUnit testing is done

4) Use a combination of basic calls to parse HTML(attached) report file generated by ANT

5) Depending on parsed results, ZAPI will update the status of executions with Pass, Fail, etc.

 

See attached for downloadable copy of code and report sample

ZAPI documentation: http://docs.getzephyr.apiary.io/

Sourced software:

- Python

- Eclipse

- JUnit

- Selenium

- ANT

                                                                                                                            

Title:  Integrate Selenium, JUnit, and ANT with Zephyr for JIRA and ZAPI

Product:  ZAPI

Version:  Zephyr for JIRA 2.5.3+, ZAPI 1.5+

Summary:  Integrate Selenium, JUnit, and ANT test reporting into Zephyr for JIRA using ZAPI to update the 


Was this article helpful?
3 out of 3 found this helpful
Have more questions? Submit a request
Powered by Zendesk