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

Provide option for behat to output screenshots for every stepdumps

    XMLWordPrintable

    Details

    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_30_STABLE
    • Pull Master Branch:
      wip-mdl-51372

      Description

      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.

        Attachments

        1. List of files within directory.png
          418 kB
          Andrew Nicols
        2. List of parallel directories.png
          273 kB
          Andrew Nicols

          Issue Links

            Activity

              People

              • Assignee:
                rajeshtaneja Rajesh Taneja
                Reporter:
                dobedobedoh Andrew Nicols
                Peer reviewer:
                John Okely
                Integrator:
                Dan Poltawski
                Participants:
                Component watchers:
                Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: