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

    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • wip-mdl-52932-m
    • 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"

    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

            rajeshtaneja Rajesh Taneja
            rajeshtaneja Rajesh Taneja
            David Monllaó David Monllaó
            Dan Poltawski Dan Poltawski
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.