1 |
efrain |
1 |
@core @core_grades @javascript
|
|
|
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 the "C1" "grades > gradebook setup" page
|
|
|
28 |
And I choose the "Add grade item" item in the "Add" action menu
|
|
|
29 |
And I set the following fields to these values:
|
|
|
30 |
| Item name | MI 1 |
|
|
|
31 |
| Grade category | C1 |
|
|
|
32 |
And I click on "Save" "button" in the "New grade item" "dialogue"
|
|
|
33 |
And I choose the "Add grade item" item in the "Add" action menu
|
|
|
34 |
And I set the following fields to these values:
|
|
|
35 |
| Item name | MI 2 |
|
|
|
36 |
| Grade category | C1 |
|
|
|
37 |
And I click on "Save" "button" in the "New grade item" "dialogue"
|
|
|
38 |
And I choose the "Add grade item" item in the "Add" action menu
|
|
|
39 |
And I set the following fields to these values:
|
|
|
40 |
| Item name | MI 3 |
|
|
|
41 |
| Grade category | CAT1 |
|
|
|
42 |
And I click on "Save" "button" in the "New grade item" "dialogue"
|
|
|
43 |
And I choose the "Add grade item" item in the "Add" action menu
|
|
|
44 |
And I set the following fields to these values:
|
|
|
45 |
| Item name | MI 4 |
|
|
|
46 |
| Grade category | CAT1 |
|
|
|
47 |
And I click on "Save" "button" in the "New grade item" "dialogue"
|
|
|
48 |
And I choose the "Add grade item" item in the "Add" action menu
|
|
|
49 |
And I set the following fields to these values:
|
|
|
50 |
| Item name | MI 5 |
|
|
|
51 |
| Grade category | C1 |
|
|
|
52 |
And I click on "Save" "button" in the "New grade item" "dialogue"
|
|
|
53 |
And I set "=[[mi1]]+[[mi2]]+[[mi3]]" calculation for grade item "MI 5" with idnumbers:
|
|
|
54 |
| MI 1 | mi1 |
|
|
|
55 |
| MI 2 | mi2 |
|
|
|
56 |
| MI 3 | mi3 |
|
|
|
57 |
And I navigate to "Setup > Course grade settings" in the course gradebook
|
|
|
58 |
And I set the field "Min and max grades used in calculation" to "Default (Min and max grades as specified in grade item settings)"
|
|
|
59 |
And I set the field "Show weightings" to "Show"
|
|
|
60 |
And I set the field "Show contribution to course total" to "Show"
|
|
|
61 |
And I press "Save changes"
|
|
|
62 |
And I navigate to "Setup > Gradebook setup" in the course gradebook
|
|
|
63 |
And I set the following settings for grade item "CAT1" of type "category" on "setup" page:
|
|
|
64 |
| Aggregation | Natural |
|
|
|
65 |
And I am on the "C1" "grades > Grader report > View" page logged in as "teacher1"
|
|
|
66 |
And I turn editing mode on
|
|
|
67 |
And I give the grade "75.00" to the user "Student 1" for the grade item "MI 1"
|
|
|
68 |
And I give the grade "25.00" to the user "Student 1" for the grade item "MI 2"
|
|
|
69 |
And I give the grade "50.00" to the user "Student 1" for the grade item "MI 3"
|
|
|
70 |
And I give the grade "100.00" to the user "Student 1" for the grade item "MI 4"
|
|
|
71 |
And I give the grade "20.00" to the user "Student 2" for the grade item "MI 1"
|
|
|
72 |
And I give the grade "10.00" to the user "Student 2" for the grade item "MI 3"
|
|
|
73 |
And I press "Save changes"
|
|
|
74 |
And I navigate to "View > User report" in the course gradebook
|
|
|
75 |
And I click on "Student 1" in the "user" search widget
|
|
|
76 |
And the following should exist in the "user-grade" table:
|
|
|
77 |
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
|
|
|
78 |
| MI 1 | 20.00 % | 75.00 | 0–100 | 75.00 % | 15.00 % |
|
|
|
79 |
| MI 2 | 20.00 % | 25.00 | 0–100 | 25.00 % | 5.00 % |
|
|
|
80 |
| MI 3 | 50.00 % | 50.00 | 0–100 | 50.00 % | 10.00 % |
|
|
|
81 |
| MI 4 | 50.00 % | 100.00 | 0–100 | 100.00 % | 20.00 % |
|
|
|
82 |
| MI 5 | 20.00 % | 100.00 | 0–100 | 100.00 % | 20.00 % |
|
|
|
83 |
| CAT1 total | 40.00 % | 150.00 | 0–200 | 75.00 % | - |
|
|
|
84 |
| Course total | - | 350.00 | 0–500 | 70.00 % | - |
|
|
|
85 |
And I click on "Student 2" in the "user" search widget
|
|
|
86 |
And the following should exist in the "user-grade" table:
|
|
|
87 |
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
|
|
|
88 |
| MI 1 | 33.33 % | 20.00 | 0–100 | 20.00 % | 6.67 % |
|
|
|
89 |
| MI 2 | 0.00 % | - | 0–100 | - | 0.00 % |
|
|
|
90 |
| MI 3 | 100.00 % | 10.00 | 0–100 | 10.00 % | 3.33 % |
|
|
|
91 |
| MI 4 | 0.00 % | - | 0–100 | - | 0.00 % |
|
|
|
92 |
| MI 5 | 33.33 % | 30.00 | 0–100 | 30.00 % | 10.00 % |
|
|
|
93 |
| CAT1 total | 33.33 % | 10.00 | 0–100 | 10.00 % | - |
|
|
|
94 |
| Course total | - | 60.00 | 0–300 | 20.00 % | - |
|
|
|
95 |
And I navigate to "Setup > Gradebook setup" in the course gradebook
|
|
|
96 |
And I set the following settings for grade item "MI 1" of type "gradeitem" on "setup" page:
|
|
|
97 |
| Rescale existing grades | No |
|
|
|
98 |
| Maximum grade | 50.00 |
|
|
|
99 |
| Minimum grade | 5.00 |
|
|
|
100 |
And I set the following settings for grade item "MI 3" of type "gradeitem" on "setup" page:
|
|
|
101 |
| Rescale existing grades | No |
|
|
|
102 |
| Maximum grade | 50.00 |
|
|
|
103 |
| Minimum grade | 5.00 |
|
|
|
104 |
And I navigate to "View > User report" in the course gradebook
|
|
|
105 |
And I click on "Student 1" in the "user" search widget
|
|
|
106 |
And the following should exist in the "user-grade" table:
|
|
|
107 |
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
|
|
|
108 |
| MI 1 | 12.50 % | 75.00 | 5–50 | 100.00 % | 18.75 % |
|
|
|
109 |
| MI 2 | 25.00 % | 25.00 | 0–100 | 25.00 % | 6.25 % |
|
|
|
110 |
| MI 3 | 33.33 % | 50.00 | 5–50 | 100.00 % | 12.50 % |
|
|
|
111 |
| MI 4 | 66.67 % | 100.00 | 0–100 | 100.00 % | 25.00 % |
|
|
|
112 |
| MI 5 | 25.00 % | 100.00 | 0–100 | 100.00 % | 25.00 % |
|
|
|
113 |
| CAT1 total | 37.50 % | 150.00 | 0–150 | 100.00 % | - |
|
|
|
114 |
| Course total | - | 350.00 | 0–400 | 87.50 % | - |
|
|
|
115 |
And I click on "Student 2" in the "user" search widget
|
|
|
116 |
And the following should exist in the "user-grade" table:
|
|
|
117 |
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
|
|
|
118 |
| MI 1 | 25.00 % | 20.00 | 5–50 | 33.33 % | 10.00 % |
|
|
|
119 |
| MI 2 | 0.00 % | - | 0–100 | - | 0.00 % |
|
|
|
120 |
| MI 3 | 100.00 % | 10.00 | 5–50 | 11.11 % | 5.00 % |
|
|
|
121 |
| MI 4 | 0.00 % | - | 0–100 | - | 0.00 % |
|
|
|
122 |
| MI 5 | 50.00 % | 30.00 | 0–100 | 30.00 % | 15.00 % |
|
|
|
123 |
| CAT1 total | 25.00 % | 10.00 | 0–50 | 20.00 % | - |
|
|
|
124 |
| Course total | - | 60.00 | 0–200 | 30.00 % | - |
|
|
|
125 |
And I navigate to "Setup > Gradebook setup" in the course gradebook
|
|
|
126 |
And I set the following settings for grade item "MI 5" of type "gradeitem" on "setup" page:
|
|
|
127 |
| Rescale existing grades | No |
|
|
|
128 |
| Maximum grade | 200.00 |
|
|
|
129 |
And I navigate to "View > User report" in the course gradebook
|
|
|
130 |
And I click on "Student 1" in the "user" search widget
|
|
|
131 |
And the following should exist in the "user-grade" table:
|
|
|
132 |
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
|
|
|
133 |
| MI 5 | 40.00 % | 150.00 | 0–200 | 75.00 % | 30.00 % |
|
|
|
134 |
| Course total | - | 400.00 | 0–500 | 80.00 % | - |
|
|
|
135 |
And I click on "Student 2" in the "user" search widget
|
|
|
136 |
And the following should exist in the "user-grade" table:
|
|
|
137 |
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
|
|
|
138 |
| MI 5 | 66.67 % | 30.00 | 0–200 | 15.00 % | 10.00 % |
|
|
|
139 |
| Course total | - | 60.00 | 0–300 | 20.00 % | - |
|
|
|
140 |
And I navigate to "Setup > Course grade settings" in the course gradebook
|
|
|
141 |
When I set the field "Min and max grades used in calculation" to "Initial min and max grades"
|
|
|
142 |
And I press "Save changes"
|
|
|
143 |
And I navigate to "View > User report" in the course gradebook
|
|
|
144 |
And I click on "Student 1" in the "user" search widget
|
|
|
145 |
Then the following should exist in the "user-grade" table:
|
|
|
146 |
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
|
|
|
147 |
| MI 1 | 16.67 % | 75.00 | 0–100 | 75.00 % | 12.50 % |
|
|
|
148 |
| MI 2 | 16.67 % | 25.00 | 0–100 | 25.00 % | 4.17 % |
|
|
|
149 |
| MI 3 | 50.00 % | 50.00 | 0–100 | 50.00 % | 8.33 % |
|
|
|
150 |
| MI 4 | 50.00 % | 100.00 | 0–100 | 100.00 % | 16.67 % |
|
|
|
151 |
| MI 5 | 33.33 % | 150.00 | 0–200 | 75.00 % | 25.00 % |
|
|
|
152 |
| CAT1 total | 33.33 % | 150.00 | 0–200 | 75.00 % | - |
|
|
|
153 |
| Course total | - | 400.00 | 0–600 | 66.67 % | - |
|
|
|
154 |
And I click on "Student 2" in the "user" search widget
|
|
|
155 |
And the following should exist in the "user-grade" table:
|
|
|
156 |
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
|
|
|
157 |
| MI 1 | 25.00 % | 20.00 | 0–100 | 20.00 % | 5.00 % |
|
|
|
158 |
| MI 2 | 0.00 % | - | 0–100 | - | 0.00 % |
|
|
|
159 |
| MI 3 | 100.00 % | 10.00 | 0–100 | 10.00 % | 2.50 % |
|
|
|
160 |
| MI 4 | 0.00 % | - | 0–100 | - | 0.00 % |
|
|
|
161 |
| MI 5 | 50.00 % | 30.00 | 0–200 | 15.00 % | 7.50 % |
|
|
|
162 |
| CAT1 total | 25.00 % | 10.00 | 0–100 | 10.00 % | - |
|
|
|
163 |
| Course total | - | 60.00 | 0–400 | 15.00 % | - |
|