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

Behat - add an option to take page dumps

    XMLWordPrintable

Details

    • MOODLE_27_STABLE
    • MOODLE_26_STABLE
    • MDL-43911-master
    • 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
    • 5
    • 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

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            David Monllaó David Monllaó
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              13/Jan/14