Versions Compared

Key

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

...

Xray generates Cucumber .feature files according to the context issue and the following rules. The global setting "Generate features by requirements" affects how feature files are generated. If this setting is disabled, Xray will ignore the connection between Requirements and Tests.

Considering Requirements associated with Tests ("Generate features by requirements" setting is enabled)

...

Test

...

  • A single Cucumber feature file is generated for each requirement associated with this Test.
  • The feature contains the feature header description of the associated requirement, if present.
  • The feature contains the background of the Test, if present in the Pre-Condition associated with it.
  • The feature contains the Scenario/Scenario Outline defined in this Test.
Test Set, Test Execution, Test Plan or Requirement issue

...

  • A single Cucumber feature file is generated for each different tuple (Requirement, Pre-Condition).
  • A Test Execution does not contain repeated tests.
  • If a Test is not associated with a requirement, then it will be exported as an independent feature file.
  • If a Test is associated with more than one requirement, then a feature file will be generated for each requirement. The generated .feature files will contain repeated test scenarios.
  • The feature contains the feature header description of the associated requirement, if present.
  • The feature contains the common background of the Tests, if present in the Pre-Condition.
  • The feature contains the Scenario/Scenario Outline for all the tests.

Ignoring Requirements associated with Tests ("Generate features by requirements" setting is disabled)

...

Test

...

  • A single Cucumber feature file is generated for the Test.
  • The feature contains the background of the Test, if present in the Pre-Condition associated with it.
  • The feature contains the Scenario/Scenario Outline defined in this Test.
Test Set, Test Execution, Test Plan or Requirement issue

...

  • A single Cucumber feature file is generated for each Pre-Condition. If there are some Test cases without Pre-Conditions that a default feature file will be generated.
  • The feature contains the common background of the Tests, if present in the Pre-Condition.
  • The feature contains the Scenario/Scenario Outline for all the tests.

...