In this tutorial, we will create a simple Specflow test in C#, using NUnit as the test runner.
Although this tutorial explores a way of managing Specflow tests in Jira, it does not take advantage of Xray's Cucumber features.
Therefore, in this case, Jira isn't used to make the BDD specification; only to abstract the Tests. The tests in Jira wil be created as Generic Tests, not Cucumber Tests. Since the semantics of Cucumber Tests is lost, so do the Scenario Outline examples-related results.
We suggest you to have a look at this tutorial instead: Testing using SpecFlow and Cucumber Scenarios in C#.
Specflow is a tool used for BDD in C#.
In this example, the test case validates a Calculator class and exploits some NUnit features, such as the ability to validate the same Test against multiple input values, and also the possibility of linking Tests with requirements in Jira by using Test attributes.
After successfully running the Scenarios and generating the NUnit XML report (e.g., TestResult.xml), it can be imported to Xray via the REST API or the Import Execution Results action within the Test Execution.
NUnit'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.