MDL-43911 Behat: Save dumps of the page content to disk on scenario failure

This commit is contained in:
Andrew Nicols 2014-01-29 23:18:15 +08:00
parent c5a229c2f1
commit b954cb004c
2 changed files with 69 additions and 22 deletions

View file

@ -667,9 +667,11 @@ $CFG->admin = 'admin';
// Example:
// $CFG->behat_extraallowedsettings = array('logsql', 'dblogerror');
//
// You can make behat save a screenshot when a scenario fails.
// You can make behat save several dumps when a scenario fails. The dumps currently saved are:
// * a dump of the DOM in it's state at the time of failure; and
// * a screenshot (JavaScript is required for the screenshot functionality, so not all browsers support this option)
// Example:
// $CFG->behat_screenshots_path = '/my/path/to/save/screenshots';
// $CFG->behat_faildump_path = '/my/path/to/save/failure/dumps';
//
//=========================================================================
// 12. DEVELOPER DATA GENERATOR