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

When importing a feature file, the Precondition Summary is not updated when the Background is tagged with the Precondition issue key

    XporterXMLWordPrintable

Details

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

    • UNCOVERED

    Description

      Context:

      1. Import a feature file such as the one below:
        Feature: Start
        
            Background: Test Background 1
                Given the URL of the web portal was opened in the desktop browser
                And the user is logged out
        
            Scenario: Test Case 1
                When the "Start" page is displayed
                Then the content of the start page should be displayed correctly
        
      2. A Test issue and a Precondition issue are created.
      3. Modify the file as seen below, and then re-import it:
        Feature: Start
        
            Background: Test Background 1 - Change
                Given the URL of the web portal was opened in the desktop browser
                And the user is logged out
                And the user VU logs in
        
            Scenario: Test Case 1
                When the "Start" page is displayed
                Then the content of the start page should be displayed correctly
        
      4. The Precondition issue will be updated as follows:
        • The Summary will be modified to reflect the change
        • The Precondition definition will be modified to reflect the change

      Steps to reproduce:

      1. Modify the feature file and tag the Precondition issue with its issue key (as seen below), and import it again:
        Feature: Start
        
            Background: Test Background 1 - Changed again
                #@PRECOND_ABC-123
                Given the URL of the web portal was opened in the desktop browser
                And the user is logged out
                And the user VU logs in
                And the user is on the start page
        
            Scenario: Test Case 1
                When the "Start" page is displayed
                Then the content of the start page should be displayed correctly
        

      Expected result:

      • Both the Summary and the Precondition definition should be updated again, as this is the behavior seen in Xray DC
      • If there are multiple Precondition issues (as seen below), all should have their Summary and Precondition definition modified (they all should use the same Summary, as this is the behavior seen in Xray DC)
        Feature: Start
        
            Background: Test Background 1 - Changed again
                #@PRECOND_ABC-123
                Given the URL of the web portal was opened in the desktop browser
                And the user is logged out
                #@PRECOND_ABC-456
                And the user VU logs in
                And the user is on the start page
        
            Scenario: Test Case 1
                When the "Start" page is displayed
                Then the content of the start page should be displayed correctly
        

      Actual result:

      • If the Precondition issue is tagged with its issue key, only the Precondition defintion is modified. The Summary is not being changed.

      Attachments

        Issue Links

          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: