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

Behat execution stops if server if overloaded and session is not restarted after switch_window scenario is finished

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      It's hard to replicate this failure, but you can try following:

      1. Init Behat with 5 runs

        php admin/tool/behat/cli/init.php -j=5

      2. Run behat with @_switch_window and ensure it passes

        php admin/tool/behat/cli/run.php --profile="chrome" --tags="@_switch_window"

      3. Run Behat with single run

        php admin/tool/behat/cli/util.php --drop
        php admin/tool/behat/cli/init.php
        

      4. run behat and ensure all browser windows are closed after each scenario is finished and only 1 window is open when scenario starts.

        php admin/tool/behat/cli/run.php --profile="chrome" --tags="@_switch_window"

      Show
      It's hard to replicate this failure, but you can try following: Init Behat with 5 runs php admin/tool/behat/cli/init.php -j=5 Run behat with @_switch_window and ensure it passes php admin/tool/behat/cli/run.php --profile="chrome" --tags="@_switch_window" Run Behat with single run php admin/tool/behat/cli/util.php --drop php admin/tool/behat/cli/init.php run behat and ensure all browser windows are closed after each scenario is finished and only 1 window is open when scenario starts. php admin/tool/behat/cli/run.php --profile="chrome" --tags="@_switch_window"
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      wip-mdl-52932-m

      Description

      Sometimes on nightly execution has stopped at

      [Behat\Mink\Exception\DriverException]                                                                       
      Exception has been thrown in "afterScenario" hook, defined in behat_hooks::after_scenario_switchwindow()     Could not open connection  
      

      It will be nice to handle the case gracefully rather then behat execution being crashing.

        Attachments

          Activity

            People

            Assignee:
            rajeshtaneja Rajesh Taneja
            Reporter:
            rajeshtaneja Rajesh Taneja
            Peer reviewer:
            David Monllaó
            Integrator:
            Dan Poltawski
            Tester:
            Adrian Greeve
            Participants:
            Component watchers:
            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:
              14/Mar/16