Merge branch 'wip-MDL-57019-fix' of https://github.com/marinaglancy/moodle

This commit is contained in:
Andrew Nicols
2016-11-24 15:09:43 +08:00
51 changed files with 347 additions and 354 deletions
@@ -325,7 +325,7 @@ Feature: Set up contextual data for tests
And I am on site homepage
And I follow "Courses"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
Then I should see "Grade category 1"
And I should see "Grade sub category 2"
@@ -349,9 +349,7 @@ Feature: Set up contextual data for tests
When I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I expand "Setup" node
And I follow "Gradebook setup"
And I go to "Setup > Gradebook setup" in the course gradebook
Then I should see "Test Grade Item 1"
And I follow "Edit Test Grade Item 1"
And I expand all fieldsets
@@ -380,8 +378,7 @@ Feature: Set up contextual data for tests
When I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "Scales"
And I go to "Scales" in the course gradebook
Then I should see "Test Scale 1"
And I should see "Disappointing, Good, Very good, Excellent"
@@ -432,9 +429,7 @@ Feature: Set up contextual data for tests
When I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I expand "Setup" node
And I follow "Gradebook setup"
And I go to "Setup > Gradebook setup" in the course gradebook
Then I should see "Test Outcome Grade Item 1"
And I follow "Edit Test Outcome Grade Item 1"
And the field "Outcome" matches value "Grade outcome 1"
@@ -65,6 +65,6 @@ Feature: Backup user data
And I log out
And I log in as "student1"
And I follow "Course 1"
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "User report" in the course gradebook
Then "Quiz 1" row "Grade" column of "user-grade" table should contain "5"
And "Quiz 1" row "Percentage" column of "user-grade" table should contain "50"
@@ -50,7 +50,7 @@ Feature: The activity results block displays student scores
And I press "Save and return to course"
And I follow "Course 1"
And I should see "Test page name"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment 1"
And I give the grade "80.00" to the user "Student 2" for the grade item "Test assignment 1"
@@ -32,7 +32,7 @@ Feature: The activity results block displays student scores
| Description | Offline text |
| assignsubmission_file_enabled | 0 |
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 2" for the grade item "Test assignment"
@@ -26,8 +26,7 @@ Feature: The activity results block displays student scores as scales
| student5 | C1 | student |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Scales" node in "Grade administration"
And I go to "Scales" in the course gradebook
And I press "Add a new scale"
And I set the following fields to these values:
| Name | My Scale |
@@ -42,7 +41,7 @@ Feature: The activity results block displays student scores as scales
| id_grade_modgrade_type | Scale |
| id_grade_modgrade_scale | My Scale |
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"
@@ -43,8 +43,7 @@ Feature: The activity results block displays student scores as scales
| student6 | G3 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Scales" node in "Grade administration"
And I go to "Scales" in the course gradebook
And I press "Add a new scale"
And I set the following fields to these values:
| Name | My Scale |
@@ -60,7 +59,7 @@ Feature: The activity results block displays student scores as scales
| id_grade_modgrade_scale | My Scale |
| Group mode | Separate groups |
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"
@@ -50,7 +50,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Separate groups |
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
@@ -50,7 +50,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Visible groups |
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
@@ -32,7 +32,7 @@ Feature: The activity results block displays student scores
| Description | Offline text |
| assignsubmission_file_enabled | 0 |
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 2" for the grade item "Test assignment"
@@ -26,8 +26,7 @@ Feature: The activity results block displays student scores as scales
| student5 | C1 | student |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Scales" node in "Grade administration"
And I go to "Scales" in the course gradebook
And I press "Add a new scale"
And I set the following fields to these values:
| Name | My Scale |
@@ -42,7 +41,7 @@ Feature: The activity results block displays student scores as scales
| id_grade_modgrade_type | Scale |
| id_grade_modgrade_scale | My Scale |
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"
@@ -43,8 +43,7 @@ Feature: The activity results block displays student scores as scales
| student6 | G3 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Scales" node in "Grade administration"
And I go to "Scales" in the course gradebook
And I press "Add a new scale"
And I set the following fields to these values:
| Name | My Scale |
@@ -60,7 +59,7 @@ Feature: The activity results block displays student scores as scales
| id_grade_modgrade_scale | My Scale |
| Group mode | Separate groups |
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"
@@ -50,7 +50,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Separate groups |
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
@@ -50,7 +50,7 @@ Feature: The activity results block displays student scores
| assignsubmission_file_enabled | 0 |
| Group mode | Visible groups |
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
+5 -9
View File
@@ -22,15 +22,14 @@ Feature: I need to export grades as text
| assign | C1 | a2 | Test assignment name 2 | Submit your online text | 1 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name"
And I press "Save changes"
@javascript
Scenario: Export grades as text
When I follow "Export"
And I follow "Plain text file"
When I go to "Export > Plain text file" in the course gradebook
And I expand all fieldsets
And I click on "Course total" "checkbox"
And I set the field "Grade export decimal points" to "1"
@@ -42,8 +41,7 @@ Feature: I need to export grades as text
@javascript
Scenario: Export grades as text using real
When I follow "Export"
And I follow "Plain text file"
When I go to "Export > Plain text file" in the course gradebook
And I expand all fieldsets
And I set the following fields to these values:
| Real | 1 |
@@ -54,8 +52,7 @@ Feature: I need to export grades as text
@javascript
Scenario: Export grades as text using percentages and letters
When I follow "Export"
And I follow "Plain text file"
When I go to "Export > Plain text file" in the course gradebook
And I set the following fields to these values:
| Percentage | 1 |
| Letter | 1 |
@@ -68,8 +65,7 @@ Feature: I need to export grades as text
@javascript
Scenario: Export grades as text using real, percentages and letters
When I follow "Export"
And I follow "Plain text file"
When I go to "Export > Plain text file" in the course gradebook
And I set the following fields to these values:
| Real | 1 |
| Percentage | 1 |
+2 -2
View File
@@ -21,14 +21,14 @@ Feature: I need to export grades as xml
| assign | C1 | a1 | Test assignment name | Submit something! |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name"
And I press "Save changes"
@javascript
Scenario: Export grades as text
When I navigate to "XML file" node in "Grade administration > Export"
When I go to "Export > XML file" in the course gradebook
And I expand all fieldsets
And I set the field "Grade export decimal points" to "1"
And I press "Download"
+14 -4
View File
@@ -813,13 +813,23 @@ function grade_print_tabs($active_type, $active_plugin, $plugin_info, $return=fa
}
}
$tabs[] = $top_row;
$tabs[] = $bottom_row;
// Do not display rows that contain only one item, they are not helpful.
if (count($top_row) > 1) {
$tabs[] = $top_row;
}
if (count($bottom_row) > 1) {
$tabs[] = $bottom_row;
}
if (empty($tabs)) {
return;
}
$rv = html_writer::div(print_tabs($tabs, $active_plugin, $inactive, $activated, true), 'grade-navigation');
if ($return) {
return print_tabs($tabs, $active_plugin, $inactive, $activated, true);
return $rv;
} else {
print_tabs($tabs, $active_plugin, $inactive, $activated);
echo $rv;
}
}
@@ -55,7 +55,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe
| grade_report_showquickfeedback | 0 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I click on student "Student 2" for grade item "Item VU"
Then I should see a grade field for "Student 2" and grade item "Item VU"
And I should not see a feedback field for "Student 2" and grade item "Item VU"
@@ -93,7 +93,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe
And the following should exist in the "user-grades" table:
| -1- | -16- |
| Student 1 | 90.00 |
And I navigate to "Grader report" node in "Grade administration"
And I go to "View > Grader report" in the course gradebook
And the following should exist in the "user-grades" table:
| -1- | -6- | -7- | -13- | -16- |
| Student 1 | - | - | - | 90.00 |
@@ -107,7 +107,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe
| grade_report_showquickfeedback | 1 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I click on student "Student 2" for grade item "Item VU"
Then I should see a grade field for "Student 2" and grade item "Item VU"
And I should see a feedback field for "Student 2" and grade item "Item VU"
@@ -126,7 +126,9 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe
And I set the field "ajaxgrade" to "Very good"
And I set the field "ajaxfeedback" to "Student 2 SU feedback"
And I press key "13" in the field "ajaxfeedback"
And I navigate to "Grader report" node in "Grade administration"
# Reload grader report:
And I go to "View > User report" in the course gradebook
And I go to "View > Grader report" in the course gradebook
And the following should exist in the "user-grades" table:
| -1- | -7- | -13- | -16- |
| Student 2 | 33.00 | Very good | 36.00 |
@@ -142,7 +144,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe
| grade_report_showquickfeedback | 1 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I click on student "Student 2" for grade item "Item VU"
Then I should see a grade field for "Student 2" and grade item "Item VU"
And I should see a feedback field for "Student 2" and grade item "Item VU"
@@ -162,7 +164,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe
| grade_report_showquickfeedback | 1 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
Then I should not see a grade field for "Student 2" and grade item "Item VL"
And I should not see a feedback field for "Student 2" and grade item "Item VL"
@@ -193,7 +195,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe
| grade_report_showquickfeedback | 1 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I change window size to "large"
And I set "=[[i1]] + [[i3]] + [[gsc]]" calculation for grade item "Calc Item" with idnumbers:
@@ -46,7 +46,7 @@ Feature: We can change what we are viewing on the grader report
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name 1"
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment name 2"
@@ -60,7 +60,7 @@ Feature: We can change what we are viewing on the grader report
And I open "Test assignment name 2" actions menu
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 go to "View > Grader report" in the course gradebook
And I should see "Test assignment name 1"
And I should see "Test assignment name 2"
And I should see "Course total"
@@ -96,7 +96,7 @@ Feature: We can change what we are viewing on the grader report
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I should see "Test assignment name 1"
And I should see "Test assignment name 2"
And I should see "Course total"
@@ -30,7 +30,7 @@ Feature: A teacher checks the grade history report in a course
And I add a "Assignment" to section "1" and I fill the form with:
| Assignment name | Rewarding assignment |
| Description | After writing your behat test go grab a beer! |
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "50.00" to the user "Student 1" for the grade item "The greatest assignment ever"
And I give the grade "60.00" to the user "Student 1" for the grade item "Rewarding assignment"
@@ -40,7 +40,7 @@ Feature: A teacher checks the grade history report in a course
And I log out
And I log in as "teacher2"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "70.00" to the user "Student 1" for the grade item "The greatest assignment ever"
And I give the grade "80.00" to the user "Student 1" for the grade item "Rewarding assignment"
@@ -52,11 +52,11 @@ Feature: We can use Single view
| gradereport/singleview:view | Allow | teacher | Course | C1 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
Given I go to "View > Grader report" in the course gradebook
@javascript
Scenario: I can update grades, add feedback and exclude grades.
Given I follow "Single view"
Given I go to "View > Single view" in the course gradebook
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:
@@ -97,8 +97,7 @@ Feature: We can use Single view
And I log out
And I log in as "teacher2"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "Single view"
Given I go to "View > Single view" in the course gradebook
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
@@ -106,7 +105,7 @@ Feature: We can use Single view
Scenario: Single view links work on grade report.
Given I follow "Single view for Test assignment one"
Then I should see "Test assignment one"
Then I follow "Grader report"
Then I go to "View > Grader report" in the course gradebook
And I follow "Single view for Student 1"
Then I should see "Student 1"
+14 -15
View File
@@ -32,10 +32,10 @@ Feature: View the user report as the student will see it
| assign | C1 | a6 | Test assignment six | Submit something! | 100 |
And I log in as "teacher1"
And I follow "Course 1"
And I navigate to "Gradebook setup" node in "Course administration"
And I go to "Setup > Gradebook setup" in the course gradebook
And I hide the grade item "Test assignment six"
And I hide the grade item "Sub category 2"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I change window size to "large"
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
@@ -48,7 +48,7 @@ Feature: View the user report as the student will see it
And I change window size to "medium"
Scenario: View the report as the teacher themselves
When I navigate to "User report" node in "Grade administration"
When I go to "View > User report" in the course gradebook
And I select "Student 1" from the "Select all or one user" singleselect
And I select "Myself" from the "View report as" singleselect
Then the following should exist in the "user-grade" table:
@@ -64,7 +64,7 @@ Feature: View the user report as the student will see it
| Course total | - | 383.00 | 0600 | 63.83 % | - |
Scenario: View the report as the student from both the teachers and students perspective
When I navigate to "User report" node in "Grade administration"
When I go to "View > User report" in the course gradebook
And I select "Student 1" from the "Select all or one user" singleselect
And I select "User" from the "View report as" singleselect
Then the following should exist in the "user-grade" table:
@@ -83,7 +83,7 @@ Feature: View the user report as the student will see it
And I log out
And I log in as "student1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "User report" in the course gradebook
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| Test assignment one | - | 80.00 | 0100 | 80.00 % | - |
@@ -99,10 +99,10 @@ Feature: View the user report as the student will see it
| Test assignment six |
Scenario: View the report as the student from both the teachers and students perspective with totals excluding hidden
Given I navigate to "Course grade settings" node in "Grade administration > Setup"
Given I go to "Setup > Course grade settings" in the course gradebook
And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals excluding hidden items"
And I press "Save changes"
And I navigate to "User report" node in "Grade administration"
And I go to "View > User report" in the course gradebook
When I select "Student 1" from the "Select all or one user" singleselect
And I select "User" from the "View report as" singleselect
Then the following should exist in the "user-grade" table:
@@ -121,7 +121,7 @@ Feature: View the user report as the student will see it
And I log out
And I log in as "student1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "User report" in the course gradebook
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| Test assignment one | 50.00 % | 80.00 | 0100 | 80.00 % | 26.67 % |
@@ -137,10 +137,10 @@ Feature: View the user report as the student will see it
| Test assignment six |
Scenario: View the report as the student from both the teachers and students perspective with totals including hidden
Given I navigate to "Course grade settings" node in "Grade administration > Setup"
Given I go to "Setup > Course grade settings" in the course gradebook
And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals including hidden items"
And I press "Save changes"
And I navigate to "User report" node in "Grade administration"
And I go to "View > User report" in the course gradebook
When I select "Student 1" from the "Select all or one user" singleselect
And I select "User" from the "View report as" singleselect
Then the following should exist in the "user-grade" table:
@@ -159,7 +159,7 @@ Feature: View the user report as the student will see it
And I log out
And I log in as "student1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "User report" in the course gradebook
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| Test assignment one | 50.00 % | 80.00 | 0100 | 80.00 % | 13.33 % |
@@ -183,11 +183,10 @@ Feature: View the user report as the student will see it
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I navigate to "Gradebook setup" node in "Course administration"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals excluding hidden items"
And I press "Save changes"
And I navigate to "User report" node in "Grade administration"
And I go to "View > User report" in the course gradebook
When I select "Student 1" from the "Select all or one user" singleselect
And I select "User" from the "View report as" singleselect
Then the following should exist in the "user-grade" table:
@@ -204,7 +203,7 @@ Feature: View the user report as the student will see it
And I log out
And I log in as "student1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "User report" in the course gradebook
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| Test assignment one | 50.00 % | 80.00 | 0100 | 80.00 % | 13.33 % |
@@ -12,7 +12,6 @@ Feature: We can use the user report
Given I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "User report"
And I go to "View > User report" in the course gradebook
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"
+43
View File
@@ -245,4 +245,47 @@ class behat_grade extends behat_base {
$courseid = $DB->get_field('course', 'id', array('shortname' => $coursename), MUST_EXIST);
set_config('gradebook_calculations_freeze_' . $courseid, $version);
}
/**
* Navigates to the course gradebook and selects a specified item from the grade navigation tabs.
*
* Examples:
* - I go to "Setup > Gradebook setup" in the course gradebook
* - I go to "Scales" in the course gradebook
* - I go to "Letters > View" in the course gradebook
* - I go to "View > User report" in the course gradebook // for teachers
* - I go to "User report" in the course gradebook // for students
*
* @Given /^I go to "(?P<gradepath_string>(?:[^"]|\\")*)" in the course gradebook$/
* @param string $gradepath
*/
public function i_go_to_in_the_course_gradebook($gradepath) {
$gradepath = preg_split('/\s*>\s*/', trim($gradepath));
if (count($gradepath) > 2) {
throw new DriverException('Grade path is too long (must have no more than two items separated with ">")');
}
// If we are not on one of the gradebook pages already, follow "Grades" link in the navigation block.
$xpath = '//div[contains(@class,\'grade-navigation\')]';
if (!$this->getSession()->getPage()->findAll('xpath', $xpath)) {
$this->execute("behat_general::i_click_on_in_the", array(get_string('grades'), 'link',
get_string('pluginname', 'block_navigation'), 'block'));
}
// If the first row of the grade-navigation tabs does not have $gradepath[0] as active tab, click on it.
$link = '\'' . $this->escape($gradepath[0]) . '\'';
$xpathrow1 = $xpath.'//ul[1]/li[contains(@class,\'active\') and .=' . $link . ']';
if (!$this->getSession()->getPage()->findAll('xpath', $xpathrow1)) {
$this->find('xpath', $xpath . '//ul[1]/li/a[.=' . $link . ']')->click();
}
if (isset($gradepath[1])) {
// If the second row of the grade-navigation tabs does not have $gradepath[1] as active tab, click on it.
$link = '\'' . $this->escape($gradepath[1]) . '\'';
$xpathrow2 = $xpath . '//ul[2]/li[contains(@class,\'active\') and .=' . $link . ']';
if (!$this->getSession()->getPage()->findAll('xpath', $xpathrow2)) {
$this->find('xpath', $xpath . '//ul[2]/li/a[.=' . $link . ']')->click();
}
}
}
}
+4 -4
View File
@@ -20,7 +20,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI
And I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
@javascript
@@ -32,7 +32,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI
And I press "Save changes"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I click on "Edit assign Assignment1" "link"
And I should not see "Minimum grade"
@@ -44,7 +44,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI
And I press "Save changes"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
Then "Edit calculation for Course total" "link" should not exist
@javascript
@@ -55,5 +55,5 @@ Feature: Site settings can be used to hide parts of the gradebook UI
And I press "Save changes"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And "tr .course input[type='text']" "css_element" should not exist
+29 -36
View File
@@ -42,7 +42,7 @@ Feature: We can use calculated grade totals
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I change window size to "large"
And I give the grade "60.00" to the user "Student 1" for the grade item "Test assignment one"
@@ -60,7 +60,7 @@ Feature: We can use calculated grade totals
And I set the following settings for grade item "Test assignment eight":
| Hidden | 1 |
And I change window size to "medium"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "Grade display type" to "Real (percentage)"
And I press "Save changes"
@@ -74,7 +74,7 @@ Feature: We can use calculated grade totals
| Exclude empty grades | 0 |
And I turn editing mode off
Then I should see "30.00 (30.00 %)" in the ".course" "css_element"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items"
And I press "Save changes"
And I log out
@@ -96,7 +96,7 @@ Feature: We can use calculated grade totals
| Item weight | 3 |
And I turn editing mode off
Then I should see "27.14 (27.14 %)" in the ".course" "css_element"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items"
And I press "Save changes"
And I log out
@@ -116,7 +116,7 @@ Feature: We can use calculated grade totals
| Extra credit | 1 |
And I turn editing mode off
Then I should see "45.19 (45.19 %)" in the ".course" "css_element"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items"
And I press "Save changes"
And I log out
@@ -136,7 +136,7 @@ Feature: We can use calculated grade totals
| Extra credit weight | 2 |
And I turn editing mode off
Then I should see "42.50 (42.50 %)" in the ".course" "css_element"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items"
And I press "Save changes"
And I log out
@@ -154,7 +154,7 @@ Feature: We can use calculated grade totals
| Exclude empty grades | 0 |
And I turn editing mode off
Then I should see "26.67 (26.67 %)" in the ".course" "css_element"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items"
And I press "Save changes"
And I log out
@@ -176,7 +176,7 @@ Feature: We can use calculated grade totals
| Hidden | 1 |
And I turn editing mode off
Then I should see "0.00 (0.00 %)" in the ".course" "css_element"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items"
And I press "Save changes"
And I log out
@@ -196,7 +196,7 @@ Feature: We can use calculated grade totals
| Hidden | 1 |
And I turn editing mode off
Then I should see "50.00 (50.00 %)" in the ".course" "css_element"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items"
And I press "Save changes"
And I log out
@@ -216,7 +216,7 @@ Feature: We can use calculated grade totals
| Hidden | 1 |
And I turn editing mode off
Then I should see "50.00 (50.00 %)" in the ".course" "css_element"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items"
And I press "Save changes"
And I log out
@@ -236,16 +236,15 @@ Feature: We can use calculated grade totals
And the following "grade items" exist:
| itemname | course | outcome | gradetype | scale |
| Test outcome item one | C1 | OT1 | Scale | Test Scale |
And I expand "Setup" node
And I follow "Gradebook setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "Course 1":
| Aggregation | Natural |
| Include outcomes in aggregation | 1 |
| Exclude empty grades | 0 |
And I follow "View"
And I go to "View > Grader report" in the course gradebook
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 go to "Setup > Course grade settings" in the course gradebook
And I set the field "report_overview_showtotalsifcontainhidden" to "Show totals excluding hidden items"
And I set the field "report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items"
And I press "Save changes"
@@ -258,9 +257,7 @@ Feature: We can use calculated grade totals
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I expand "Setup" node
And I follow "Gradebook setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "Test outcome item one":
| Extra credit | 1 |
And I log out
@@ -272,9 +269,7 @@ Feature: We can use calculated grade totals
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I expand "Setup" node
And I follow "Gradebook setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "Course 1":
| Aggregation | Natural |
| Include outcomes in aggregation | 0 |
@@ -297,9 +292,7 @@ Feature: We can use calculated grade totals
And the following "grade items" exist:
| itemname | course | outcome | gradetype | scale |
| Test outcome item one | C1 | OT1 | Scale | Test Scale |
And I click on "Grades" "link" in the "Navigation" "block"
And I expand "Setup" node
And I follow "Gradebook setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "Course 1":
| Aggregation | Natural |
| Include outcomes in aggregation | 1 |
@@ -307,10 +300,10 @@ Feature: We can use calculated grade totals
And I set the following settings for grade item "Test outcome item one":
| Weight adjusted | 1 |
| aggregationcoef2 | 100 |
And I follow "View"
And I go to "View > Grader report" in the course gradebook
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 go to "Setup > Course grade settings" in the course gradebook
And I set the field "report_overview_showtotalsifcontainhidden" to "Show totals excluding hidden items"
And I set the field "report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items"
And I press "Save changes"
@@ -338,13 +331,13 @@ Feature: We can use calculated grade totals
| Extra credit | 1 |
And I turn editing mode off
Then I should see "152.68 (24.43 %)" in the ".course" "css_element"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "report_overview_showtotalsifcontainhidden" to "Show totals excluding hidden items"
And I set the field "report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items"
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 follow "User report"
And I go to "View > User report" in the course gradebook
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:
@@ -379,7 +372,7 @@ Feature: We can use calculated grade totals
And I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I set the following settings for grade item "Sub category 1":
| Aggregation | Natural |
@@ -390,7 +383,7 @@ Feature: We can use calculated grade totals
And I set the following settings for grade item "Course 1":
| Aggregation | Natural |
| Exclude empty grades | 0 |
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I press "Add category"
And I set the following fields to these values:
| Category name | Sub category 3 |
@@ -412,7 +405,7 @@ Feature: We can use calculated grade totals
| Item name | Manual item 3 |
| Grade category | Sub category 3 |
And I press "Save changes"
And I follow "View"
And I go to "View > Grader report" in the course gradebook
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"
@@ -446,18 +439,18 @@ Feature: We can use calculated grade totals
And I press "Save changes"
And I turn editing mode off
And I should see "250.00 (25.25 %)" in the ".course" "css_element"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I press "Add category"
And I set the following fields to these values:
| Category name | Sub sub category 1 |
| Parent category | Sub category 3 |
And I press "Save changes"
And I follow "View"
And I go to "View > Grader report" in the course gradebook
And I should see "270.00 (24.77 %)" in the ".course" "css_element"
@javascript
Scenario: Natural aggregation from the setup screen
And I follow "Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
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":
@@ -519,7 +512,7 @@ Feature: We can use calculated grade totals
| Aggregation | Natural |
| Exclude empty grades | 0 |
And I turn editing mode off
And I follow "Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
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"
@@ -527,14 +520,14 @@ Feature: We can use calculated grade totals
And I set the field "Override weight of Test assignment nine" to "1"
And I set the field "Weight of Test assignment nine" to "100"
And I press "Save changes"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "report_overview_showtotalsifcontainhidden" to "Show totals excluding hidden items"
And I set the field "report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items"
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"
Then I should see "75.00 (16.85 %)" in the ".course" "css_element"
And I follow "User report"
And I go to "View > User report" in the course gradebook
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:
@@ -35,8 +35,7 @@ Feature: Changing the aggregation of an item affects its weight and extra credit
| grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Grader report" node in "Grade administration"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I follow "Edit Cat mean"
And I set the following fields to these values:
@@ -336,13 +335,13 @@ Feature: Changing the aggregation of an item affects its weight and extra credit
@javascript
Scenario: Switching grade items between categories
# Move to same aggregation (Natural).
Given I navigate to "Gradebook setup" node in "Grade administration > Setup"
Given I go to "Setup > Gradebook setup" in the course gradebook
And I set the field "Select Item a1" to "1"
And I set the field "Select Item a2" to "1"
And I set the field "Select Item a3" to "1"
And I set the field "Select Item a4" to "1"
When I select "Cat natural" from the "Move selected items to" singleselect
And I navigate to "Grader report" node in "Grade administration"
And I go to "View > Grader report" in the course gradebook
And I follow "Edit Item a1"
Then the field "Weight adjusted" matches value "0"
And the field "Extra credit" matches value "0"
@@ -362,13 +361,13 @@ Feature: Changing the aggregation of an item affects its weight and extra credit
And the field "Extra credit" matches value "1"
And I press "Cancel"
# Move to Mean of grades (with extra credit).
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the field "Select Item a1" to "1"
And I set the field "Select Item a2" to "1"
And I set the field "Select Item a3" to "1"
And I set the field "Select Item a4" to "1"
And I select "Cat ec" from the "Move selected items to" singleselect
And I navigate to "Grader report" node in "Grade administration"
And I go to "View > Grader report" in the course gradebook
And I follow "Edit Item a1"
And the field "Extra credit" matches value "0"
And I press "Cancel"
@@ -382,13 +381,13 @@ Feature: Changing the aggregation of an item affects its weight and extra credit
And the field "Extra credit" matches value "1"
And I press "Cancel"
# Move to Simple weight mean of grades.
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the field "Select Item a1" to "1"
And I set the field "Select Item a2" to "1"
And I set the field "Select Item a3" to "1"
And I set the field "Select Item a4" to "1"
And I select "Cat simple" from the "Move selected items to" singleselect
And I navigate to "Grader report" node in "Grade administration"
And I go to "View > Grader report" in the course gradebook
And I follow "Edit Item a1"
And the field "Extra credit" matches value "0"
And I press "Cancel"
@@ -402,13 +401,13 @@ Feature: Changing the aggregation of an item affects its weight and extra credit
And the field "Extra credit" matches value "1"
And I press "Cancel"
# Move to Weighted mean of grades.
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the field "Select Item a1" to "1"
And I set the field "Select Item a2" to "1"
And I set the field "Select Item a3" to "1"
And I set the field "Select Item a4" to "1"
And I select "Cat weighted" from the "Move selected items to" singleselect
And I navigate to "Grader report" node in "Grade administration"
And I go to "View > Grader report" in the course gradebook
And I follow "Edit Item a1"
And the field "Item weight" matches value "1"
And I set the field "Item weight" to "2"
@@ -426,14 +425,14 @@ Feature: Changing the aggregation of an item affects its weight and extra credit
And I set the field "Item weight" to "11"
And I press "Save changes"
# Move to same (Weighted mean of grades).
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the field "Select Item a1" to "1"
And I set the field "Select Item a2" to "1"
And I set the field "Select Item a3" to "1"
And I set the field "Select Item a4" to "1"
And I select "Cat weighted2" from the "Move selected items to" singleselect
And I wait "2" seconds
And I navigate to "Grader report" node in "Grade administration"
And I go to "View > Grader report" in the course gradebook
And I follow "Edit Item a1"
And the field "Item weight" matches value "2"
And I press "Save changes"
@@ -447,13 +446,13 @@ Feature: Changing the aggregation of an item affects its weight and extra credit
And the field "Item weight" matches value "11"
And I press "Save changes"
# Move back to Natural.
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the field "Select Item a1" to "1"
And I set the field "Select Item a2" to "1"
And I set the field "Select Item a3" to "1"
And I set the field "Select Item a4" to "1"
And I select "Course 1" from the "Move selected items to" singleselect
And I navigate to "Grader report" node in "Grade administration"
And I go to "View > Grader report" in the course gradebook
And I follow "Edit Item a1"
And the field "Weight adjusted" matches value "0"
And the field "Extra credit" matches value "0"
+5 -6
View File
@@ -24,19 +24,18 @@ Feature: Average grades are displayed in the gradebook
And I am on site homepage
And I follow "Course 1"
# Enable averages
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the following fields to these values:
| Show average | Show |
And I press "Save changes"
# Add a manual grade item
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item"
And I set the following fields to these values:
| Item name | Manual item 1 |
And I press "Save changes"
# Give all student the same grade for the manual grade item
And I navigate to "Grader report" node in "Grade administration"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "50.00" to the user "Student 1" for the grade item "Manual item 1"
And I give the grade "50.00" to the user "Student 2" for the grade item "Manual item 1"
@@ -52,7 +51,7 @@ Feature: Average grades are displayed in the gradebook
Scenario: Grade a grade item and ensure the results display correctly in the gradebook
# Check the admin grade table
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
Then I should see "50.00" in the ".avg.r0.lastrow .c1" "css_element"
Then I should see "50.00" in the ".avg.r0.lastrow .c2" "css_element"
And I log out
@@ -61,7 +60,7 @@ Feature: Average grades are displayed in the gradebook
And I log in as "student1"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "User report" in the course gradebook
Then I should see "50.00" in the ".level2.column-grade" "css_element"
Then I should see "50.00" in the ".level2.column-average" "css_element"
And I log out
@@ -21,8 +21,7 @@ Feature: Calculated grade items can be used in the gradebook
And I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
@javascript
Scenario: The max grade for a category item, with a calculation using Natural aggregation, can be changed
@@ -39,11 +38,11 @@ Feature: Calculated grade items can be used in the gradebook
| grade item 1 | gi1 |
And I set the following settings for grade item "Calc cat":
| Maximum grade | 50 |
And I follow "View"
And I go to "View > Grader report" in the course gradebook
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"
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -66,25 +65,24 @@ Feature: Calculated grade items can be used in the gradebook
| grade item 1 | gi1 |
And I set the following settings for grade item "Calc cat":
| Maximum grade | 50 |
And I follow "View"
And I go to "View > Grader report" in the course gradebook
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 go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| grade item 1 | - | 75.00 | 0100 | 75.00 % | - |
| Calc cat totalInclude empty grades. | 100.00 % | 37.50 | 050 | 75.00 % | - |
| Course total | - | 37.50 | 050 | 75.00 % | - |
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
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 go to "View > Grader report" in the course gradebook
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 follow "User report"
And I go to "View > User report" in the course gradebook
When I select "Student 1" from the "Select all or one user" singleselect
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -97,11 +95,11 @@ Feature: Calculated grade items can be used in the gradebook
| grade item 1 | - | 65.00 | 0100 | 65.00 % | - |
| Calc cat totalInclude empty grades. | 100.00 % | 32.50 | 040 | 81.25 % | - |
| Course total | - | 32.50 | 040 | 81.25 % | - |
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
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 "User report"
And I go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -129,29 +127,29 @@ Feature: Calculated grade items can be used in the gradebook
| grade item 1 | gi1 |
And I set the following settings for grade item "calc item":
| Maximum grade | 50 |
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
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 go to "View > Grader report" in the course gradebook
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 go to "View > User report" in the course gradebook
When I select "Student 1" from the "Select all or one user" singleselect
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| grade item 1 | 66.67 % | 75.00 | 0100 | 75.00 % | 50.00 % |
| calc item | 33.33 % | 37.50 | 050 | 75.00 % | 25.00 % |
| Course total | - | 112.50 | 0150 | 75.00 % | - |
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
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 go to "View > Grader report" in the course gradebook
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -22,8 +22,7 @@ Feature: Gradebook calculations for calculated grade items before the fix 201506
And I log in as "admin"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
@javascript
Scenario: The max grade for a category item, with a calculation using Natural aggregation, can be changed
@@ -40,10 +39,11 @@ Feature: Gradebook calculations for calculated grade items before the fix 201506
| grade item 1 | gi1 |
And I set the following settings for grade item "Calc cat":
| Maximum grade | 50 |
And I go to "View > Grader report" in the course gradebook
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"
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -66,26 +66,24 @@ Feature: Gradebook calculations for calculated grade items before the fix 201506
| 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 press "Turn editing on"
And I go to "View > Grader report" in the course gradebook
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"
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| grade item 1 | - | 75.00 | 0100 | 75.00 % | - |
| Calc cat totalInclude empty grades. | 100.00 % | 37.50 | 0100 | 37.50 % | - |
| Course total | - | 37.50 | 0100 | 37.50 % | - |
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
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 go to "View > Grader report" in the course gradebook
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 follow "User report"
And I go to "View > User report" in the course gradebook
When I select "Student 1" from the "Select all or one user" singleselect
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -98,11 +96,11 @@ Feature: Gradebook calculations for calculated grade items before the fix 201506
| grade item 1 | - | 65.00 | 0100 | 65.00 % | - |
| Calc cat totalInclude empty grades. | 100.00 % | 32.50 | 0100 | 32.50 % | - |
| Course total | - | 32.50 | 0100 | 32.50 % | - |
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
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 "User report"
And I go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -130,30 +128,29 @@ Feature: Gradebook calculations for calculated grade items before the fix 201506
| grade item 1 | gi1 |
And I set the following settings for grade item "calc item":
| Maximum grade | 50 |
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
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 press "Turn editing on"
And I go to "View > Grader report" in the course gradebook
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"
And I follow "User report"
And I go to "View > User report" in the course gradebook
When I select "Student 1" from the "Select all or one user" singleselect
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| grade item 1 | 50.00 % | 75.00 | 0100 | 75.00 % | 37.50 % |
| calc item | 50.00 % | 37.50 | 0100 | 37.50 % | 18.75 % |
| Course total | - | 112.50 | 0200 | 56.25 % | - |
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
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 go to "View > Grader report" in the course gradebook
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -30,7 +30,7 @@ Feature: We can understand the gradebook user report
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "60.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "20.00" to the user "Student 1" for the grade item "Test assignment two"
@@ -39,11 +39,11 @@ Feature: We can understand the gradebook user report
And I give the grade "70.00" to the user "Student 1" for the grade item "Test assignment five"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment six"
And I press "Save changes"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
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 "Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I press "Add category"
And I set the field "Category name" to "Sub category"
And I press "Save changes"
@@ -59,7 +59,7 @@ Feature: We can understand the gradebook user report
Scenario: Mean of grades aggregation
And I set the following settings for grade item "Course 1":
| Aggregation | Mean of grades |
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
@@ -84,7 +84,7 @@ Feature: We can understand the gradebook user report
| Item weight | 1.0 |
And I set the following settings for grade item "Sub category":
| Item weight | 1.0 |
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
@@ -105,8 +105,7 @@ Feature: We can understand the gradebook user report
| Aggregation | Simple weighted mean of grades |
And I set the following settings for grade item "Test assignment three":
| Extra credit | 1 |
And I follow "View"
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
@@ -125,8 +124,7 @@ Feature: We can understand the gradebook user report
| 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 follow "View"
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
@@ -143,8 +141,7 @@ Feature: We can understand the gradebook user report
Scenario: Median of grades aggregation
And I set the following settings for grade item "Course 1":
| Aggregation | Median of grades |
And I follow "View"
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
@@ -161,8 +158,7 @@ Feature: We can understand the gradebook user report
Scenario: Lowest grade aggregation
And I set the following settings for grade item "Course 1":
| Aggregation | Lowest grade |
And I follow "View"
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
@@ -179,8 +175,7 @@ Feature: We can understand the gradebook user report
Scenario: Highest grade aggregation
And I set the following settings for grade item "Course 1":
| Aggregation | Highest grade |
And I follow "View"
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
@@ -197,8 +192,7 @@ Feature: We can understand the gradebook user report
Scenario: Mode of grades aggregation
And I set the following settings for grade item "Course 1":
| Aggregation | Mode of grades |
And I follow "View"
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
@@ -219,8 +213,7 @@ Feature: We can understand the gradebook user report
| Aggregation | Weighted mean of grades |
And I set the following settings for grade item "Test assignment three":
| Extra credit | 1 |
And I follow "View"
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
@@ -239,8 +232,7 @@ Feature: We can understand the gradebook user report
Scenario: View user report with natural aggregation
And I set the following settings for grade item "Test assignment three":
| Extra credit | 1 |
And I follow "View"
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I set the field "Select all or one user" to "Student 1"
# Check the values in the weights column.
@@ -34,7 +34,7 @@ Feature: Editing a grade item
And I log in as "teacher1"
And I am on site homepage
And I follow "Course 1"
And I navigate to "Gradebook setup" node in "Course administration"
And I go to "Setup > Gradebook setup" in the course gradebook
And I press "Add category"
And I set the following fields to these values:
| Category name | Cat 1 |
@@ -69,11 +69,11 @@ Feature: Editing a grade item
And I should not see "You cannot change the scale, as grades already exist for this item"
Scenario: Attempting to change a category item's grade type when overridden grades already exist
Given I navigate to "Grader report" node in "Grade administration"
Given I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "20.00" to the user "Student 1" for the grade item "Cat 1 total"
And I press "Save changes"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "Cat 1" "table_row"
When I click on "Edit settings" "link" in the "Cat 1" "table_row"
Then I should see "This category has associated grade items which have been overridden. Therefore some grades have already been awarded, so the grade type cannot be changed. If you wish to change the maximum grade, you must first choose whether or not to rescale existing grades."
@@ -85,22 +85,22 @@ Feature: Editing a grade item
And I set the field "Grade type" to "Scale"
And I set the field "Scale" to "ABCDEF"
And I press "Save changes"
And I navigate to "Grader report" node in "Grade administration"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "C" to the user "Student 1" for the grade item "Cat 1 total"
And I press "Save changes"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "Cat 1" "table_row"
When I click on "Edit settings" "link" in the "Cat 1" "table_row"
Then I should see "This category has associated grade items which have been overridden. Therefore some grades have already been awarded, so the grade type and scale cannot be changed."
And "//div[contains(concat(' ', normalize-space(@class), ' '), 'felement') and contains(text(), 'ABCDEF')]" "xpath_element" should exist
Scenario: Attempting to change a category item's maximum grade when no rescaling option has been chosen
Given I navigate to "Grader report" node in "Grade administration"
Given I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "20.00" to the user "Student 1" for the grade item "Cat 1 total"
And I press "Save changes"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "Cat 1" "table_row"
And I click on "Edit settings" "link" in the "Cat 1" "table_row"
And I set the field "Maximum grade" to "50"
@@ -21,8 +21,7 @@ Feature: Extra credit contributions are normalised when going out of bounds
| grade_aggregations_visible | Simple weighted mean of grades,Mean of grades (with extra credits),Natural |
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item"
And I set the following fields to these values:
| Item name | Manual item 1 |
@@ -40,14 +39,14 @@ Feature: Extra credit contributions are normalised when going out of bounds
And I set the following fields to these values:
| Item name | Manual item 4 |
And I press "Save changes"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "Show weighting" to "Show"
And I set the field "Show contribution to course total" to "Show"
And I press "Save changes"
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Manual item 1"
And I give the grade "10.00" to the user "Student 1" for the grade item "Manual item 2"
@@ -56,7 +55,7 @@ Feature: Extra credit contributions are normalised when going out of bounds
And I press "Save changes"
Scenario Outline: The contribution of extra credit items is normalised
Given I follow "Setup"
Given I go to "Setup > Gradebook setup" in the course gradebook
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":
@@ -65,8 +64,7 @@ Feature: Extra credit contributions are normalised when going out of bounds
| Extra credit | 1 |
And I set the following settings for grade item "Manual item 4":
| Extra credit | 1 |
And I follow "View"
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -22,34 +22,33 @@ Feature: We can change the maximum and minimum number of points for manual items
And I log in as "teacher1"
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item"
And I set the following fields to these values:
| Item name | Manual item 1 |
| Minimum grade | 0 |
| Maximum grade | 100 |
And I press "Save changes"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
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"
Scenario: Change maximum number of points on a graded item.
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "10.00" to the user "Student 1" for the grade item "Manual item 1"
And I give the grade "8.00" to the user "Student 2" for the grade item "Manual item 1"
And I press "Save changes"
When I navigate to "Gradebook setup" node in "Grade administration > Setup"
When I go to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "Manual item 1" "table_row"
And I click on "Edit settings" "link" in the "Manual item 1" "table_row"
And I set the following fields to these values:
| Maximum grade | 10 |
| Rescale existing grades | No |
And I press "Save changes"
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I select "Student 1" from the "Select all or one user" singleselect
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Contribution to course total |
@@ -58,14 +57,14 @@ Feature: We can change the maximum and minimum number of points for manual items
And the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Contribution to course total |
| Manual item 1 | 100.00 % | 8.00 | 80.00 % |
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "Manual item 1" "table_row"
And I click on "Edit settings" "link" in the "Manual item 1" "table_row"
And I set the following fields to these values:
| Maximum grade | 20 |
| Rescale existing grades | Yes |
And I press "Save changes"
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Contribution to course total |
+3 -5
View File
@@ -35,7 +35,7 @@ Feature: Student and teacher's view of aggregated grade items is consistent when
When I log out
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "50.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "50.00" to the user "Student 1" for the grade item "Test assignment three"
@@ -44,8 +44,7 @@ Feature: Student and teacher's view of aggregated grade items is consistent when
| Hidden | 1 |
And I press "Save changes"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "User report"
And I go to "View > User report" in the course gradebook
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:
@@ -57,8 +56,7 @@ Feature: Student and teacher's view of aggregated grade items is consistent when
When I log out
And I log in as "student1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "User report" node in "Grade administration"
And I go to "User report" in the course gradebook
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| Test assignment one | 100.00 % | 50.00 | 0100 | 50.00 % | 25.00 % |
@@ -30,7 +30,7 @@ Feature: Editing a grade item
And I press "Save changes"
And I am on site homepage
And I follow "Course 1"
And I navigate to "Gradebook setup" node in "Course administration"
And I go to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item"
And I set the following fields to these values:
| Item name | MI 1 |
@@ -54,11 +54,11 @@ Feature: Editing a grade item
And I should not see "You cannot change the scale, as grades already exist for this item"
Scenario: Attempting to change a manual item's grade type when grades already exist
Given I navigate to "Grader report" node in "Grade administration"
Given I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "20.00" to the user "Student 1" for the grade item "MI 1"
And I press "Save changes"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "MI 1" "table_row"
When I click on "Edit settings" "link" in the "MI 1" "table_row"
Then I should see "Some grades have already been awarded, so the grade type cannot be changed. If you wish to change the maximum grade, you must first choose whether or not to rescale existing grades."
@@ -70,22 +70,22 @@ Feature: Editing a grade item
And I set the field "Grade type" to "Scale"
And I set the field "Scale" to "ABCDEF"
And I press "Save changes"
And I navigate to "Grader report" node in "Grade administration"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "C" to the user "Student 1" for the grade item "MI 1"
And I press "Save changes"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "MI 1" "table_row"
When I click on "Edit settings" "link" in the "MI 1" "table_row"
Then I should see "Some grades have already been awarded, so the grade type and scale cannot be changed."
And "//div[contains(concat(' ', normalize-space(@class), ' '), 'felement') and contains(text(), 'ABCDEF')]" "xpath_element" should exist
Scenario: Attempting to change a manual item's maximum grade when no rescaling option has been chosen
Given I navigate to "Grader report" node in "Grade administration"
Given I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "20.00" to the user "Student 1" for the grade item "MI 1"
And I press "Save changes"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "MI 1" "table_row"
And I click on "Edit settings" "link" in the "MI 1" "table_row"
And I set the field "Maximum grade" to "50"
@@ -22,19 +22,17 @@ Feature: We can customise the letter boundary of a course.
| assign | C1 | a1 | Test assignment one | Submit something! | 100 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "Setup"
And I follow "Course grade settings"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the following fields to these values:
| Grade display type | Letter |
And I press "Save changes"
And I navigate to "Letters" node in "Grade administration"
And I go to "Letters" in the course gradebook
And I follow "Edit grade letters"
And I set the following fields to these values:
| id_override | 1 |
| id_gradeboundary10 | 57 |
And I press "Save changes"
And I follow "View"
And I go to "View > Grader report" in the course gradebook
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"
@@ -23,19 +23,17 @@ Feature: We can customise the letter boundary of a course.
| assign | C1 | a1 | Test assignment one | Submit something! | 100 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "Setup"
And I follow "Course grade settings"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the following fields to these values:
| Grade display type | Letter |
And I press "Save changes"
And I navigate to "Letters" node in "Grade administration"
And I go to "Letters" in the course gradebook
And I follow "Edit grade letters"
And I set the following fields to these values:
| id_override | 1 |
| id_gradeboundary10 | 57 |
And I press "Save changes"
And I follow "View"
And I go to "View > Grader report" in the course gradebook
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"
+5 -6
View File
@@ -27,8 +27,7 @@ Feature: We can use a minimum grade different than zero
| grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
And I am on site homepage
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item"
And I set the following fields to these values:
| Item name | Manual item 1 |
@@ -66,14 +65,14 @@ Feature: We can use a minimum grade different than zero
| Minimum grade | 50 |
| Grade category | Sub category 2 |
And I press "Save changes"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
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"
@javascript
Scenario: Natural aggregation with negative and positive grade
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "Sub category 1":
| Aggregation | Natural |
| Exclude empty grades | 0 |
@@ -86,7 +85,7 @@ Feature: We can use a minimum grade different than zero
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
When I give the grade "-25.00" to the user "Student 1" for the grade item "Manual item 1"
And I give the grade "50.00" to the user "Student 1" for the grade item "Manual item 2"
@@ -101,7 +100,7 @@ Feature: We can use a minimum grade different than zero
And I give the grade "0.00" to the user "Student 2" for the grade item "Manual item 5"
And I give the grade "0.00" to the user "Student 2" for the grade item "Manual item 6"
And I press "Save changes"
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 |
+11 -12
View File
@@ -26,8 +26,7 @@ Feature: We can choose what min or max grade to use when aggregating grades.
| grade_minmaxtouse | Min and max grades as specified in grade item settings |
And I am on site homepage
And I follow "C1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item"
And I set the following fields to these values:
| Item name | MI 1 |
@@ -57,18 +56,18 @@ Feature: We can choose what min or max grade to use when aggregating grades.
| MI 1 | mi1 |
| MI 2 | mi2 |
| MI 3 | mi3 |
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the field "Min and max grades used in calculation" to "Default (Min and max grades as specified in grade item settings)"
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 navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "CAT1":
| Aggregation | Natural |
And I log out
And I log in as "teacher1"
And I follow "C1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "75.00" to the user "Student 1" for the grade item "MI 1"
And I give the grade "25.00" to the user "Student 1" for the grade item "MI 2"
@@ -77,7 +76,7 @@ Feature: We can choose what min or max grade to use when aggregating grades.
And I give the grade "20.00" to the user "Student 2" for the grade item "MI 1"
And I give the grade "10.00" to the user "Student 2" for the grade item "MI 3"
And I press "Save changes"
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -98,7 +97,7 @@ Feature: We can choose what min or max grade to use when aggregating grades.
| MI 5 | 33.33 % | 30.00 | 0100 | 30.00 % | 10.00 % |
| CAT1 total | 33.33 % | 10.00 | 0100 | 10.00 % | - |
| Course total | - | 60.00 | 0300 | 20.00 % | - |
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "MI 1":
| Maximum grade | 50.00 |
| Minimum grade | 5.00 |
@@ -107,7 +106,7 @@ Feature: We can choose what min or max grade to use when aggregating grades.
| Maximum grade | 50.00 |
| Minimum grade | 5.00 |
| Rescale existing grades | No |
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -128,11 +127,11 @@ Feature: We can choose what min or max grade to use when aggregating grades.
| MI 5 | 50.00 % | 30.00 | 0100 | 30.00 % | 15.00 % |
| CAT1 total | 25.00 % | 10.00 | 050 | 20.00 % | - |
| Course total | - | 60.00 | 0200 | 30.00 % | - |
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "MI 5":
| Maximum grade | 200.00 |
| Rescale existing grades | No |
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -143,10 +142,10 @@ Feature: We can choose what min or max grade to use when aggregating grades.
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| MI 5 | 66.67 % | 30.00 | 0200 | 15.00 % | 10.00 % |
| Course total | - | 60.00 | 0300 | 20.00 % | - |
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
When I set the field "Min and max grades used in calculation" to "Initial min and max grades"
And I press "Save changes"
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I select "Student 1" from the "Select all or one user" singleselect
Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
@@ -25,8 +25,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
| assign | C1 | a5 | Test assignment five (extra) | x | 10 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
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)":
@@ -34,7 +33,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
@javascript
Scenario: No weights are overridden and student has all grades present
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
@@ -42,7 +41,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -56,14 +55,14 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
@javascript
Scenario: No weights are overridden, student has some grades present
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -77,12 +76,12 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
@javascript
Scenario: No weights are overridden, student has none grades present except for extra credit
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -102,14 +101,14 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
| Extra credit | 1 |
And I set the following settings for grade item "Test assignment three":
| Extra credit | 1 |
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -126,7 +125,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
When I set the field "Override weight of Test assignment one" to "1"
And I set the field "Weight of Test assignment one" to "50"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
@@ -134,7 +133,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -151,14 +150,14 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
When I set the field "Override weight of Test assignment one" to "1"
And I set the field "Weight of Test assignment one" to "50"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -175,12 +174,12 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
When I set the field "Override weight of Test assignment one" to "1"
And I set the field "Weight of Test assignment one" to "50"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -199,7 +198,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
And I set the field "Override weight of Test assignment four (extra)" to "1"
And I set the field "Weight of Test assignment four (extra)" to "10"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
@@ -207,7 +206,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -226,14 +225,14 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
And I set the field "Override weight of Test assignment four (extra)" to "1"
And I set the field "Weight of Test assignment four (extra)" to "10"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -252,12 +251,12 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
And I set the field "Override weight of Test assignment four (extra)" to "1"
And I set the field "Weight of Test assignment four (extra)" to "10"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -26,8 +26,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
| assign | C1 | a5 | Test assignment five (extra) | x | 10 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
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)":
@@ -35,7 +34,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
@javascript
Scenario: No weights are overridden and student has all grades present (before the fix 20150619)
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
@@ -43,7 +42,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -57,14 +56,14 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
@javascript
Scenario: No weights are overridden, student has some grades present (before the fix 20150619)
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -78,12 +77,12 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
@javascript
Scenario: No weights are overridden, student has none grades present except for extra credit (before the fix 20150619)
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -103,14 +102,14 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
| Extra credit | 1 |
And I set the following settings for grade item "Test assignment three":
| Extra credit | 1 |
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -127,7 +126,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
When I set the field "Override weight of Test assignment one" to "1"
And I set the field "Weight of Test assignment one" to "50"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
@@ -135,7 +134,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -153,14 +152,14 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
When I set the field "Override weight of Test assignment one" to "1"
And I set the field "Weight of Test assignment one" to "50"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -178,12 +177,12 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
When I set the field "Override weight of Test assignment one" to "1"
And I set the field "Weight of Test assignment one" to "50"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -202,7 +201,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
And I set the field "Override weight of Test assignment four (extra)" to "1"
And I set the field "Weight of Test assignment four (extra)" to "10"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
@@ -210,7 +209,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -230,14 +229,14 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
And I set the field "Override weight of Test assignment four (extra)" to "1"
And I set the field "Weight of Test assignment four (extra)" to "10"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two"
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -257,12 +256,12 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
And I set the field "Override weight of Test assignment four (extra)" to "1"
And I set the field "Weight of Test assignment four (extra)" to "10"
And I press "Save changes"
When I click on "Grades" "link" in the "Navigation" "block"
When I go to "View > Grader report" in the course gradebook
And I turn editing mode on
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 follow "User report"
And I go to "View > User report" in the course gradebook
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 |
@@ -32,8 +32,7 @@ Feature: We can use natural aggregation and weights will be normalised to a tota
| assign | C1 | a7 | Test assignment seven | Submit nothing! | Sub category 1 | 15 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
@javascript
Scenario: Setting all weights in a category to exactly one hundred in total.
@@ -33,8 +33,7 @@ Feature: Gradebook calculations for natural weights normalisation before the fix
| assign | C1 | a7 | Test assignment seven | Submit nothing! | Sub category 1 | 15 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
@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).
@@ -16,9 +16,7 @@ Feature: Grade letters can be overridden
| teacher1 | C1 | editingteacher |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "Letters"
And I follow "Edit grade letters"
And I go to "Letters > Edit" in the course gradebook
Scenario Outline: Grade letters can be completely overridden
When I set the following fields to these values:
+6 -6
View File
@@ -71,11 +71,11 @@ Feature: View gradebook when scales are used
And I press "Save changes"
And I press "Ok"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
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 go to "View > Grader report" in the course gradebook
And I turn editing mode on
Scenario: Test displaying scales in gradebook in aggregation method Natural
@@ -91,14 +91,14 @@ Feature: View gradebook when scales are used
| -1- | -2- | -3- | -4- |
| Range | FA | 0.005.00 | 0.005.00 |
| Overall average | C | 3.00 | 3.00 |
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I select "Student 3" from the "Select all or one user" singleselect
And the following should exist in the "user-grade" table:
| Grade item | Grade | Range | Percentage | Contribution to course total |
| Test assignment one | C | FA | 50.00 % | 60.00 % |
| Sub category 1 total | 3.00 | 05 | 60.00 % | - |
| Course total | 3.00 | 05 | 60.00 % | - |
And I follow "Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And the following should exist in the "grade_edit_tree_table" table:
| Name | Max grade |
| Test assignment one | 5.00 |
@@ -137,14 +137,14 @@ Feature: View gradebook when scales are used
| -1- | -2- | -3- | -4- |
| Range | FA | 1.005.00 | 0.00100.00 |
| Overall average | C | 3.00 | <overallavg> |
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I select "Student 3" from the "Select all or one user" singleselect
And the following should exist in the "user-grade" table:
| Grade item | Grade | Range | Percentage | Contribution to course total |
| Test assignment one | C | FA | 50.00 % | <contrib3> |
| Sub category (<aggregation>) total<aggregation>. | 3.00 | 15 | 50.00 % | - |
| Course total<aggregation>. | <coursetotal3> | 0100 | <courseperc3> | - |
And I follow "Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And the following should exist in the "grade_edit_tree_table" table:
| Name | Max grade |
| Test assignment one | A (5) |
@@ -39,14 +39,14 @@ Feature: Control the aggregation of the scales
Scenario Outline: Scales can be excluded from aggregation
Given I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
When I give the grade "10" to the user "Student 1" for the grade item "Grade me"
And I give the grade "B" to the user "Student 1" for the grade item "Scale me"
And I press "Save changes"
And I set the following settings for grade item "Course 1":
| Aggregation | <aggregation> |
And I follow "User report"
And I go to "View > User report" in the course gradebook
And I select "Student 1" from the "Select all or one user" singleselect
Then the following should exist in the "user-grade" table:
| Grade item | Grade | Percentage | Contribution to course total |
@@ -60,8 +60,7 @@ Feature: Control the aggregation of the scales
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 | Grade | Percentage | Contribution to course total |
@@ -85,11 +84,11 @@ Feature: Control the aggregation of the scales
Scenario: Weights of scales cannot be edited when they are not aggregated
Given I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
When I set the following settings for grade item "Course 1":
| Aggregation | Natural |
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the field "Override weight of Grade me" to "1"
Then the field "Override weight of Grade me" matches value "100.00"
And I click on "Edit" "link" in the "Scale me" "table_row"
@@ -100,8 +99,7 @@ Feature: Control the aggregation of the scales
And the following config values are set as admin:
| grade_includescalesinaggregation | 1 |
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Gradebook setup" node in "Grade administration > Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And I set the field "Override weight of Grade me" to "1"
And the field "Override weight of Grade me" matches value "95.238"
And I set the field "Override weight of Scale me" to "1"
@@ -49,11 +49,11 @@ Feature: View gradebook when single item scales are used
And I press "Save changes"
And I press "Ok"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
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 go to "View > Grader report" in the course gradebook
And I turn editing mode on
Scenario: Test displaying single item scales in gradebook in aggregation method Natural
@@ -65,7 +65,7 @@ Feature: View gradebook when single item scales are used
| -1- | -2- | -3- | -4- |
| Range | Ace!Ace! | 0.001.00 | 0.001.00 |
| Overall average | Ace! | 1.00 | 1.00 |
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 | Grade | Range | Contribution to course total |
@@ -78,7 +78,7 @@ Feature: View gradebook when single item scales are used
| Test assignment one | - | Ace!Ace! | - |
| Sub category 1 total| - | 01 | - |
| Course total | - | 01 | - |
And I follow "Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And the following should exist in the "grade_edit_tree_table" table:
| Name | Max grade |
| Test assignment one | 1.00 |
@@ -103,14 +103,14 @@ Feature: View gradebook when single item scales are used
| -1- | -2- | -3- | -4- |
| Range | Ace!Ace! | 0.00100.0 | 0.00100.00 |
| Overall average | Ace! | <catavg> | <overallavg> |
And I follow "User report"
And I go to "View > User report" in the course gradebook
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 | Grade | Range | Contribution to course total |
| Test assignment one | Ace! | Ace!Ace! | <contrib1> |
| Sub category (<aggregation>) total<aggregation>. | <cattotal1> | 0100 | - |
| Course total<aggregation>. | <coursetotal1> | 0100 | - |
And I follow "Setup"
And I go to "Setup > Gradebook setup" in the course gradebook
And the following should exist in the "grade_edit_tree_table" table:
| Name | Max grade |
| Test assignment one | Ace! (1) |
+9 -9
View File
@@ -54,7 +54,7 @@ Feature: We can set the grade to pass value
| grade[modgrade_type] | Point |
| grade[modgrade_point] | 50 |
| Grade to pass | 25 |
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I click on "Edit assign Test Assignment 1" "link"
Then the field "Grade to pass" matches value "25"
@@ -64,7 +64,7 @@ Feature: We can set the grade to pass value
And I expand all fieldsets
And I set the field "Grade to pass" to "30"
And I press "Save and return to course"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I click on "Edit assign Test Assignment 1" "link"
And the field "Grade to pass" matches value "30"
@@ -76,7 +76,7 @@ Feature: We can set the grade to pass value
| grade[modgrade_type] | Scale |
| grade[modgrade_scale] | Test Scale 1 |
| Grade to pass | 3 |
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I click on "Edit assign Test Assignment 1" "link"
And I expand all fieldsets
@@ -107,7 +107,7 @@ Feature: We can set the grade to pass value
| Submission grade to pass | 40 |
| gradinggrade | 20 |
| Assessment grade to pass | 10 |
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I click on "Edit workshop Test Workshop 1 (submission)" "link"
And I expand all fieldsets
@@ -142,7 +142,7 @@ Feature: We can set the grade to pass value
And I add a "Quiz" to section "1" and I fill the form with:
| Name | Test Quiz 1 |
| Grade to pass | 9.5 |
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I click on "Edit quiz Test Quiz 1" "link"
And I expand all fieldsets
@@ -160,7 +160,7 @@ Feature: We can set the grade to pass value
| Name | Test Lesson 1 |
| Description | Test |
| Grade to pass | 90 |
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I click on "Edit lesson Test Lesson 1" "link"
And I expand all fieldsets
@@ -179,7 +179,7 @@ Feature: We can set the grade to pass value
| Description | Test |
| Aggregate type | Average of ratings |
| Grade to pass | 90 |
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I click on "Edit data Test Database 1" "link"
And I expand all fieldsets
@@ -208,7 +208,7 @@ Feature: We can set the grade to pass value
| Description | Test |
| Aggregate type | Average of ratings |
| Grade to pass | 90 |
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I click on "Edit forum Test Forum 1" "link"
And I expand all fieldsets
@@ -227,7 +227,7 @@ Feature: We can set the grade to pass value
| Description | Test |
| Aggregate type | Average of ratings |
| Grade to pass | 90 |
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I click on "Edit glossary Test Glossary 1" "link"
And I expand all fieldsets
+4 -7
View File
@@ -51,17 +51,16 @@ Feature: We can enter in grades and view reports from the gradebook
And I log out
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name 1"
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment name 2"
And I press "Save changes"
Scenario: Grade a grade item and ensure the results display correctly in the gradebook
When I follow "User report"
When I go to "View > User report" in the course gradebook
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"
@@ -80,14 +79,12 @@ Feature: We can enter in grades and view reports from the gradebook
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 follow "Setup"
When I go to "Setup > Gradebook setup" in the course gradebook
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 follow "View"
And I follow "User report"
And I navigate to "Course grade settings" node in "Grade administration > Setup"
And I go to "Setup > Course grade settings" in the course gradebook
And I set the following fields to these values:
| Show weightings | Show |
And I press "Save changes"
@@ -80,8 +80,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I log out
And I log in as "student1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "User report"
And I go to "User report" in the course gradebook
Then I should see "50"
And I should see "Great job! Lol, not really."
@@ -108,7 +107,6 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I log out
And I log in as "student1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I follow "User report"
And I go to "User report" in the course gradebook
Then I should see "50"
And I should see "Great job! Lol, not really."
@@ -29,7 +29,7 @@ Feature: The student can navigate to their grades page and user grade report.
| assign | C2 | a4 | Test assignment four | Submit something! | 150 |
And I log in as "teacher1"
And I follow "Course 1"
And I click on "Grades" "link" in the "Navigation" "block"
And I go to "View > Grader report" in the course gradebook
And I turn editing mode on
And I give the grade "150.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "67.00" to the user "Student 1" for the grade item "Test assignment two"
@@ -38,7 +38,7 @@ Feature: The student can navigate to their grades page and user grade report.
Scenario: Navigation to Grades and the user grade report.
When I log in as "student1"
And I follow "Grades"
And I follow "Grades" in the user menu
Then the following should exist in the "overview-grade" table:
| Course name | Grade |
| Course 2 | - |
@@ -58,7 +58,7 @@ Feature: The student can navigate to their grades page and user grade report.
And I log out
And I log in as "student1"
And I follow "Student 1"
And I follow "Grades"
And I follow "Grades" in the user menu
Then I should see "My badges from Acceptance test site web site"
Scenario: Log in as a parent and view a childs grades.