Integration C# Nunit/Selenium results with Jira

Mohamed Ibrahim October 29, 2019

What tools/technologies do I need to use to Integrate Jira to Selenium C# 

I have tried out ZephyrCloudHelper and JiraSDK 

2 answers

0 votes
jagadeesh madhura
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2019

Hi Mohamed Ibrahim,

In Zephyr for jira cloud please try the A.T.O.M-Beta feature which will posts your selenium results in to your jira and updates your test results

You need to enable the ATOM feature in jira project settings

Minh Quach December 24, 2019

Look like it doesn't support Nunit, so how can we upload the execution from Selenium C# to Zephyr?

Mohamed Ibrahim December 24, 2019

I am Using Jenkins for Selenium C# to Upload results in Zephyr 

Minh Quach December 24, 2019

Which tools are you using? I'm looking for the solutions to upload results to Zephyr Cloud too.

Mohamed Ibrahim December 24, 2019

1. Install Jenkins on your windows machine 

2. After installation add Zephyr Plugin (Zephyr for JIRA Test Management plugin)to it 

3. Now Run your C# selenium scripts in Jenkins by configure your  scripts.

4. Then it will automatically publish results to Zephyr 

 

I have done this for Zephyr Cloud 

Like Minh Quach likes this
Minh Quach December 30, 2019

@Mohamed Ibrahim I got this error when trying to publish to Zephyr, did you got this or know how to resolve?

C:\Program Files (x86)\Jenkins\workspace\Automation>exit 0 
Recording NUnit tests results
[ZapiTestResultReporter] [INFO] Examining test results...
Build result is SUCCESS
Total Test Cases : 1ERROR: Build step failed with exception
java.lang.NullPointerException
 at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.executeTestsZFJC(TestCaseUtil.java:1168)
 at com.thed.zephyr.jenkins.utils.rest.TestCaseUtil.processTestCaseDetails(TestCaseUtil.java:715)
 at com.thed.zephyr.jenkins.reporter.ZfjReporter.perform(ZfjReporter.java:101)
 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
 at hudson.model.Build$BuildExecution.post2(Build.java:186)
 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
 at hudson.model.Run.execute(Run.java:1878)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 at hudson.model.ResourceController.execute(ResourceController.java:97)
 at hudson.model.Executor.run(Executor.java:428)
Build step 'Publish test result to Zephyr for JIRA' marked build as failure
Finished: FAILURE
0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2019

What do you want from your "integration"?

The word tells us you want two systems to talk to each other, but nothing more of any use in answering the question.

Mohamed Ibrahim October 29, 2019

Hi Nic, I want selenium test runs results to be updated in jira. 

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 30, 2019

How are you getting the results in Jira?  Does that method support updates?

Mohamed Ibrahim October 30, 2019

Right We are manually updating results in jira like test pass/Fail after our selenium scripts  runs

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 30, 2019

Ok, so a pass/fail flag needs to be sent from Selenium to Jira.

You should use the REST API in Jira - set up a selenium post-test function that pokes Jira to either update the field, or transition the issue(s) to a pass/fail status.

Mohamed Ibrahim October 30, 2019

REST API is Great Idea, but we are using Zephyr for jira do you have any advises how can we link selenium to Jira with the help of Zephyr

Suggest an answer

Log in or Sign up to answer