1 |
efrain |
1 |
@core @core_grades @javascript
|
|
|
2 |
Feature: View gradebook when single item scales are used
|
|
|
3 |
In order to use single item scales to grade activities
|
|
|
4 |
As an teacher
|
|
|
5 |
I need to be able to view gradebook with single item scales
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given I log in as "admin"
|
|
|
9 |
And the "multilang" filter is "on"
|
|
|
10 |
And the "multilang" filter applies to "content and headings"
|
|
|
11 |
And I set the following administration settings values:
|
|
|
12 |
| grade_report_showranges | 1 |
|
|
|
13 |
| 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 |
|
|
|
14 |
And I navigate to "Grades > Scales" in site administration
|
|
|
15 |
And I press "Add a new scale"
|
|
|
16 |
And I set the following fields to these values:
|
|
|
17 |
| Name | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Singleitem |
|
|
|
18 |
| Scale | Ace! |
|
|
|
19 |
And I press "Save changes"
|
|
|
20 |
And I log out
|
|
|
21 |
And the following "courses" exist:
|
|
|
22 |
| fullname | shortname |
|
|
|
23 |
| Course 1 | C1 |
|
|
|
24 |
And the following "users" exist:
|
|
|
25 |
| username | firstname | lastname | email | idnumber |
|
|
|
26 |
| teacher1 | Teacher | 1 | teacher1@example.com | t1 |
|
|
|
27 |
| student1 | Student | 1 | student1@example.com | s1 |
|
|
|
28 |
| student2 | Student | 2 | student2@example.com | s2 |
|
|
|
29 |
And the following "course enrolments" exist:
|
|
|
30 |
| user | course | role |
|
|
|
31 |
| teacher1 | C1 | editingteacher |
|
|
|
32 |
| student1 | C1 | student |
|
|
|
33 |
| student2 | C1 | student |
|
|
|
34 |
And the following "grade categories" exist:
|
|
|
35 |
| fullname | course |
|
|
|
36 |
| <span lang='en' class='multilang'>EN</span><span lang='fr' class='multilang'>FR</span> Sub category 1 | C1 |
|
|
|
37 |
And the following "activities" exist:
|
|
|
38 |
| activity | course | idnumber | name | intro | gradecategory |
|
|
|
39 |
| assign | C1 | a1 | Test assignment one | Submit something! | <span lang='en' class='multilang'>EN</span><span lang='fr' class='multilang'>FR</span> Sub category 1 |
|
|
|
40 |
And the "multilang" filter is "on"
|
|
|
41 |
And the "multilang" filter applies to "content and headings"
|
|
|
42 |
And I am on the "Test assignment one" "assign activity editing" page logged in as teacher1
|
|
|
43 |
And I expand all fieldsets
|
|
|
44 |
And I set the field "grade[modgrade_type]" to "Scale"
|
|
|
45 |
And I set the field "grade[modgrade_scale]" to "EN Singleitem"
|
|
|
46 |
And I press "Save and display"
|
|
|
47 |
And I follow "View all submissions"
|
|
|
48 |
And I click on "Grade" "link" in the "Student 1" "table_row"
|
|
|
49 |
And I set the field "Grade" to "A"
|
|
|
50 |
And I press "Save changes"
|
|
|
51 |
When I am on the "Course 1" "grades > course grade settings" page
|
|
|
52 |
And I set the field "Show weightings" to "Show"
|
|
|
53 |
And I set the field "Show contribution to course total" to "Show"
|
|
|
54 |
And I press "Save changes"
|
|
|
55 |
And I navigate to "View > Grader report" in the course gradebook
|
|
|
56 |
And I turn editing mode on
|
|
|
57 |
|
|
|
58 |
Scenario: Test displaying single item scales in gradebook in aggregation method Natural
|
|
|
59 |
When I turn editing mode off
|
|
|
60 |
Then the following should exist in the "user-grades" table:
|
11 |
efrain |
61 |
| -1- | -2- | -3- | -4- | -5- |
|
1 |
efrain |
62 |
| Student 1 | student1@example.com | Ace! | 1.00 | 1.00 |
|
|
|
63 |
And the following should exist in the "user-grades" table:
|
|
|
64 |
| -1- | -2- | -3- | -4- |
|
|
|
65 |
| Range | Ace!–Ace! | 0.00–1.00 | 0.00–1.00 |
|
|
|
66 |
| Overall average | Ace! | 1.00 | 1.00 |
|
|
|
67 |
And I navigate to "View > User report" in the course gradebook
|
|
|
68 |
And I click on "Student 1" in the "user" search widget
|
|
|
69 |
And the following should exist in the "user-grade" table:
|
|
|
70 |
| Grade item | Grade | Range | Contribution to course total |
|
|
|
71 |
| Test assignment one | Ace! | Ace!–Ace! | 100.00 % |
|
|
|
72 |
| ENFR Sub category 1 total | 1.00 | 0–1 | - |
|
|
|
73 |
| Course total | 1.00 | 0–1 | - |
|
|
|
74 |
And I click on "Student 2" in the "user" search widget
|
|
|
75 |
And the following should exist in the "user-grade" table:
|
|
|
76 |
| Grade item | Grade | Range | Contribution to course total |
|
|
|
77 |
| Test assignment one | - | Ace!–Ace! | - |
|
|
|
78 |
| ENFR Sub category 1 total | - | 0–1 | - |
|
|
|
79 |
| Course total | - | 0–1 | - |
|
|
|
80 |
And I navigate to "Setup > Gradebook setup" in the course gradebook
|
|
|
81 |
And the following should exist in the "grade_edit_tree_table" table:
|
|
|
82 |
| Name | Max grade |
|
|
|
83 |
| Test assignment one | 1.00 |
|
|
|
84 |
| ENFR Sub category 1 total | 1.00 |
|
|
|
85 |
| Course total | 1.00 |
|
|
|
86 |
|
|
|
87 |
Scenario Outline: Test displaying single item scales in gradebook in all other aggregation methods
|
|
|
88 |
Given I set the following settings for grade item "Course 1" of type "course" on "grader" page:
|
|
|
89 |
| Aggregation | <aggregation> |
|
|
|
90 |
And I set the following settings for grade item "<span lang='en' class='multilang'>EN</span><span lang='fr' class='multilang'>FR</span> Sub category 1" of type "category" on "grader" page:
|
|
|
91 |
| Aggregation | <aggregation> |
|
|
|
92 |
| Category name | Sub category (<aggregation>) |
|
|
|
93 |
And I turn editing mode off
|
|
|
94 |
Then the following should exist in the "user-grades" table:
|
11 |
efrain |
95 |
| -1- | -2- | -3- | -4- | -5- |
|
1 |
efrain |
96 |
| Student 1 | student1@example.com | Ace! | <cattotal1> | <coursetotal1> |
|
|
|
97 |
| Student 2 | student2@example.com | - | - | - |
|
|
|
98 |
And the following should exist in the "user-grades" table:
|
|
|
99 |
| -1- | -2- | -3- | -4- |
|
|
|
100 |
| Range | Ace!–Ace! | 0.00–100.0 | 0.00–100.00 |
|
|
|
101 |
| Overall average | Ace! | <catavg> | <overallavg> |
|
|
|
102 |
And I navigate to "View > User report" in the course gradebook
|
|
|
103 |
And I click on "Student 1" in the "user" search widget
|
|
|
104 |
And the following should exist in the "user-grade" table:
|
|
|
105 |
| Grade item | Grade | Range | Contribution to course total |
|
|
|
106 |
| Test assignment one | Ace! | Ace!–Ace! | <contrib1> |
|
|
|
107 |
| Sub category (<aggregation>) total | <cattotal1> | 0–100 | - |
|
|
|
108 |
| Course total | <coursetotal1> | 0–100 | - |
|
|
|
109 |
And I navigate to "Setup > Gradebook setup" in the course gradebook
|
|
|
110 |
And the following should exist in the "grade_edit_tree_table" table:
|
|
|
111 |
| Name | Max grade |
|
|
|
112 |
| Test assignment one | Ace! (1) |
|
|
|
113 |
| Sub category (<aggregation>) total | 100.00 |
|
|
|
114 |
| Course total | 100.00 |
|
|
|
115 |
|
|
|
116 |
Examples:
|
|
|
117 |
| aggregation | contrib1 | cattotal1 | coursetotal1 | catavg | overallavg |
|
|
|
118 |
| Mean of grades | 100.00 % | 100.00 | 100.00 | 100.00 | 100.00 |
|
|
|
119 |
| Weighted mean of grades | 0.00 % | 100.00 | 100.00 | 100.00 | 100.00 |
|
|
|
120 |
| Simple weighted mean of grades | 0.00 % | - | - | - | - |
|
|
|
121 |
| Mean of grades (with extra credits) | 100.00 % | 100.00 | 100.00 | 100.00 | 100.00 |
|
|
|
122 |
| Median of grades | 100.00 % | 100.00 | 100.00 | 100.00 | 100.00 |
|
|
|
123 |
| Lowest grade | 100.00 % | 100.00 | 100.00 | 100.00 | 100.00 |
|
|
|
124 |
| Highest grade | 100.00 % | 100.00 | 100.00 | 100.00 | 100.00 |
|
|
|
125 |
| Mode of grades | 100.00 % | 100.00 | 100.00 | 100.00 | 100.00 |
|