Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31836

TestLogProvider fails Behat Scenarios when session is not started

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 3.2.x-dev, 2.5.14, 3.1.3
    • None
    • None

    Description

      Example: https://travis-ci.com/github/ezsystems/ezplatform-page-builder/jobs/382755073

      Exception trace:
      
        at /var/www/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php:495
      
       Behat\Mink\Driver\Selenium2Driver->getScreenshot() at /var/www/vendor/behat/mink/src/Session.php:255
      
       Behat\Mink\Session->getScreenshot() at /var/www/vendor/bex/behat-screenshot/src/Bex/Behat/ScreenshotExtension/Service/ScreenshotTaker.php:53
      
       Bex\Behat\ScreenshotExtension\Service\ScreenshotTaker->takeScreenshot() at /var/www/vendor/bex/behat-screenshot/src/Bex/Behat/ScreenshotExtension/Listener/ScreenshotListener.php:83
      
       Bex\Behat\ScreenshotExtension\Listener\ScreenshotListener->takeScreenshot() at /var/www/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:214
      

      When an Exception happens during the AfterScenario part then the whole Behat execution is ended.

      Steps to reproduce:
      1. Run a Behat scenario that:
      a) uses @javascript tag
      b) fails before the Session is started, for example use a Step using our PHP API

      Expected:
      Steps fails, but the tests continue to execute

      Actual:
      Steps fails and the execution stops

      Attachments

        Activity

          People

            Unassigned Unassigned
            marek.nocon@ibexa.co Marek NocoĊ„
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: