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

Integration C# Nunit/Selenium results with Jira Edited

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

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.

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

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

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

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.

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

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

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

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

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

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

@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

Suggest an answer

Log in or Sign up to answer
TAGS

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