Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-47710

question/format/gift/tests/behat/import_export.feature fails randomly

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Force the id autoincrement sequence in the mdl_qusetion table to start at 1 and run the qformat gift behat tests.
      2. Force the id autoincrement sequence in the mdl_qusetion table to start at 10000000 and run the qformat gift behat tests.
      Show
      Force the id autoincrement sequence in the mdl_qusetion table to start at 1 and run the qformat gift behat tests. Force the id autoincrement sequence in the mdl_qusetion table to start at 10000000 and run the qformat gift behat tests.
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      As identified in MDL-47497, the gift download test can fail randomly due to randomised id numbers:

      01. Downloaded data was 1579 bytes, expecting 1624
          In step `And following "click here" should download "1624" bytes'. # behat_general::following_should_download_bytes()
          From scenario `import some GIFT questions'.                        # /var/lib/jenkins/moodle/behat_whole_suite_m/question/format/gift/tests/behat/import_export.feature:21
          Of feature `Test importing questions from GIFT format.'.           # /var/lib/jenkins/moodle/behat_whole_suite_m/question/format/gift/tests/behat/import_export.feature
      

      We need to fix that.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              poltawski Dan Poltawski
              Peer reviewer:
              Nobody
              Integrator:
              Dan Poltawski
              Tester:
              Frédéric Massart
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14