Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401]

Grading methods steps definitions.

Copyright: 2013 David MonllaĆ³
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 177 lines (8 kb)
Included or required: 1 time
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