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

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

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Waiting Approval
    • Medium
    • Resolution: Unresolved
    • Xray Cloud 6.12.2
    • None
    • None
    • N/A

    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.

      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
        
        @id:1
        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
        
        @id:1
        Scenario: App test
        Given that the app device binding is successful
        When app device verify request is made
        Then received a successful response
        
        @id:2
        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

        Activity

          People

            bernardo.cottim Bernardo Cottim
            victor.tisbierek Victor Tisbierek
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: