Within this page you'll be able to find some examples of automated tests implemented with TestNG.
Since TestNG produces a XML report understandable by Xray, you will be able to process and present those results in Xray.
- Testing using TestNG in Java
- Testing web apps in the cloud (BrowserStack) using Selenium and TestNG in Java
- Testing web apps in the cloud (Sauce Labs) using Selenium and TestNG in Java