Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-10308

New scenarios added to an already-imported feature file are not created as new Tests on subsequent imports

    XporterXMLWordPrintable

Details

    Description

      When a Gherkin feature file is imported into Xray and later updated with additional scenarios, re-importing the same feature file does not create new Test issues for the newly added scenarios, unless they are identified with @id tags.

      Steps to reproduce:

      1. Import the feature file below through the following endpoint:
        POST https://xray.cloud.getxray.app/api/v2/import/feature?projectKey=ABC
        Feature: Core Test verify Scenarios for app
        
        Scenario: App test
        Given that the app device binding is successful
        When app device verify request is made
        Then received a successful response
        
      1. After that, edit the feature file and add another scenario:
        Feature: Core Test verify Scenarios for app
        
        Scenario: App test
        Given that the app device binding is successful
        When app device verify request is made
        Then received a successful response
        
        Scenario: App test 2
        Given that the app device binding is successful
        When app device verify request is made
        Then received a successful response
        
      1. Import the feature file again.

      Expected result:

      A new Cucumber Test should be created for the newly added scenario.

      Actual result:

      Once the file is imported for the first time, adding new scenarios and re-importing the file won't create new Tests.

      Attachments

        1. newbug.gif
          944 kB
          Victor Tisbierek

        Activity

          People

            sdcv Sergio Vieira
            victor.tisbierek Victor Tisbierek
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: