Overview
In this tutorial, we will create a JUnit Test Case in Java, using Appium library for automation of Windows applications.
Description
The following automated test class validates the "Calculator" Windows native application, using several methods (i.e. Tests) for validating each arithmetic operation.
WinAppDriver must be running in the destination machine (i.e. the one having Windows and the "Calculator" application), or Appium Desktop.
WinAppDriver.exe 192.168.56.102 4723
After running successfuly the Test Case and generating the JUnit XML report (e.g. TEST-CalculatorTest.xml), it can be imported to Xray (either by the REST API or through "Import Execution Results" action within the Test Execution).
Each JUnit's Test Case is mapped to a Generic Test in JIRA, and the "Generic Test Definition" field contains the name of the class, and the method name that implements the Test Case.
The Execution Details of the Generic Test contains information about the Test Suite, which in this case corresponds to the Test Case class.