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

whenever exporting Cucumber features, the Feature element must always have a definition

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Done
    • R3.6.0
    • 4.2.3
    • Cucumber
    • None
    • XRAY 2020 Sprint 8
    • OK

    Description

      Whenever exporting Cucumber features, the Feature element must always have a definition. Normally this is obtained from the linked covered issue (e.g. story/requirement).

      However, if Tests are not linked to a story, the "Feature:" element will be empty producing an invalid .feature file.

      There we should have a default feature name (e.g. "default"). 

       

       

      Feature:  <some_text>
      
      Scenario Outline:
      	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 the 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    | 55     |
       

       

      Attachments

        Issue Links

          Activity

            People

              dpca Diamantino Campos
              smsf Sergio Freire
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Time Spent - 2 days, 1 hour, 45 minutes Remaining Estimate - 2 hours, 30 minutes
                  2h 30m
                  Logged:
                  Time Spent - 2 days, 1 hour, 45 minutes Remaining Estimate - 2 hours, 30 minutes
                  2d 1h 45m