It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

"Zephyr with JIRA" integration with Selenium

Hi ,


We are using Zephyr with JIRA for test case management. And uploaded test cases into them. There are more than 1000 test cases. My Objective here is to use Selenium(Java) and Automate these test cases in such a way that:


  1. The corresponding test case execution in Selenium needs to be triggered from JIRA
  2. The corresponding result (Pass / fail) needs to be returned and updated in Zephyr
  3. In case of defects, the defects needs to be created automatically


Pls let me know, anyone have implemented or tried this approach…

5 answers

1 accepted

3 votes
Answer accepted

Thx Alexander for the reply. My main doubt is:

I have 100 test cases in Zephyr. I have 100 test scripts in Selenium. I am executing these test scripts through Jenkins as you said. So how I will map the test script result to test case in Zypher? Once the mapping is done, as you said, I can use the ZAPI and update the test result.

Pls clarify.

Hi, To do this use an own Annotation with a value JIRA_KEY and so we mark the tests with this annotation and are able to map it back when we process the results. Currently we just support whole tests, not steps . So in the final execution you see the whole tests is executed but not the executions of the single steps. If this is an issue for you, you could think of the following mapping: one class per test case, one step per method. If the test fails you could process the stack trace and find out which method failed and put the execution of this step as failed as the whole test. All steps/methods before are green and all methods after are unexecuted.

Thx Alexander. I will try this and let you know, if I need more details. Thx for the information you provided....

Is there any update about it? I'm having the same issue with my setup. I'm using cucumber with jenkins + zephyr enterprise. I have noticed the steps are going empty to zephyr.

Like ritu sharma likes this

Hi All

Please follow the instructions in the link below to integrate Selenium with Zephyr for JIRA using ZAPI

For more information on ZAPI ->





Can we map test cases without using Python script as in the above link, attached code is in Python script where the user is passing API's.

Hi Mohan,

We have implemented the following scenario for our customers:

  • Selenium tests are written in Java (TestNG) 
  • Executed by Jenkins (Acceptance Test Build)
  • The results of the run are written back to Zephyr:
    • a new test cycle is created
    • The test cycle is associated to adhoc or a particular version (defined in Jenkins by a Env Variable which you must maintain in Jenkins)
    • All the tests are associated with the cycle (over a predefined JQL filter, it could be that not all tests are implemented and executed, therefore we add them by a filter)
    • The executions are run into the above cycle
    • If there are errors, the Java stacktrace is stored in the execution comments
    • Currently missing is the step of creating bugs on failures but it is actually not a big issue. Maybe you should think once again about: "do I want 1000 bugs in my JIRA when the Test system is not available". If you still decide for this I would recommend you the following approach:
      • Make a smoke test suite which tests the major functionality
      • If this smoke tests suite is successful then run the rest and create issues automatically but also with some threshold or something

That what I describe above is all implemented with plain JAVA an ZAPI. If you are interested we could implement it for you, if you want to do it yourself, just tell me what are your showstoppers and I will try to support you on it

i need a piece of code how to create project, test plan, test cases in JIRA using java 

Hi All

Please follow the instructions in the link below to integrate Selenium with Zephyr for JIRA using ZAPI

For more information on ZAPI ->



Hi Alexander,

It would be great if you can help me to integrate Zephyr for JIRA with Selenium(java).

How to build the bridge between Selenium and JIRA for updating the test results in Zephyr. Please assist me to solve this.

Appreciate your assistance here.


Achu S Pillai

Hi Achu,


As I wrote above, we have build an integration layer for this integration using the public API of Zephyr. I already explained the basic architecture of our integration. 

How can I support you further?




Thanks for the response Alex,

I am new to API so it would be great if you can help with java code for connecting JIRA and selenium.



Hello Alexandre,

Hope you are doing well,

As i'm beginner, can you help me ?

I need a simple example to connect my TentNG / selenium weeb driver (JAVA) with ZAPI for jira cloud.

Where can I implemented the the output report to zephyr ?

I'm using TestNG and i dont like use Junit ANT.


Thank you for your help.

Hi Alex,

It is throwing exception for:

ZFJCloudRestClient.restBuilder(zephyrBaseUrl, accessKey, secretKey, userName).build();

and at the end the testng message at this point is:

java.lang.NoClassDefFoundError: org/apache/commons/configuration/PropertiesConfiguration


Could you please help

Hi Alexander


Im having the same issues. I desire the ability to:


1) Start a test cycle and update the test cases.


How would I do this in Java, please provide the sample code. 




Hi Alexander,


 Can you share guide or document where we could follow the steps and do this configuration.

please help.



Hi Alex,

We are using Zephyr  for Jira ver 7.13.0. So far we are running manual test cases.  We would like to download Zapi and Integrate the following. Could you please provide us any documentation for setting up the Framework and configuration.

Zephyr for Jira  - Test Management

Selenium with Maven-  Automation Test Scripts & Test Execution

Jenkins - Test Build





0 votes

Hi Alex, 

We have a use cases where:

1. Our Test Automation frameworks are in Python and integrated with Jenkins and GIT based CI / CD Pipeline.

2. We are looking for a way to execute the pipeline from Zephyr and get test results written back to Zephyr and in turn Jira ticket/ user story.

Do we already have some APIs / Methods to achieve the above use case?



Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you