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

Behat - add an option to take page dumps

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. git fetch git://github.com/dmonllao/moodle.git MDL-43439_master-testme
      2. git cherry-pick f4a74462a4382026e4327522d981e78aa8e53215
      3. Run `mkdir -p /tmp/chilli` in your shell
      4. Set $CFG->behat_faildump_path = '/tmp/chilli';
      5. Run behat with --tags @MDL-43439
      6. The single scenario you are running SHOULD fail
      7. Open /tmp/chilli
      8. You should find a directory with the timestamp of the behat run - open it
        • Confirm it contains an html file with the name of the failure
      9. You can open this to confirm - I'd suggest moving it to your test site and opening it there because some resources (e.g. CSS/JS) may not open properly otherwise
      Show
      git fetch git://github.com/dmonllao/moodle.git MDL-43439 _master-testme git cherry-pick f4a74462a4382026e4327522d981e78aa8e53215 Run `mkdir -p /tmp/chilli` in your shell Set $CFG->behat_faildump_path = '/tmp/chilli'; Run behat with --tags @ MDL-43439 The single scenario you are running SHOULD fail Open /tmp/chilli You should find a directory with the timestamp of the behat run - open it Confirm it contains an html file with the name of the failure You can open this to confirm - I'd suggest moving it to your test site and opening it there because some resources (e.g. CSS/JS) may not open properly otherwise
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-43911-master
    • Story Points:
      5
    • Sprint:
      FRONTEND Sprint 9

      Description

      Handy when you're trying to track down an issue with xpaths:

      • set behat_contentdump_path
      • run your failing test
      • copy/move the html file produced to your behat site
      • view in your browser
      • inspect the page immediately before it failed

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jan/14