Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

Defines 1 class


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