Introduction Currently, I have a working Gitlab pipeline which which fetches, downloads the .feature file from Cucumber framwork, executes the test and upload the results back to JIRA. The JIRA environment is equipped with XRAY plugin as well. This is no issues in that.
Looking for support in
However, there is a new requirement that
- After downloading the feature file, all the test cases which are orphan or not mapped, needs to mapped to the test repositories which is already created in JIRA (Not sure if this is even possible or not)
Already tried Have already tried searching for a solution in JIRA and Gitlab forums, but was not able to find any relevant post for the same.
has anyone worked on a similar requirement ? What can be done to achieve this ?
TIA
To move a Test issue to a given foldet, you'll need to use the GraphQL API namelly this mutation. You'll need to know the issue id for each Test case. For that, you would need to do another request. It's not something straighforward and I wouldn't recommend to move Tests between folders in the Test Repository during the execution of the pipeline. The Test Repository is a place where Tests are organized by their semantics and not by execution aspects. Note that there is the Test Plan's Board, an hierarchical organization but for planning/execution aspects; each Test Plan has implicitly a Board that has no relation whatsoever with the Test Repository. The Test Repository is a per-project organization of tests, by their semantics, components, high-level features if you want.