without navigation block in boost it is not easy to navigation between gradebook sections
'3' => '3',
'4' => '4',
'5' => '5')));
- $temp->add(new admin_setting_configselect('grade_navmethod', new lang_string('navmethod', 'grades'), null, 0,
+ $temp->add(new admin_setting_configselect('grade_navmethod', new lang_string('navmethod', 'grades'), null,
+ GRADE_NAVMETHOD_TABS,
array(GRADE_NAVMETHOD_DROPDOWN => new lang_string('dropdown', 'grades'),
GRADE_NAVMETHOD_TABS => new lang_string('tabs', 'grades'),
GRADE_NAVMETHOD_COMBO => new lang_string('combo', 'grades'))));
@javascript
Scenario: Export grades as text
- When I set the field "Grade report" to "Plain text file"
+ When I follow "Export"
+ And I follow "Plain text file"
And I expand all fieldsets
And I click on "Course total" "checkbox"
And I set the field "Grade export decimal points" to "1"
@javascript
Scenario: Export grades as text using real
- When I set the field "Grade report" to "Plain text file"
+ When I follow "Export"
+ And I follow "Plain text file"
And I expand all fieldsets
And I set the following fields to these values:
| Real | 1 |
@javascript
Scenario: Export grades as text using percentages and letters
- When I set the field "Grade report" to "Plain text file"
+ When I follow "Export"
+ And I follow "Plain text file"
And I set the following fields to these values:
| Percentage | 1 |
| Letter | 1 |
@javascript
Scenario: Export grades as text using real, percentages and letters
- When I set the field "Grade report" to "Plain text file"
+ When I follow "Export"
+ And I follow "Plain text file"
And I set the following fields to these values:
| Real | 1 |
| Percentage | 1 |
And I click on "Hide" "link" in the "Test assignment name 2" activity
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I select "Grader report" from the "Grade report" singleselect
And I should see "Test assignment name 1"
And I should see "Test assignment name 2"
And I should see "Course total"
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I select "Grader report" from the "Grade report" singleselect
And I should see "Test assignment name 1"
And I should see "Test assignment name 2"
And I should see "Course total"
@javascript
Scenario: I can update grades, add feedback and exclude grades.
- Given I select "Single view" from the "Grade report" singleselect
+ Given I follow "Single view"
And I select "Student 4" from the "Select user..." singleselect
And I set the field "Override for Test assignment one" to "1"
When I set the following fields to these values:
And I log in as "teacher2"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I click on "Single view" "option"
+ And I follow "Single view"
And I click on "Student 4" "option"
And the "Exclude for Test assignment one" "checkbox" should be disabled
And the "Override for Test assignment one" "checkbox" should be enabled
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I select "User report" from the "Grade report" singleselect
+ And I follow "User report"
And I select "All users (0)" from the "Select all or one user" singleselect
Then I should see "No students enrolled in this course yet"
| Aggregation | Natural |
| Include outcomes in aggregation | 1 |
| Exclude empty grades | 0 |
- And I follow "Grader report"
+ And I follow "View"
And I give the grade "Excellent" to the user "Student 1" for the grade item "Test outcome item one"
And I press "Save changes"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I set the following settings for grade item "Test outcome item one":
| Weight adjusted | 1 |
| aggregationcoef2 | 100 |
- And I follow "Grader report"
+ And I follow "View"
And I give the grade "Excellent" to the user "Student 1" for the grade item "Test outcome item one"
And I press "Save changes"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I set the field "Show contribution to course total" to "Show"
And I set the field "Show weightings" to "Show"
And I press "Save changes"
- And I select "User report" from the "Grade report" singleselect
+ And I follow "User report"
And I select "Myself" from the "View report as" singleselect
And I select "Student 1" from the "Select all or one user" singleselect
And the following should exist in the "user-grade" table:
| Item name | Manual item 3 |
| Grade category | Sub category 3 |
And I press "Save changes"
- And I follow "Grader report"
+ And I follow "View"
And I give the grade "60.00" to the user "Student 1" for the grade item "Manual item 1"
And I give the grade "20.00" to the user "Student 1" for the grade item "Manual item 2"
And I give the grade "40.00" to the user "Student 1" for the grade item "Manual item 3"
| Category name | Sub sub category 1 |
| Parent category | Sub category 3 |
And I press "Save changes"
- And I follow "Grader report"
+ And I follow "View"
And I should see "270.00 (24.77 %)" in the ".course" "css_element"
@javascript
Scenario: Natural aggregation from the setup screen
- And I select "Gradebook setup" from the "Grade report" singleselect
+ And I follow "Setup"
And I set the following settings for grade item "Course 1":
| Aggregation | Natural |
And I set the following settings for grade item "Sub category 1":
| Aggregation | Natural |
| Exclude empty grades | 0 |
And I turn editing mode off
- And I select "Gradebook setup" from the "Grade report" singleselect
+ And I follow "Setup"
And I set the field "Override weight of Test assignment one" to "1"
And I set the field "Weight of Test assignment one" to "0"
And I set the field "Override weight of Test assignment six" to "1"
And I set the field "Show weightings" to "Show"
And I press "Save changes"
Then I should see "75.00 (16.85 %)" in the ".course" "css_element"
- And I select "User report" from the "Grade report" singleselect
+ And I follow "User report"
And I select "Myself" from the "View report as" singleselect
And I select "Student 1" from the "Select all or one user" singleselect
And the following should exist in the "user-grade" table:
| grade item 1 | gi1 |
And I set the following settings for grade item "Calc cat":
| Maximum grade | 50 |
- And I follow "Grader report"
+ And I follow "View"
And I turn editing mode on
And I give the grade "75.00" to the user "Student 1" for the grade item "grade item 1"
And I press "Save changes"
| grade item 1 | gi1 |
And I set the following settings for grade item "Calc cat":
| Maximum grade | 50 |
- And I follow "Grader report"
- And I turn editing mode on
+ And I follow "View"
+ And I press "Turn editing on"
And I give the grade "75.00" to the user "Student 1" for the grade item "grade item 1"
And I press "Save changes"
And I follow "User report"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I set the following settings for grade item "Calc cat":
| Maximum grade | 40 |
+ And I follow "View"
And I follow "Grader report"
And I give the grade "65.00" to the user "Student 2" for the grade item "grade item 1"
And I press "Save changes"
And I set the following fields to these values:
| Min and max grades used in calculation | Initial min and max grades |
And I press "Save changes"
- And I follow "Grader report"
- And I turn editing mode on
+ And I press "Turn editing on"
And I give the grade "75.00" to the user "Student 1" for the grade item "grade item 1"
And I press "Save changes"
And I follow "User report"
And I set the following settings for grade item "calc item":
| Rescale existing grades | No |
| Maximum grade | 40 |
+ And I follow "View"
And I follow "Grader report"
And I give the grade "65.00" to the user "Student 2" for the grade item "grade item 1"
And I press "Save changes"
| grade item 1 | gi1 |
And I set the following settings for grade item "Calc cat":
| Maximum grade | 50 |
- And I follow "Grader report"
And I turn editing mode on
And I give the grade "75.00" to the user "Student 1" for the grade item "grade item 1"
And I press "Save changes"
| grade item 1 | gi1 |
And I set the following settings for grade item "Calc cat":
| Maximum grade | 50 |
+ And I follow "View"
And I follow "Grader report"
- And I turn editing mode on
+ And I press "Turn editing on"
And I give the grade "75.00" to the user "Student 1" for the grade item "grade item 1"
And I press "Save changes"
And I follow "User report"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I set the following settings for grade item "Calc cat":
| Maximum grade | 40 |
+ And I follow "View"
And I follow "Grader report"
And I give the grade "65.00" to the user "Student 2" for the grade item "grade item 1"
And I press "Save changes"
| Min and max grades used in calculation | Initial min and max grades |
And I press "Save changes"
And I follow "Grader report"
- And I turn editing mode on
+ And I press "Turn editing on"
And I give the grade "75.00" to the user "Student 1" for the grade item "grade item 1"
And I press "Save changes"
And I follow "User report"
And I set the following settings for grade item "calc item":
| Rescale existing grades | No |
| Maximum grade | 40 |
+ And I follow "View"
And I follow "Grader report"
And I give the grade "65.00" to the user "Student 2" for the grade item "grade item 1"
And I press "Save changes"
And I set the field "Show weightings" to "Show"
And I set the field "Show contribution to course total" to "Show"
And I press "Save changes"
- And I set the field "Grade report" to "Gradebook setup"
+ And I follow "Setup"
And I press "Add category"
And I set the field "Category name" to "Sub category"
And I press "Save changes"
Scenario: Mean of grades aggregation
And I set the following settings for grade item "Course 1":
| Aggregation | Mean of grades |
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
| Item weight | 1.0 |
And I set the following settings for grade item "Sub category":
| Item weight | 1.0 |
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
| Aggregation | Simple weighted mean of grades |
And I set the following settings for grade item "Test assignment three":
| Extra credit | 1 |
- And I set the field "Grade report" to "User report"
+ And I follow "View"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
| Aggregation | Mean of grades (with extra credits) |
And I set the following settings for grade item "Test assignment three":
| Extra credit weight | 1.0 |
- And I set the field "Grade report" to "User report"
+ And I follow "View"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
Scenario: Median of grades aggregation
And I set the following settings for grade item "Course 1":
| Aggregation | Median of grades |
- And I set the field "Grade report" to "User report"
+ And I follow "View"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
Scenario: Lowest grade aggregation
And I set the following settings for grade item "Course 1":
| Aggregation | Lowest grade |
- And I set the field "Grade report" to "User report"
+ And I follow "View"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
Scenario: Highest grade aggregation
And I set the following settings for grade item "Course 1":
| Aggregation | Highest grade |
- And I set the field "Grade report" to "User report"
+ And I follow "View"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
Scenario: Mode of grades aggregation
And I set the following settings for grade item "Course 1":
| Aggregation | Mode of grades |
- And I set the field "Grade report" to "User report"
+ And I follow "View"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
| Aggregation | Weighted mean of grades |
And I set the following settings for grade item "Test assignment three":
| Extra credit | 1 |
- And I set the field "Grade report" to "User report"
+ And I follow "View"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
Scenario: View user report with natural aggregation
And I set the following settings for grade item "Test assignment three":
| Extra credit | 1 |
- And I set the field "Grade report" to "User report"
+ And I follow "View"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
And I press "Save changes"
Scenario Outline: The contribution of extra credit items is normalised
- Given I set the field "Grade report" to "Gradebook setup"
+ Given I follow "Setup"
When I set the following settings for grade item "Course 1":
| Aggregation | <aggregation> |
And I set the following settings for grade item "Manual item 2":
| Extra credit | 1 |
And I set the following settings for grade item "Manual item 4":
| Extra credit | 1 |
- And I set the field "Grade report" to "User report"
+ And I follow "View"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Contribution to course total |
And I press "Save changes"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I select "User report" from the "Grade report" singleselect
+ And I follow "User report"
And I select "Myself" from the "View report as" singleselect
And I select "Student 1" from the "Select all or one user" singleselect
Then the following should exist in the "user-grade" table:
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I select "Course grade settings" from the "Grade report" singleselect
+ And I follow "Setup"
+ And I follow "Course grade settings"
And I set the following fields to these values:
| Grade display type | Letter |
And I press "Save changes"
| id_override | 1 |
| id_gradeboundary10 | 57 |
And I press "Save changes"
- And I select "Grader report" from the "Grade report" singleselect
+ And I follow "View"
And I press "Turn editing on"
And I give the grade "57" to the user "Student 1" for the grade item "Test assignment one"
And I press "Save changes"
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I select "Course grade settings" from the "Grade report" singleselect
+ And I follow "Setup"
+ And I follow "Course grade settings"
And I set the following fields to these values:
| Grade display type | Letter |
And I press "Save changes"
| id_override | 1 |
| id_gradeboundary10 | 57 |
And I press "Save changes"
- And I select "Grader report" from the "Grade report" singleselect
+ And I follow "View"
And I press "Turn editing on"
And I give the grade "57" to the user "Student 1" for the grade item "Test assignment one"
And I press "Save changes"
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I set the field "Grade report" to "Gradebook setup"
+ And I follow "Setup"
And I set the following settings for grade item "Test assignment four (extra)":
| Extra credit | 1 |
And I set the following settings for grade item "Test assignment five (extra)":
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I set the field "Grade report" to "Gradebook setup"
+ And I follow "Setup"
And I set the following settings for grade item "Test assignment four (extra)":
| Extra credit | 1 |
And I set the following settings for grade item "Test assignment five (extra)":
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)"
And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)"
And I press "Save changes"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
And I set the field "Select all or one user" to "Student 1"
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I set the field "Grade report" to "Gradebook setup"
+ And I follow "Setup"
@javascript
Scenario: Setting all weights in a category to exactly one hundred in total.
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I set the field "Grade report" to "Gradebook setup"
+ And I follow "Setup"
@javascript
Scenario: Grade items weights are normalised when all grade item weights are overridden (sum exactly 100). Extra credit is set to zero (before the fix 20150619).
And I set the field "Show weightings" to "Show"
And I set the field "Show contribution to course total" to "Show"
And I press "Save changes"
- And I follow "Grader report"
And I turn editing mode on
Scenario: Test displaying scales in gradebook in aggregation method Natural
| Test assignment one | C | F–A | 50.00 % | 60.00 % |
| Sub category 1 total | 3.00 | 0–5 | 60.00 % | - |
| Course total | 3.00 | 0–5 | 60.00 % | - |
- And I select "Gradebook setup" from the "Grade report" singleselect
+ And I follow "Setup"
And the following should exist in the "grade_edit_tree_table" table:
| Name | Max grade |
| Test assignment one | 5.00 |
| Test assignment one | C | F–A | 50.00 % | <contrib3> |
| Sub category (<aggregation>) total<aggregation>. | 3.00 | 1–5 | 50.00 % | - |
| Course total<aggregation>. | <coursetotal3> | 0–100 | <courseperc3> | - |
- And I select "Gradebook setup" from the "Grade report" singleselect
+ And I follow "Setup"
And the following should exist in the "grade_edit_tree_table" table:
| Name | Max grade |
| Test assignment one | A (5) |
And I set the field "Show weightings" to "Show"
And I set the field "Show contribution to course total" to "Show"
And I press "Save changes"
- And I follow "Grader report"
And I turn editing mode on
Scenario: Test displaying single item scales in gradebook in aggregation method Natural
| Test assignment one | - | Ace!–Ace! | - |
| Sub category 1 total| - | 0–1 | - |
| Course total | - | 0–1 | - |
- And I select "Gradebook setup" from the "jump" singleselect
+ And I follow "Setup"
And the following should exist in the "grade_edit_tree_table" table:
| Name | Max grade |
| Test assignment one | 1.00 |
| Test assignment one | Ace! | Ace!–Ace! | <contrib1> |
| Sub category (<aggregation>) total<aggregation>. | <cattotal1> | 0–100 | - |
| Course total<aggregation>. | <coursetotal1> | 0–100 | - |
- And I select "Gradebook setup" from the "jump" singleselect
+ And I follow "Setup"
And the following should exist in the "grade_edit_tree_table" table:
| Name | Max grade |
| Test assignment one | Ace! (1) |
And I press "Save changes"
Scenario: Grade a grade item and ensure the results display correctly in the gradebook
- When I select "User report" from the "Grade report" singleselect
- And the "Grade report" select box should contain "Grader report"
- And the "Grade report" select box should contain "Outcomes report"
- And the "Grade report" select box should contain "User report"
+ When I follow "User report"
+ And "Grader report" "link" should exist
+ And "Outcomes report" "link" should exist
+ And "Grader report" "link" should exist
And the "Select all or one user" select box should contain "All users (1)"
And I log out
And I log in as "student1"
And "Course 1" row "Grade" column of "overview-grade" table should not contain "90.00"
Scenario: We can add a weighting to a grade item and it is displayed properly in the user report
- When I select "Gradebook setup" from the "Grade report" singleselect
+ When I follow "Setup"
And I set the following settings for grade item "Course 1":
| Aggregation | Weighted mean of grades |
And I set the field "Extra credit value for Test assignment name" to "0.72"
And I press "Save changes"
- And I select "User report" from the "Grade report" singleselect
+ And I follow "View"
+ And I follow "User report"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I set the following fields to these values:
| Show weightings | Show |
And I log in as "student1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
Then I should see "50"
And I should see "Great job! Lol, not really."
And I log in as "student1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
- And I set the field "Grade report" to "User report"
+ And I follow "User report"
Then I should see "50"
And I should see "Great job! Lol, not really."