Skip to main content

Feature file synchronization

The plugin allows you to keep your local feature files in sync with the step definitions in Xray.


Feature file upload

Synchronize step definitions in Xray based on your local feature files.Synchronize step definitions in Xray based on your local feature files.

Synchronize step definitions in Xray based on your local feature files.

Uploading feature files is useful if the source of truth for test cases are local feature files in Cypress and Xray is only used for tracking execution results. You can enable the upload using the uploadFeatures setting and by making sure that feature file synchronization is enabled.

note

Don't forget to add tags to your backgrounds, scenarios and scenario outlines. Uploads of untagged feature files will always be skipped as a precautionary measure.

Example

In the following scenario, the existing example will be extended by an additional step.

Feature: Example page redirection

@TestName:CYP-129
Scenario: Redirect by clicking
Given the example page
When the link is clicked
Then a redirect should occur
And the test should fail

Language support

By default, Xray expects feature files to use English keywords. If you want to use different languages, make sure to add the corresponding # language: header to your feature files, as described here.

Example
# language: de
Funktionalität: Weiterleitung Beispielseite

@TestName:CYP-129
Szenario: Weiterleitung durch Klick
Angenommen Beispielseite
Wenn Klick auf Link
Dann Weiterleitung findet statt

Feature file download

Development

Synchronization of local feature files based on the step definitions as managed in Xray is planned as a future feature (i.e. download of Xray step definitions to local feature files and then running them).