Page History
...
- try to find the Test by key, if found then update it; else...
- try to find the Test having:
- a label with the original relative path of .feature (e.g. "core/sample_addition.feature)
- a label named "id:xxx", where xxx is some number (e.g. "id:1", "id:32"); this label comes from a scenario/scenario outline's tag
- no other label ending in ".feature"
- try to find the Test having:
- a label with the original relative path of .feature (e.g. "core/sample_addition.feature)
- the same summary
- no other label ending in ".feature"
- try to find the Test having:
- the same Summary
- no label ending in ".feature", except the one corresponding to the relative path of the Cucumber file being imported
- When a Test is found, if Xray Enterprise is enabled, the import will update
- the default version if it is Cucumber/Gherkin,
- the latest active Cucumber/Gherkin test case version.
- create a new version if none of the previous ones are matched
- create Test in that project and add a label with the relative path of the feature. The tags used in the scenario/scenario outline are also added as labels.
...
- try to find the Pre-Condition by key, if found then update it; else...
- try to find the Pre-Condition having both:
- a label with the original relative path of .feature (e.g. "core/sample_addition.feature)
- no other label ending in ".feature"
- try to find the Pre-Condition having both:
- the same Summary
- no label ending in ".feature", except the one corresponding to the relative path of the Cucumber file being imported
- create Pre-Condition in that project and add a label with the relative path of the feature
Organization:
updateRepository Query Parameter:
A new query parameter named updateRepository is added to the REST API endpoint for importing cucumber features.Default Behavior:
When the updateRepository parameter is not provided, it defaults to updateRepository=false.
In this default state, the Test Repository will not be updated to maintain compatibility with previous versions.
Enabling Repository Update:
If updateRepository=true is specified, the imported Tests will be organised into the Test Repository.
The organisation of Tests follows the folder structure defined in the import zip file.
Automatic Folder Creation:
Folders will be automatically created in the Test Repository if they do not exist as per the structure in the import file.
Handling Test Movement:
If an existing feature is updated and its location is changed to a different folder, Xray will move the Tests to the new folder accordingly.
Error Handling for Folder Creation:
If a folder cannot be created due to naming issues or other conflicts, an HTTP 400 error will be returned.
The system will attempt to update the folder locations for other valid features in the import, allowing for partial updates where possible.
Considering the above zip folder structure:
System will import into the following Test Repository path:
- Folder "Math"
Tests Cucumber test C and D - Folder "Math/Sub"
Test Cucumber test B - Folder "Math/Sum"
Test Cucumber test A
- Folder "Math"
The mapping from the Scenario/Scenario Outline present in the .feature files to the Test issues in Jira would be as follows:
...
Expand | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
|