Proyectos de Subversion Moodle

Rev

Rev 11 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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"
1441 ariadna 49
    And I go to "Student 1" "Test assignment one" activity advanced grading page
1 efrain 50
    And I set the field "Grade" to "A"
51
    And I press "Save changes"
52
    And I click on "[data-action=next-user]" "css_element"
53
    And I set the field "Grade" to "B"
54
    And I press "Save changes"
55
    And I click on "[data-action=next-user]" "css_element"
56
    And I set the field "Grade" to "C"
57
    And I press "Save changes"
58
    And I click on "[data-action=next-user]" "css_element"
59
    And I set the field "Grade" to "D"
60
    And I press "Save changes"
61
    And I click on "[data-action=next-user]" "css_element"
62
    And I set the field "Grade" to "F"
63
    And I press "Save changes"
64
    And I am on "Course 1" course homepage
65
    And I navigate to "Setup > Course grade settings" in the course gradebook
66
    And I set the field "Show weightings" to "Show"
67
    And I set the field "Show contribution to course total" to "Show"
68
    And I press "Save changes"
69
    And I navigate to "View > Grader report" in the course gradebook
70
    And I turn editing mode on
71
 
72
  Scenario: Test displaying scales in gradebook in aggregation method Natural
73
    When I turn editing mode off
74
    Then the following should exist in the "user-grades" table:
11 efrain 75
      | -1-                | -2-                  | -3-      | -4-            | -5-          |
1 efrain 76
      | Student 1          | student1@example.com | A        | 5.00           | 5.00         |
77
      | Student 2          | student2@example.com | B        | 4.00           | 4.00         |
78
      | Student 3          | student3@example.com | C        | 3.00           | 3.00         |
79
      | Student 4          | student4@example.com | D        | 2.00           | 2.00         |
80
      | Student 5          | student5@example.com | F        | 1.00           | 1.00         |
81
    And the following should exist in the "user-grades" table:
82
      | -1-                | -2-      | -3-            | -4-          |
83
      | Range              | F–A      | 0.00–5.00      | 0.00–5.00    |
84
      | Overall average    | C        | 3.00           | 3.00         |
85
    And I navigate to "View > User report" in the course gradebook
1441 ariadna 86
    And I click on "Student 3" in the "Search users" search combo box
1 efrain 87
    And the following should exist in the "user-grade" table:
88
      | Grade item          | Grade | Range | Percentage | Contribution to course total |
89
      | Test assignment one | C     | F–A   | 50.00 %    | 60.00 %                      |
90
      | Sub category 1 total      | 3.00  | 0–5   | 60.00 %    | -                            |
91
      | Course total        | 3.00  | 0–5   | 60.00 %    | -                            |
92
    And I navigate to "Setup > Gradebook setup" in the course gradebook
93
    And the following should exist in the "grade_edit_tree_table" table:
94
      | Name                | Max grade |
95
      | Test assignment one | 5.00      |
96
      | Sub category 1 total      | 5.00      |
97
      | Course total        | 5.00      |
98
    And I log out
99
    And I log in as "student2"
100
    And I follow "Grades" in the user menu
101
    And I click on "Course 1" "link" in the "region-main" "region"
102
    And the following should exist in the "user-grade" table:
103
      | Grade item          | Grade | Range | Percentage | Contribution to course total |
104
      | Test assignment one | B     | F–A   | 75.00 %    | 80.00 %                      |
105
      | Sub category 1 total      | 4.00  | 0–5   | 80.00 %    | -                            |
106
      | Course total        | 4.00  | 0–5   | 80.00 %    | -                            |
107
 
108
  Scenario Outline: Test displaying scales in gradebook in all other aggregation methods
109
    Given I set the following settings for grade item "Course 1" of type "course" on "grader" page:
110
      | Aggregation | <aggregation> |
111
    And I set the following settings for grade item "Sub category 1" of type "category" on "grader" page:
112
      | Aggregation   | <aggregation>                |
113
      | Category name | Sub category (<aggregation>) |
114
      | Maximum grade | 5                            |
115
      | Minimum grade | 1                            |
116
    And I turn editing mode off
117
    Then the following should exist in the "user-grades" table:
11 efrain 118
      | -1-                | -2-                  | -3-      | -4-            | -5-            |
1 efrain 119
      | Student 1          | student1@example.com | A        | 5.00           | <coursetotal1> |
120
      | Student 2          | student2@example.com | B        | 4.00           | <coursetotal2> |
121
      | Student 3          | student3@example.com | C        | 3.00           | <coursetotal3> |
122
      | Student 4          | student4@example.com | D        | 2.00           | <coursetotal4> |
123
      | Student 5          | student5@example.com | F        | 1.00           | <coursetotal5> |
124
    And the following should exist in the "user-grades" table:
125
      | -1-                | -2-      | -3-            | -4-            |
126
      | Range              | F–A      | 1.00–5.00      | 0.00–100.00    |
127
      | Overall average    | C        | 3.00           | <overallavg>   |
128
    And I navigate to "View > User report" in the course gradebook
1441 ariadna 129
    And I click on "Student 3" in the "Search users" search combo box
1 efrain 130
    And the following should exist in the "user-grade" table:
131
      | Grade item                          | Grade          | Range | Percentage    | Contribution to course total |
132
      | Test assignment one                 | C              | F–A   | 50.00 %       | <contrib3>                   |
133
      | Sub category (<aggregation>) total  | 3.00           | 1–5   | 50.00 %       | -                            |
134
      | Course total                        | <coursetotal3> | 0–100 | <courseperc3> | -                            |
135
    And I navigate to "Setup > Gradebook setup" in the course gradebook
136
    And the following should exist in the "grade_edit_tree_table" table:
137
      | Name                | Max grade |
138
      | Test assignment one | A (5)     |
139
      | Sub category (<aggregation>) total |           |
140
      | Course total   |           |
141
    And I log out
142
    And I log in as "student2"
143
    And I follow "Grades" in the user menu
144
    And I click on "Course 1" "link" in the "region-main" "region"
145
    And the following should exist in the "user-grade" table:
146
      | Grade item                          | Grade          | Range | Percentage    | Contribution to course total |
147
      | Test assignment one                 | B              | F–A   | 75.00 %       | <contrib2>                   |
148
      | Sub category (<aggregation>) total  | 4.00           | 1–5   | 75.00 %       | -                            |
149
      | Course total                        | <coursetotal2> | 0–100 | <courseperc2> | -                            |
150
 
151
    Examples:
152
      | aggregation                         | coursetotal1 | coursetotal2 | coursetotal3 | coursetotal4 | coursetotal5 |overallavg | courseperc2 | courseperc3 | contrib2 | contrib3 |
153
      | Mean of grades                      | 100.00       | 75.00        | 50.00        | 25.00        | 0.00         | 50.00     | 75.00 %     | 50.00 %     | 75.00 %  | 50.00 %  |
154
      | Weighted mean of grades             | 100.00       | 75.00        | 50.00        | 25.00        | 0.00         | 50.00     | 75.00 %     | 50.00 %     | 75.00 %  | 50.00 %  |
155
      | 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 %  |
156
      | 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 %  |
157
      | Median of grades                    | 100.00       | 75.00        | 50.00        | 25.00        | 0.00         | 50.00     | 75.00 %     | 50.00 %     | 75.00 %  | 50.00 %  |
158
      | Lowest grade                        | 100.00       | 75.00        | 50.00        | 25.00        | 0.00         | 50.00     | 75.00 %     | 50.00 %     | 75.00 %  | 50.00 %  |
159
      | Highest grade                       | 100.00       | 75.00        | 50.00        | 25.00        | 0.00         | 50.00     | 75.00 %     | 50.00 %     | 75.00 %  | 50.00 %  |
160
      | Mode of grades                      | 100.00       | 75.00        | 50.00        | 25.00        | 0.00         | 50.00     | 75.00 %     | 50.00 %     | 75.00 %  | 50.00 %  |