Xray with Nightwatch.JS

Hi,

i read the guides and faq but was not able to figure out how and if i can run my tests using nightwatch.JS to run end-to-end test on some web applications.

I know the test cases have to be defined somewhere else which iam doing already by creating the script files on some server to be executed using node.js nightwatch.

But how can i trigger those tests from Xray? And can i also auto trigger the results back into Xray using the REST API? Would be great if i can control both from Xray.

1 answer

Hi Eser,

 

You can't trigger automated executions right from Xray. You need to do it the other way around.

Configure a Continuous Integration Platform (eg. Jenkins or Bamboo) and run your Nightwatch.js tests from there.

Then, Xray provides a REST API that allows you to import execution results, and because you can generate a JUnit XML reports with Nightwatch.js, you directly use that report to import the execution results to Xray and JIRA. This will automatically create Test issues to match your script on the first import.

This import step can be integrated in your CI build process. The last step would be importing the generated JUnit report into Xray using the REST API. 

Xray even has 2 add-ons (for Jenkins and Bamboo) that will help define this import step.

Here are some links that might help you:

https://confluence.xpand-addons.com/display/XRAY/Integration+with+JUnit+based+test+runners

https://confluence.xpand-addons.com/display/XRAY/Continuous+Integration+Tools

https://confluence.xpand-addons.com/display/XRAY/Import+Execution+Results+-+REST

 

Hope this helps.

Regards,

Bruno Conde.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

183 views 0 4
Read article

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