Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

Grading methods steps definitions.

Copyright: 2013 David MonllaĆ³
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 176 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