Automating c# Selenium tests with XRay

Jeremy Roelfs July 18, 2017

I found this nice tutorial on testing automation: https://www.xpand-addons.com/automated-tests-with-bamboo/


What I would like to do is incorporate our in-house c#/selenium testing framework(page object model) into the XRay testing workflow. Say we deploy and we want to then set a task that will run our c# selenium tests automatically. then when complete, return failed results to the developer via JIRA.

XRay: C#Selenium Example

More detail can be found here: https://community.atlassian.com/t5/Bamboo-questions/C-NET-NUnit-Selenium-Integration-Testing-on-full-AWS-deployment/qaq-p/610802#M15105

 

Can XRay do this? I seen c# selenium test cases in the documentation, but no idea how to implement them, or to run the tests automatically as an instance deploys and get the results.

1 answer

1 vote
Sergio Freire - Xblend
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.
August 24, 2017

Hi Jeremy,

Xray provides integration with many different automation frameworks, such as Nunit, Junit, Behave, Cucumber, etc. 

In the folowing link you can see an example of a Nunit selenium test and how it will look like whenever you import the results to JIRA. 

The Nunit capabilities and how the integration work can be seen in these two links:

 

Have in mind that Xray is a Test Management tool. That means that your automated tests code has to be coded somewhere else, eventualy commited on Git or other SCVS. Then you run those tests in your CI tool and submit the results back to JIRA / Xray, by either using the REST API or the free plugins for Jenkins, Bamboo or Maven. Whenever you do this, we can automaticaly create the Test issues corresponding to your automated tests, if they have not already been created. This is because we're able to identify the tests uniquely from the results file you submit. Thus, your automated test results are always reported to the same Test issues in JIRA, and if they are linked with some requirements that means you will always see the status being updated in the requirement issues.

 

Note: I would suggest you to reach us using our support channel here: http://jira.xpand-addons.com/servicedesk/customer/portal/2 

It's the best way to give you on-time and prompt support by the team itself.

Regards,

Sergio Freire

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events