Uploaded image for project: 'Xray for Jenkins'
  1. Xray for Jenkins
  2. XRAYJENKINS-52

whenever importing cucumber tests from scenarios, Tests are not correctly identified if feature has same name

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • Jenkins R2.1.1
    • None
    • OK

    Description

      whenever importing cucumber tests from scenarios, Tests are not correctly identified if feature has same name.

      The first found Test is updated, even if belongs to a completely different feature file (although having a similar name, but stored on a different location).

       

      (hard to reproduce; see comments below)

       

      How to reproduce:

      1. import 1 Test from feature/sample.feature
      2. import another Test from feature/core/sample.feature

       

      What is expected:

      1. Two different Tests would be created
        1. first one with "id:x" and "sample.feature" labels
        2. second one with "id:y" and "core/sample.feature" labels

      What happens:

      • the first Test is found and id:y will be added to it (wrongly) and "sample.feature" will be added to it (wrongly) and steps will be overwritten based on the second test (wrongly).. summary will also wrongly be overwritten

       

       

      See attachment example.zip (just rename core/example.feature to sample.feature)

       

       

      Attachments

        1. example.zip
          3 kB
        2. image-2019-02-08-15-03-11-561.png
          image-2019-02-08-15-03-11-561.png
          349 kB
        3. log.zip
          1.35 MB

        Issue Links

          Activity

            People

              pmmr Pedro Rodrigues
              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 - 1 day, 7 hours, 14 minutes Remaining Estimate - 11 minutes
                  11m
                  Logged:
                  Time Spent - 1 day, 7 hours, 14 minutes Remaining Estimate - 11 minutes
                  1d 7h 14m