Steps definitions for marking guides.
Copyright: | 2015 Jun Pataleta |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 216 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file lib/behat/behat_base.php |
behat_gradingform_guide:: (4 methods):
i_define_the_following_marking_guide()
i_define_the_following_frequently_used_comments()
i_grade_by_filling_the_marking_guide_with()
set_guide_field_value()
Class: behat_gradingform_guide - X-Ref
Steps definitions to help with marking guides.i_define_the_following_marking_guide(TableNode $guide) X-Ref |
Defines the marking guide with the provided data, following marking guide's definition grid cells. This method fills the marking guide of the marking guide definition form; the provided TableNode should contain one row for each criterion and each cell of the row should contain: # Criterion name, a.k.a. shortname # Description for students # Description for markers # Max score Works with both JS and non-JS. param: TableNode $guide |
i_define_the_following_frequently_used_comments(TableNode $commentstable) X-Ref |
Defines the marking guide with the provided data, following marking guide's definition grid cells. This method fills the table of frequently used comments of the marking guide definition form. The provided TableNode should contain one row for each frequently used comment. Each row contains: # Comment Works with both JS and non-JS. param: TableNode $commentstable |
i_grade_by_filling_the_marking_guide_with(TableNode $guide) X-Ref |
Performs grading of the student by filling out the marking guide. Set one line per criterion and for each criterion set "| Criterion name | Points | Remark |". param: TableNode $guide return: void |
set_guide_field_value($name, $value, $visible = false) X-Ref |
Makes a hidden marking guide field visible (if necessary) and sets a value on it. param: string $name The name of the field param: string $value The value to set param: bool $visible return: void |