Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Behat grade related step definition overrides for the Classic theme. More...
Public Member Functions | |
getSession ($name=null) | |
Returns the Mink session. | |
gradebook_calculations_for_the_course_are_frozen_at_version ($coursename, $version) | |
Step allowing to test before-the-fix behaviour of the gradebook. | |
i_click_on_in_search_widget (string $needle, string $haystack) | |
Clicks on an option from the specified search widget in the current gradebook page. | |
i_confirm_in_search_within_the_gradebook_widget_does_not_exist ($needle, $haystack) | |
Confirm if a value is not within the search widget within the gradebook. | |
i_confirm_in_search_within_the_gradebook_widget_exists ($needle, $haystack) | |
Confirm if a value is within the search widget within the gradebook. | |
i_duplicate_the_grade_item (string $gradeitem) | |
Duplicates a grade item or category. | |
i_give_the_grade ($grade, $userfullname, $itemname) | |
Enters a grade via the gradebook for a specific grade item and user when viewing the 'Grader report' with editing mode turned on. | |
i_hide_the_grade_item (string $gradeitem, string $type, string $page) | |
Hids a grade item or category on gradebook setup or grader page. | |
i_navigate_to_export_page_in_the_course_gradebook ($gradeexportoption) | |
Navigates to the exports page in the course gradebook and selects the specified export type from the grade exports navigation selector. | |
i_navigate_to_import_page_in_the_course_gradebook ($gradeimportoption) | |
Navigates to the imports page in the course gradebook and selects the specified import type from the grade imports navigation selector. | |
i_navigate_to_in_the_course_gradebook ($gradepath) | |
Navigates to the course gradebook and selects a specified item from the grade navigation tabs. | |
i_reset_weights_for_grade_category (string $gradeitem) | |
Resets the weights for the grade category. | |
i_set_calculation_for_grade_category_with_idnumbers (string $calculation, string $gradeitem, TableNode $data) | |
Sets a calculated manual grade category total. | |
i_set_calculation_for_grade_item_with_idnumbers ($calculation, $gradeitem, TableNode $data) | |
Sets a calculated manual grade item. | |
i_set_the_following_settings_for_grade_item (string $gradeitem, string $type, string $page, TableNode $data) | |
Changes the settings of a grade item or category or the course. | |
Public Attributes | |
const | PAGE_READY_JS |
The JS code to check that the page is ready. | |
Protected Member Functions | |
select_in_gradebook_navigation_selector (string $path, string $formid) | |
Select a given option from a navigation URL selector in the gradebook. | |
select_in_gradebook_tabs ($gradepath) | |
Select the tab in the gradebook. | |
Behat grade related step definition overrides for the Classic theme.
|
inherited |
Returns the Mink session.
string | null | $name | name of the session OR active session will be used |
Behat\Mink\Session |
Implemented in behat_form_field.
|
inherited |
Step allowing to test before-the-fix behaviour of the gradebook.
@Given /^gradebook calculations for the course "(?P<coursename_string>(?:[^"]|::")*)" are frozen at version "(?P<version_string>(?:[^"]|")*)"$/
string | $coursename | |
string | $version |
|
inherited |
Clicks on an option from the specified search widget in the current gradebook page.
Examples:
@Given /^I click on "(?P<needle>(?:[^"]|::")*)" in the "(?P<haystack>(?:[^"]|")*)" search widget$/
string | $needle | The value to search for. |
string | $haystack | The type of the search widget. |
|
inherited |
Confirm if a value is not within the search widget within the gradebook.
Examples:
@Given /^I confirm "(?P<needle>(?:[^"]|::")*)" in "(?P<haystack>(?:[^"]|")*)" search within the gradebook widget does not exist$/
string | $needle | The value to search for. |
string | $haystack | The type of the search widget. |
|
inherited |
Confirm if a value is within the search widget within the gradebook.
Examples:
@Given /^I confirm "(?P<needle>(?:[^"]|::")*)" in "(?P<haystack>(?:[^"]|")*)" search within the gradebook widget exists$/
string | $needle | The value to search for. |
string | $haystack | The type of the search widget. |
|
inherited |
Duplicates a grade item or category.
Teacher must be on the grade setup page.
@Given /^I duplicate the grade item "(?P<grade_item_string>(?:[^"]|::")*)"$/
string | $gradeitem |
|
inherited |
Enters a grade via the gradebook for a specific grade item and user when viewing the 'Grader report' with editing mode turned on.
@Given /^I give the grade "(?P<grade_number>(?:[^"]|::")*)" to the user "(?P<username_string>(?:[^"]|")*)" for the grade item "(?P<grade_activity_string>(?:[^"]|::")*)"$/
int | $grade | |
string | $userfullname | the user's fullname as returned by fullname() |
string | $itemname |
|
inherited |
Hids a grade item or category on gradebook setup or grader page.
Teacher must be on the grade setup page.
@Given /^I hide the grade item "(?P<grade_item_string>(?:[^"]|::")*)" of type "([^"]*)" on "([^"]*)" page$/
string | $gradeitem | |
string | $type | |
string | $page |
|
inherited |
Navigates to the exports page in the course gradebook and selects the specified export type from the grade exports navigation selector.
Examples:
@Given /^I navigate to "(?P<exportoption_string>(?:[^"]|::")*)" export page in the course gradebook$/
string | $gradeexportoption | The name of an existing grade export option. |
|
inherited |
Navigates to the imports page in the course gradebook and selects the specified import type from the grade imports navigation selector.
Examples:
@Given /^I navigate to "(?P<importoption_string>(?:[^"]|::")*)" import page in the course gradebook$/
string | $gradeimportoption | The name of an existing grade import option. |
behat_theme_classic_behat_grade::i_navigate_to_in_the_course_gradebook | ( | $gradepath | ) |
Navigates to the course gradebook and selects a specified item from the grade navigation tabs.
string | $gradepath |
Reimplemented from behat_grade.
|
inherited |
Resets the weights for the grade category.
Teacher must be on the grade setup page.
@Given /^I reset weights for grade category "(?P<grade_item_string>(?:[^"]|::")*)"$/
string | $gradeitem |
|
inherited |
Sets a calculated manual grade category total.
Needs a table with item name - idnumber relation. The step requires you to be in the 'Gradebook setup' page.
@Given /^I set "(?P<calculation_string>(?:[^"]|::")*)" calculation for grade category "(?P<grade_item_string>(?:[^"]|")*)" with idnumbers:$/
string | $calculation | The calculation. |
string | $gradeitem | The grade item name. |
TableNode | $data | The grade item name - idnumbers relation. |
|
inherited |
Sets a calculated manual grade item.
Needs a table with item name - idnumber relation. The step requires you to be in the 'Gradebook setup' page.
@Given /^I set "(?P<calculation_string>(?:[^"]|::")*)" calculation for grade item "(?P<grade_item_string>(?:[^"]|")*)" with idnumbers:$/
string | $calculation | The calculation. |
string | $gradeitem | The grade item name. |
TableNode | $TableNode | The grade item name - idnumbers relation. |
|
inherited |
Changes the settings of a grade item or category or the course.
Teacher must be either on the grade setup page or on the Grader report page with editing mode turned on.
@Given /^I set the following settings for grade item "(?P<grade_item_string>(?:[^"]|::")*)" of type "([^"]*)" on "([^"]*)" page:$/
string | $gradeitem | |
string | $type | |
string | $page | |
TableNode | $data |
|
protectedinherited |
Select a given option from a navigation URL selector in the gradebook.
We must be on one of the gradebook pages already.
string | $path | The string path that is used to identify an item within the navigation selector. If the path has two items (ex. "More > Grade letters"), the first item ("More") will be used to identify an option group in the navigation selector, while the second ("Grade letters") will be used to identify an option within that option group. Otherwise, a single item in a path (ex. "Scales") will be used to identify an option in the navigation selector regardless of the option group. |
string | $formid | The ID of the form element which contains the navigation URL selector element. |
|
protectedinherited |
Select the tab in the gradebook.
We must be on one of the gradebook pages already.
string | $gradepath | examples: "View > User report", "Letters > View", "Scales" |
|
inherited |
The JS code to check that the page is ready.
The document must be complete and either M.util.pending_js must be empty, or it must not be defined at all.