[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_grades 2 Feature: We can choose what min or max grade to use when aggregating grades. 3 In order to what min or max grade to use 4 As an teacher 5 I can update modify a course setting 6 7 Scenario: Changing the min or max grade to use updates the grades accordingly 8 Given the following "courses" exist: 9 | fullname | shortname | category | groupmode | 10 | C1 | C1 | 0 | 1 | 11 And the following "users" exist: 12 | username | firstname | lastname | email | idnumber | 13 | teacher1 | Teacher | 1 | teacher1@example.com | t1 | 14 | student1 | Student | 1 | student1@example.com | s1 | 15 | student2 | Student | 2 | student2@example.com | s2 | 16 And the following "course enrolments" exist: 17 | user | course | role | 18 | teacher1 | C1 | editingteacher | 19 | student1 | C1 | student | 20 | student2 | C1 | student | 21 And the following "grade categories" exist: 22 | fullname | course | 23 | CAT1 | C1 | 24 And I log in as "admin" 25 And I set the following administration settings values: 26 | grade_minmaxtouse | Min and max grades as specified in grade item settings | 27 And I am on site homepage 28 And I follow "C1" 29 And I navigate to "Grades" node in "Course administration" 30 And I navigate to "Gradebook setup" node in "Grade administration > Setup" 31 And I press "Add grade item" 32 And I set the following fields to these values: 33 | Item name | MI 1 | 34 | Grade category | C1 | 35 And I press "Save changes" 36 And I press "Add grade item" 37 And I set the following fields to these values: 38 | Item name | MI 2 | 39 | Grade category | C1 | 40 And I press "Save changes" 41 And I press "Add grade item" 42 And I set the following fields to these values: 43 | Item name | MI 3 | 44 | Grade category | CAT1 | 45 And I press "Save changes" 46 And I press "Add grade item" 47 And I set the following fields to these values: 48 | Item name | MI 4 | 49 | Grade category | CAT1 | 50 And I press "Save changes" 51 And I press "Add grade item" 52 And I set the following fields to these values: 53 | Item name | MI 5 | 54 | Grade category | C1 | 55 And I press "Save changes" 56 And I set "=[[mi1]]+[[mi2]]+[[mi3]]" calculation for grade item "MI 5" with idnumbers: 57 | MI 1 | mi1 | 58 | MI 2 | mi2 | 59 | MI 3 | mi3 | 60 And I navigate to "Course grade settings" node in "Grade administration > Setup" 61 And I set the field "Min and max grades used in calculation" to "Default (Min and max grades as specified in grade item settings)" 62 And I set the field "Show weightings" to "Show" 63 And I set the field "Show contribution to course total" to "Show" 64 And I press "Save changes" 65 And I navigate to "Gradebook setup" node in "Grade administration > Setup" 66 And I set the following settings for grade item "CAT1": 67 | Aggregation | Natural | 68 And I log out 69 And I log in as "teacher1" 70 And I follow "C1" 71 And I navigate to "Grades" node in "Course administration" 72 And I turn editing mode on 73 And I give the grade "75.00" to the user "Student 1" for the grade item "MI 1" 74 And I give the grade "25.00" to the user "Student 1" for the grade item "MI 2" 75 And I give the grade "50.00" to the user "Student 1" for the grade item "MI 3" 76 And I give the grade "100.00" to the user "Student 1" for the grade item "MI 4" 77 And I give the grade "20.00" to the user "Student 2" for the grade item "MI 1" 78 And I give the grade "10.00" to the user "Student 2" for the grade item "MI 3" 79 And I press "Save changes" 80 And I follow "User report" 81 And I select "Student 1" from the "Select all or one user" singleselect 82 And the following should exist in the "user-grade" table: 83 | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | 84 | MI 1 | 20.00 % | 75.00 | 0–100 | 75.00 % | 15.00 % | 85 | MI 2 | 20.00 % | 25.00 | 0–100 | 25.00 % | 5.00 % | 86 | MI 3 | 50.00 % | 50.00 | 0–100 | 50.00 % | 10.00 % | 87 | MI 4 | 50.00 % | 100.00 | 0–100 | 100.00 % | 20.00 % | 88 | MI 5 | 20.00 % | 100.00 | 0–100 | 100.00 % | 20.00 % | 89 | CAT1 total | 40.00 % | 150.00 | 0–200 | 75.00 % | - | 90 | Course total | - | 350.00 | 0–500 | 70.00 % | - | 91 And I select "Student 2" from the "Select all or one user" singleselect 92 And the following should exist in the "user-grade" table: 93 | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | 94 | MI 1 | 33.33 % | 20.00 | 0–100 | 20.00 % | 6.67 % | 95 | MI 2 | 0.00 % | - | 0–100 | - | 0.00 % | 96 | MI 3 | 100.00 % | 10.00 | 0–100 | 10.00 % | 3.33 % | 97 | MI 4 | 0.00 % | - | 0–100 | - | 0.00 % | 98 | MI 5 | 33.33 % | 30.00 | 0–100 | 30.00 % | 10.00 % | 99 | CAT1 total | 33.33 % | 10.00 | 0–100 | 10.00 % | - | 100 | Course total | - | 60.00 | 0–300 | 20.00 % | - | 101 And I navigate to "Gradebook setup" node in "Grade administration > Setup" 102 And I set the following settings for grade item "MI 1": 103 | Maximum grade | 50.00 | 104 | Minimum grade | 5.00 | 105 | Rescale existing grades | No | 106 And I set the following settings for grade item "MI 3": 107 | Maximum grade | 50.00 | 108 | Minimum grade | 5.00 | 109 | Rescale existing grades | No | 110 And I follow "User report" 111 And I select "Student 1" from the "Select all or one user" singleselect 112 And the following should exist in the "user-grade" table: 113 | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | 114 | MI 1 | 12.50 % | 75.00 | 5–50 | 100.00 % | 18.75 % | 115 | MI 2 | 25.00 % | 25.00 | 0–100 | 25.00 % | 6.25 % | 116 | MI 3 | 33.33 % | 50.00 | 5–50 | 100.00 % | 12.50 % | 117 | MI 4 | 66.67 % | 100.00 | 0–100 | 100.00 % | 25.00 % | 118 | MI 5 | 25.00 % | 100.00 | 0–100 | 100.00 % | 25.00 % | 119 | CAT1 total | 37.50 % | 150.00 | 0–150 | 100.00 % | - | 120 | Course total | - | 350.00 | 0–400 | 87.50 % | - | 121 And I select "Student 2" from the "Select all or one user" singleselect 122 And the following should exist in the "user-grade" table: 123 | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | 124 | MI 1 | 25.00 % | 20.00 | 5–50 | 33.33 % | 10.00 % | 125 | MI 2 | 0.00 % | - | 0–100 | - | 0.00 % | 126 | MI 3 | 100.00 % | 10.00 | 5–50 | 11.11 % | 5.00 % | 127 | MI 4 | 0.00 % | - | 0–100 | - | 0.00 % | 128 | MI 5 | 50.00 % | 30.00 | 0–100 | 30.00 % | 15.00 % | 129 | CAT1 total | 25.00 % | 10.00 | 0–50 | 20.00 % | - | 130 | Course total | - | 60.00 | 0–200 | 30.00 % | - | 131 And I navigate to "Gradebook setup" node in "Grade administration > Setup" 132 And I set the following settings for grade item "MI 5": 133 | Maximum grade | 200.00 | 134 | Rescale existing grades | No | 135 And I follow "User report" 136 And I select "Student 1" from the "Select all or one user" singleselect 137 And the following should exist in the "user-grade" table: 138 | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | 139 | MI 5 | 40.00 % | 150.00 | 0–200 | 75.00 % | 30.00 % | 140 | Course total | - | 400.00 | 0–500 | 80.00 % | - | 141 And I select "Student 2" from the "Select all or one user" singleselect 142 And the following should exist in the "user-grade" table: 143 | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | 144 | MI 5 | 66.67 % | 30.00 | 0–200 | 15.00 % | 10.00 % | 145 | Course total | - | 60.00 | 0–300 | 20.00 % | - | 146 And I navigate to "Course grade settings" node in "Grade administration > Setup" 147 When I set the field "Min and max grades used in calculation" to "Initial min and max grades" 148 And I press "Save changes" 149 And I follow "User report" 150 And I select "Student 1" from the "Select all or one user" singleselect 151 Then the following should exist in the "user-grade" table: 152 | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | 153 | MI 1 | 16.67 % | 75.00 | 0–100 | 75.00 % | 12.50 % | 154 | MI 2 | 16.67 % | 25.00 | 0–100 | 25.00 % | 4.17 % | 155 | MI 3 | 50.00 % | 50.00 | 0–100 | 50.00 % | 8.33 % | 156 | MI 4 | 50.00 % | 100.00 | 0–100 | 100.00 % | 16.67 % | 157 | MI 5 | 33.33 % | 150.00 | 0–200 | 75.00 % | 25.00 % | 158 | CAT1 total | 33.33 % | 150.00 | 0–200 | 75.00 % | - | 159 | Course total | - | 400.00 | 0–600 | 66.67 % | - | 160 And I select "Student 2" from the "Select all or one user" singleselect 161 And the following should exist in the "user-grade" table: 162 | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | 163 | MI 1 | 25.00 % | 20.00 | 0–100 | 20.00 % | 5.00 % | 164 | MI 2 | 0.00 % | - | 0–100 | - | 0.00 % | 165 | MI 3 | 100.00 % | 10.00 | 0–100 | 10.00 % | 2.50 % | 166 | MI 4 | 0.00 % | - | 0–100 | - | 0.00 % | 167 | MI 5 | 50.00 % | 30.00 | 0–200 | 15.00 % | 7.50 % | 168 | CAT1 total | 25.00 % | 10.00 | 0–100 | 10.00 % | - | 169 | Course total | - | 60.00 | 0–400 | 15.00 % | - |
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |