1 |
efrain |
1 |
@core @core_grades @javascript
|
|
|
2 |
Feature: View gradebook when scales are used
|
|
|
3 |
In order to use scales to grade activities
|
|
|
4 |
As an teacher
|
|
|
5 |
I need to be able to view gradebook with scales
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given I log in as "admin"
|
|
|
9 |
And I set the following administration settings values:
|
|
|
10 |
| grade_report_showranges | 1 |
|
|
|
11 |
| 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 |
|
|
|
12 |
And I navigate to "Grades > Scales" in site administration
|
|
|
13 |
And I press "Add a new scale"
|
|
|
14 |
And I set the following fields to these values:
|
|
|
15 |
| Name | Letterscale |
|
|
|
16 |
| Scale | F,D,C,B,A |
|
|
|
17 |
And I press "Save changes"
|
|
|
18 |
And I log out
|
|
|
19 |
And the following "courses" exist:
|
|
|
20 |
| fullname | shortname |
|
|
|
21 |
| Course 1 | C1 |
|
|
|
22 |
And the following "users" exist:
|
|
|
23 |
| username | firstname | lastname | email | idnumber |
|
|
|
24 |
| teacher1 | Teacher | 1 | teacher1@example.com | t1 |
|
|
|
25 |
| student1 | Student | 1 | student1@example.com | s1 |
|
|
|
26 |
| student2 | Student | 2 | student2@example.com | s2 |
|
|
|
27 |
| student3 | Student | 3 | student3@example.com | s3 |
|
|
|
28 |
| student4 | Student | 4 | student4@example.com | s4 |
|
|
|
29 |
| student5 | Student | 5 | student5@example.com | s5 |
|
|
|
30 |
And the following "course enrolments" exist:
|
|
|
31 |
| user | course | role |
|
|
|
32 |
| teacher1 | C1 | editingteacher |
|
|
|
33 |
| student1 | C1 | student |
|
|
|
34 |
| student2 | C1 | student |
|
|
|
35 |
| student3 | C1 | student |
|
|
|
36 |
| student4 | C1 | student |
|
|
|
37 |
| student5 | C1 | student |
|
|
|
38 |
And the following "grade categories" exist:
|
|
|
39 |
| fullname | course |
|
|
|
40 |
| Sub category 1 | C1 |
|
|
|
41 |
And the following "activities" exist:
|
|
|
42 |
| activity | course | idnumber | name | intro | gradecategory |
|
|
|
43 |
| assign | C1 | a1 | Test assignment one | Submit something! | Sub category 1 |
|
|
|
44 |
And I am on the "Test assignment one" "assign activity editing" page logged in as teacher1
|
|
|
45 |
And I expand all fieldsets
|
|
|
46 |
And I set the field "grade[modgrade_type]" to "Scale"
|
|
|
47 |
And I set the field "grade[modgrade_scale]" to "Letterscale"
|
|
|
48 |
And I press "Save and display"
|
|
|
49 |
And I follow "View all submissions"
|
|
|
50 |
And I click on "Grade" "link" in the "Student 1" "table_row"
|
|
|
51 |
And I set the field "Grade" to "A"
|
|
|
52 |
And I press "Save changes"
|
|
|
53 |
And I click on "[data-action=next-user]" "css_element"
|
|
|
54 |
And I set the field "Grade" to "B"
|
|
|
55 |
And I press "Save changes"
|
|
|
56 |
And I click on "[data-action=next-user]" "css_element"
|
|
|
57 |
And I set the field "Grade" to "C"
|
|
|
58 |
And I press "Save changes"
|
|
|
59 |
And I click on "[data-action=next-user]" "css_element"
|
|
|
60 |
And I set the field "Grade" to "D"
|
|
|
61 |
And I press "Save changes"
|
|
|
62 |
And I click on "[data-action=next-user]" "css_element"
|
|
|
63 |
And I set the field "Grade" to "F"
|
|
|
64 |
And I press "Save changes"
|
|
|
65 |
And I am on "Course 1" course homepage
|
|
|
66 |
And I navigate to "Setup > Course grade settings" in the course gradebook
|
|
|
67 |
And I set the field "Show weightings" to "Show"
|
|
|
68 |
And I set the field "Show contribution to course total" to "Show"
|
|
|
69 |
And I press "Save changes"
|
|
|
70 |
And I navigate to "View > Grader report" in the course gradebook
|
|
|
71 |
And I turn editing mode on
|
|
|
72 |
|
|
|
73 |
Scenario: Test displaying scales in gradebook in aggregation method Natural
|
|
|
74 |
When I turn editing mode off
|
|
|
75 |
Then the following should exist in the "user-grades" table:
|
11 |
efrain |
76 |
| -1- | -2- | -3- | -4- | -5- |
|
1 |
efrain |
77 |
| Student 1 | student1@example.com | A | 5.00 | 5.00 |
|
|
|
78 |
| Student 2 | student2@example.com | B | 4.00 | 4.00 |
|
|
|
79 |
| Student 3 | student3@example.com | C | 3.00 | 3.00 |
|
|
|
80 |
| Student 4 | student4@example.com | D | 2.00 | 2.00 |
|
|
|
81 |
| Student 5 | student5@example.com | F | 1.00 | 1.00 |
|
|
|
82 |
And the following should exist in the "user-grades" table:
|
|
|
83 |
| -1- | -2- | -3- | -4- |
|
|
|
84 |
| Range | F–A | 0.00–5.00 | 0.00–5.00 |
|
|
|
85 |
| Overall average | C | 3.00 | 3.00 |
|
|
|
86 |
And I navigate to "View > User report" in the course gradebook
|
|
|
87 |
And I click on "Student 3" in the "user" search widget
|
|
|
88 |
And the following should exist in the "user-grade" table:
|
|
|
89 |
| Grade item | Grade | Range | Percentage | Contribution to course total |
|
|
|
90 |
| Test assignment one | C | F–A | 50.00 % | 60.00 % |
|
|
|
91 |
| Sub category 1 total | 3.00 | 0–5 | 60.00 % | - |
|
|
|
92 |
| Course total | 3.00 | 0–5 | 60.00 % | - |
|
|
|
93 |
And I navigate to "Setup > Gradebook setup" in the course gradebook
|
|
|
94 |
And the following should exist in the "grade_edit_tree_table" table:
|
|
|
95 |
| Name | Max grade |
|
|
|
96 |
| Test assignment one | 5.00 |
|
|
|
97 |
| Sub category 1 total | 5.00 |
|
|
|
98 |
| Course total | 5.00 |
|
|
|
99 |
And I log out
|
|
|
100 |
And I log in as "student2"
|
|
|
101 |
And I follow "Grades" in the user menu
|
|
|
102 |
And I click on "Course 1" "link" in the "region-main" "region"
|
|
|
103 |
And the following should exist in the "user-grade" table:
|
|
|
104 |
| Grade item | Grade | Range | Percentage | Contribution to course total |
|
|
|
105 |
| Test assignment one | B | F–A | 75.00 % | 80.00 % |
|
|
|
106 |
| Sub category 1 total | 4.00 | 0–5 | 80.00 % | - |
|
|
|
107 |
| Course total | 4.00 | 0–5 | 80.00 % | - |
|
|
|
108 |
|
|
|
109 |
Scenario Outline: Test displaying scales in gradebook in all other aggregation methods
|
|
|
110 |
Given I set the following settings for grade item "Course 1" of type "course" on "grader" page:
|
|
|
111 |
| Aggregation | <aggregation> |
|
|
|
112 |
And I set the following settings for grade item "Sub category 1" of type "category" on "grader" page:
|
|
|
113 |
| Aggregation | <aggregation> |
|
|
|
114 |
| Category name | Sub category (<aggregation>) |
|
|
|
115 |
| Maximum grade | 5 |
|
|
|
116 |
| Minimum grade | 1 |
|
|
|
117 |
And I turn editing mode off
|
|
|
118 |
Then the following should exist in the "user-grades" table:
|
11 |
efrain |
119 |
| -1- | -2- | -3- | -4- | -5- |
|
1 |
efrain |
120 |
| Student 1 | student1@example.com | A | 5.00 | <coursetotal1> |
|
|
|
121 |
| Student 2 | student2@example.com | B | 4.00 | <coursetotal2> |
|
|
|
122 |
| Student 3 | student3@example.com | C | 3.00 | <coursetotal3> |
|
|
|
123 |
| Student 4 | student4@example.com | D | 2.00 | <coursetotal4> |
|
|
|
124 |
| Student 5 | student5@example.com | F | 1.00 | <coursetotal5> |
|
|
|
125 |
And the following should exist in the "user-grades" table:
|
|
|
126 |
| -1- | -2- | -3- | -4- |
|
|
|
127 |
| Range | F–A | 1.00–5.00 | 0.00–100.00 |
|
|
|
128 |
| Overall average | C | 3.00 | <overallavg> |
|
|
|
129 |
And I navigate to "View > User report" in the course gradebook
|
|
|
130 |
And I click on "Student 3" in the "user" search widget
|
|
|
131 |
And the following should exist in the "user-grade" table:
|
|
|
132 |
| Grade item | Grade | Range | Percentage | Contribution to course total |
|
|
|
133 |
| Test assignment one | C | F–A | 50.00 % | <contrib3> |
|
|
|
134 |
| Sub category (<aggregation>) total | 3.00 | 1–5 | 50.00 % | - |
|
|
|
135 |
| Course total | <coursetotal3> | 0–100 | <courseperc3> | - |
|
|
|
136 |
And I navigate to "Setup > Gradebook setup" in the course gradebook
|
|
|
137 |
And the following should exist in the "grade_edit_tree_table" table:
|
|
|
138 |
| Name | Max grade |
|
|
|
139 |
| Test assignment one | A (5) |
|
|
|
140 |
| Sub category (<aggregation>) total | |
|
|
|
141 |
| Course total | |
|
|
|
142 |
And I log out
|
|
|
143 |
And I log in as "student2"
|
|
|
144 |
And I follow "Grades" in the user menu
|
|
|
145 |
And I click on "Course 1" "link" in the "region-main" "region"
|
|
|
146 |
And the following should exist in the "user-grade" table:
|
|
|
147 |
| Grade item | Grade | Range | Percentage | Contribution to course total |
|
|
|
148 |
| Test assignment one | B | F–A | 75.00 % | <contrib2> |
|
|
|
149 |
| Sub category (<aggregation>) total | 4.00 | 1–5 | 75.00 % | - |
|
|
|
150 |
| Course total | <coursetotal2> | 0–100 | <courseperc2> | - |
|
|
|
151 |
|
|
|
152 |
Examples:
|
|
|
153 |
| aggregation | coursetotal1 | coursetotal2 | coursetotal3 | coursetotal4 | coursetotal5 |overallavg | courseperc2 | courseperc3 | contrib2 | contrib3 |
|
|
|
154 |
| Mean of grades | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % |
|
|
|
155 |
| Weighted mean of grades | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % |
|
|
|
156 |
| Simple weighted mean of grades | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % |
|
|
|
157 |
| Mean of grades (with extra credits) | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % |
|
|
|
158 |
| Median of grades | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % |
|
|
|
159 |
| Lowest grade | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % |
|
|
|
160 |
| Highest grade | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % |
|
|
|
161 |
| Mode of grades | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % |
|