Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. try to find the Pre-Condition by key, if found then update it; else...
  2. try to find the Pre-Condition having both:
    1. a label with the original relative path of .feature (e.g. "core/sample_addition.feature)
    2. no other label ending in ".feature"
  3. try to find the Pre-Condition having both:
    1. the same Summary
    2. no label ending in ".feature", except the one corresponding to the relative path of the Cucumber file being imported
  4. create Pre-Condition in that project and add a label with the relative path of the feature


Organization:

  1. updateRepository Query Parameter:
    A new query parameter named updateRepository is added to the REST API endpoint for importing cucumber features.

  2. Default Behavior:

    1. When the updateRepository parameter is not provided, it defaults to updateRepository=false.

    2. In this default state, the Test Repository will not be updated to maintain compatibility with previous versions.

  3. Enabling Repository Update:

    1. If updateRepository=true is specified, the imported Tests will be organised into the Test Repository.

    2. The organisation of Tests follows the folder structure defined in the import zip file.

  4. Automatic Folder Creation:

    1. Folders will be automatically created in the Test Repository if they do not exist as per the structure in the import file.

  5. Handling Test Movement:

    1. 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.

  6. Error Handling for Folder Creation:

    1. If a folder cannot be created due to naming issues or other conflicts, an HTTP 400 error will be returned.

    2. 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:
Image Added
 System will import into the following Test Repository path:

    1. Folder "Math"
      Tests Cucumber test C and D
    2. Folder "Math/Sub"
      Test Cucumber test B
    3. Folder "Math/Sum"
      Test Cucumber test A


The mapping from the Scenario/Scenario Outline present in the .feature files to the Test issues in Jira would be as follows:

...