The Test Automation tab appears in the project configuration when Jira Administrator adds a CI Server into the CI Servers configuration and sets the given project. On this page, you can decide if you want to create Test Case Templates along with the creation of Test Cases and set statuses mapping for Cucumber test results.
Configuration in the Test Automation tab is available to users with permissions:
Steps
To get to the Test Automation tab:
Result
View of the Test Automation tab.
This option gives you the possibility of enabling the creation of Test Case Templates in the selected project. The Test Case Templates are created together with Test Cases which are based on automated tests. The benefits of this approach are:
To enable Test Case Template creation it is required to enable the Test Repository module in Test Management in a project where you want to store the Test Case Templates.
To enable the creation of Test Case Templates select the Create in current project or Create in another project. Available options:
After you set the creation, when you run automated tests, the Test Case Templates will be created along with the Test Cases. If the Test Case Template has already been created from the source Test Case, they will not be created again if the Run automated tests operation is used again.
This option is associated with the Run automated tests operation on the Test Plan and is used to send additional parameters to a build on the CI Server. By setting additional parameters you can:
In this option, you can manually set the additional parameters whose values TestFLO will send to the CI Server during the Run automated tests operation on the Test Plan.
Go to the Running tests with additional parameters configured page and see how using parameters looks in action.
Steps
To add parameters:
In order to be able to transfer parameter values to the Jenkins CI Server, each parameter configured here must also be added to the given job in Jenkins. In the case of the Bamboo CI Server, there is no need for additional configuration.
Result
You have added a parameter/s. All parameters that you configured with the Editable option will appear for users to change when using the Run automated tests operation. Parameters that you have configured as Read-only will appear to users but they will not be able to change them. The Hidden option will not display the set parameters at all.
After configuring the parameters, you can manage them:
This parameter is responsible for the Select Test Cases to run option when using the Run automated tests operation. With this option, you can select from the existing Test Cases only those that you want to run again within the same or a new iteration.
The parameter stores the key values of selected Test Cases by the user during the Run automated tests operation. These values are the connection keys between each Test Case and the test on the CI Server, which are stored in the Automation Test Key field on the Test Case.
Important information regarding Maven:
There is a limitation of sending testflo.automationTestKeys parameter value to the Bamboo CI Server (the parameter name may vary depending on your settings):
If you want to use the transferred parameters in your script you will have to combine them into one parameter on the Bamboo CI Server side.
Steps
To configure the Selected Test Cases Parameter option:
For the Bamboo CI Server you do not need to configure this parameter additionally.
Result
The configuration is complete. From now on, an additional option Select Test Cases to run will appear on the Run automated tests operation dialog, where you can decide which Test Cases to run again in the same or a new iteration.
Go to the Running tests with Selected Test Cases Parameter configured page and see how this parameter is used in action.
In this option, you can map the statuses that TestFLO receives in the Cucumber test results file to the statuses in the Steps field on the Test Case. There are three statuses from Cucumber to map Passed, Failed, and Skipped. You can assign each of these statuses a corresponding status in the Steps field. If you do not assign any status then when you import the test results TestFLO will assign the default steps status.
The Default steps status is available in the General tab in the project configuration. For more see Steps Configuration.
With this option, you can map the statuses that TestFLO receives in the test results file of the parameterized NUnit tests to the statuses in the Steps field in Test Case. There are three statuses from NUnit tests to map Passed, Failed, and Skipped. You can assign each of these statuses a corresponding status in the Steps field. If you do not assign any status then when you import the test results TestFLO will assign the default steps status.
The Default steps status is available in the General tab in the project configuration. For more see Steps Configuration.