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

Behat Random fail - completion_condition_require_status.feature and editing_section_headings.feature

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      Run following for an hour and ensure it don't fail

      FYI: Update path in following commnads

      while [ $? -eq 0 ]; do vendor/bin/behat --config /home/rajesh/moodles/m/moodledata_behat/mysql/behat/behat.yml -p phantomjs-selenium /var/www/html/m/mod/quiz/tests/behat/editing_section_headings.feature:127; done
      

      while [ $? -eq 0 ]; do vendor/bin/behat --config /home/rajesh/moodles/m/moodledata_behat/mysql/behat/behat.yml -p phantomjs-selenium /var/www/html/m/mod/scorm/tests/behat/completion_condition_require_status.feature; done
      

      Show
      Run following for an hour and ensure it don't fail FYI: Update path in following commnads while [ $? -eq 0 ]; do vendor/bin/behat --config /home/rajesh/moodles/m/moodledata_behat/mysql/behat/behat.yml -p phantomjs-selenium /var/www/html/m/mod/quiz/tests/behat/editing_section_headings.feature:127; done while [ $? -eq 0 ]; do vendor/bin/behat --config /home/rajesh/moodles/m/moodledata_behat/mysql/behat/behat.yml -p phantomjs-selenium /var/www/html/m/mod/scorm/tests/behat/completion_condition_require_status.feature; done
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull Master Branch:
      wip-mdl-57595

      Description

      There has been 2 failures observed often on nightly:

      Single run

      001 Scenario: Test completion with a single sco completion. # /store/moodle/behat_whole_suite_m/mod/scorm/tests/behat/completion_condition_require_status.feature:20
            And I log in as "teacher1"                            # /store/moodle/behat_whole_suite_m/mod/scorm/tests/behat/completion_condition_require_status.feature:51
              Field matching locator "'Username'" not found.
      002 Scenario: Test completion with all scos # /store/moodle/behat_whole_suite_m/mod/scorm/tests/behat/completion_condition_require_status.feature:56
            And I log out                         # /store/moodle/behat_whole_suite_m/mod/scorm/tests/behat/completion_condition_require_status.feature:187
              exception 'WebDriver\Exception\StaleElementReference' with message 'Element not found in the cache - perhaps the page has changed since it was looked 
      

      Phantomjs

      002 Scenario: Remove a section         # /store/moodle/behat_whole_suite_m_phantom/mod/quiz/tests/behat/editing_section_headings.feature:127
            And I should not see "Heading 2" # /store/moodle/behat_whole_suite_m_phantom/mod/quiz/tests/behat/editing_section_headings.feature:154
              Javascript code and/or AJAX requests are not ready after 10 seconds. There is a Javascript error or the code is extremely slow. (Exception)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Mar/17