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

Provide option for behat to output screenshots for every stepdumps

XMLWordPrintable

    • MOODLE_30_STABLE
    • wip-mdl-51372
    • Hide
      1. Run Behat with new formatter:

        vendor/bin/behat --config PATH_TO_BEHAT/behat.yml --format moodle_progress,moodle_screenshot --out ',/path/to/save/screenshot'
        

        ## Confirm that screenshots were saved in the appropriate location

      Show
      Run Behat with new formatter: vendor/bin/behat --config PATH_TO_BEHAT/behat.yml --format moodle_progress,moodle_screenshot --out ',/path/to/save/screenshot' ##  Confirm that screenshots were saved in the appropriate location

      Raj and I have used this on many occasions.
      Ideally this should be in a (new) BeforeStep. An AfterStep is the wrong place IMO.
      We also need to modify get_faildump_filename() to store a $stepno which is increased on each screenshot. The reason here is that steps with the same step will ovewrite one another - note, we may decide to reset this on each Feature.

            rajeshtaneja Rajesh Taneja
            dobedobedoh Andrew Lyons
            John Okely John Okely
            Dan Poltawski Dan Poltawski
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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