"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…

4 answers

1 accepted

This widget could not be displayed.

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.

This widget could not be displayed.

Hi All

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

https://support.getzephyr.com/hc/en-us/articles/204713195-Integrate-Selenium-JUnit-and-ANT-with-Zephyr-for-JIRA-and-ZAPI

For more information on ZAPI -> https://marketplace.atlassian.com/plugins/com.thed.zephyr.zapi/server/reviews

Thanks

ZephyrSupport

This widget could not be displayed.

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

https://support.getzephyr.com/hc/en-us/articles/204713195-Integrate-Selenium-JUnit-and-ANT-with-Zephyr-for-JIRA-and-ZAPI

For more information on ZAPI -> https://marketplace.atlassian.com/plugins/com.thed.zephyr.zapi/server/reviews

Thanks

ZephyrSupport

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.

Regards,

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?

 

Regards,

Alex

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.

Regards,

Achu

This widget could not be displayed.

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. 

 

Thanks,

Ola

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

222 views 1 3
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you