Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-2702

links to requirements and association to existing Pre-Condition is not being done whenever importing Cucumber features

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • R3.1.1
    • R3.1.2
    • None
    • None
    • OK

    Description

      Links to requirements and association to existing Pre-Condition is not being done whenever importing Cucumber features using the REST API endpoint 

       

       

      How to reproduce:

      • submit the following feature first

       

      @REQ_CALC-2496
      Feature: As a user, I can calculate the sum of two numbers
      
      Background:
      Given I have a calculator
      And I have some fingers
      
      
      @id:1 @fast
      Scenario Outline: Cucumber Test As a user, I can calculate the sum of two positive numbers
      Given I have entered <input_1> into the calculator
      And I have entered <input_2> into the calculator
      When I press <button>
      Then the result should be <output> on my amazing screen 
      
      Examples:
      | input_1 | input_2 | button| output|
      | 20 | 30 | add | 50 |
      | 2 | 5 | add | 7 |
      | 0 | 40 | add | 40 |
      | 4 | 50 | add | 54 |
      | 5 | 50 | add | 56 |
      
      
      @something @id:2 
      Scenario: Cucumber Test As a user, I can calculate the sum of two negative numbers
      Given I have entered -1 into the calculator
      And I have entered -3 into the calculator
      When I press add
      Then the result should be -4 on the screen
      
      

       

       

      then submit an updated version of it, with two additionals scenarios

      @REQ_CALC-2496
      Feature: As a user, I can calculate the sum of two numbers
      
      Background:
      Given I have a calculator
      And I have some fingers
      
      
      @id:1 @fast
      Scenario Outline: Cucumber Test As a user, I can calculate the sum of two positive numbers
      Given I have entered <input_1> into the calculator
      And I have entered <input_2> into the calculator
      When I press <button>
      Then the result should be <output> on my amazing screen 
      
      Examples:
      | input_1 | input_2 | button| output|
      | 20 | 30 | add | 50 |
      | 2 | 5 | add | 7 |
      | 0 | 40 | add | 40 |
      | 4 | 50 | add | 54 |
      | 5 | 50 | add | 56 |
      
      
      @something @id:2 
      Scenario: Cucumber Test As a user, I can calculate the sum of two negative numbers
      Given I have entered -1 into the calculator
      And I have entered -3 into the calculator
      When I press add
      Then the result should be -4 on the screen
      
      @id:3 @blabla
      Scenario: Cucumber Test As a user, I can calculate the sum of two negative special numbers
      Given I have entered -1 into the calculator
      And I have entered XXX into the calculator
      When I press add
      Then the result should be YYY on the screen
      
      
      @id:4 @blabla
      Scenario: Cucumber Test As a user, I can calculate the sum of two negative special numbers2
      Given I have entered -1 into the calculator
      And I have entered XXX into the calculator
      When I press add
      Then the result should be YYY on the screen
      

       

      The two scenarios marked with id:3 and id:4 won't be linked to the existing pre-condition created during the first step. besides it, the tests aren't linked to the requirement issue key identified at the top of the feature file.
       

       

      Attachments

        Activity

          People

            pmmr Pedro Rodrigues
            smsf Sergio Freire
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 50 minutes
                6h 50m