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.

Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

Grading methods steps definitions.

Copyright: 2013 David MonllaĆ³
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 175 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class


Class: behat_grading  - X-Ref

Generic grading methods step definitions.

i_go_to_advanced_grading_page($activityname)   X-Ref
Goes to the selected advanced grading page. You should be in the course page when this step begins.

param: string $activityname

i_go_to_advanced_grading_definition_page($activityname)   X-Ref
Goes to the selected advanced grading definition page. You should be in the course page when this step begins.

param: string $activityname

i_go_to_activity_advanced_grading_page($userfullname, $activityname)   X-Ref
Goes to the student's advanced grading page.

param: string $userfullname The user full name including firstname and lastname.
param: string $activityname The activity name

i_publish_grading_form_definition_as_a_public_template($activityname)   X-Ref
Publishes current activity grading defined form as a public template.

param: string $activityname

i_set_activity_to_use_grading_form($activityname, $templatename)   X-Ref
Sets a previously created grading form as the activity grading form.

param: string $activityname
param: string $templatename

i_save_the_advanced_grading_form()   X-Ref
Saves the current page advanced grading form.


i_complete_the_advanced_grading_form_with_these_values(TableNode $data)   X-Ref
Grades an activity using advanced grading. Note the grade is set by other steps, depending on the grading method.

param: TableNode $data