1 |
efrain |
1 |
@gradingform @gradingform_rubric
|
|
|
2 |
Feature: Rubrics can be created and edited
|
|
|
3 |
In order to use and refine rubrics to grade students
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to edit previously used rubrics
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: I can use rubrics to grade and edit them later updating students grades
|
|
|
9 |
Given the following "users" exist:
|
|
|
10 |
| username | firstname | lastname | email |
|
|
|
11 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
12 |
| student1 | Student | 1 | student1@example.com |
|
|
|
13 |
And the following "courses" exist:
|
|
|
14 |
| fullname | shortname | format |
|
|
|
15 |
| Course 1 | C1 | topics |
|
|
|
16 |
And the following "course enrolments" exist:
|
|
|
17 |
| user | course | role |
|
|
|
18 |
| teacher1 | C1 | editingteacher |
|
|
|
19 |
| student1 | C1 | student |
|
|
|
20 |
And the following "activity" exists:
|
|
|
21 |
| activity | assign |
|
|
|
22 |
| course | C1 |
|
|
|
23 |
| section | 1 |
|
|
|
24 |
| name | Test assignment 1 name |
|
|
|
25 |
| intro | Test assignment description |
|
|
|
26 |
| assignfeedback_comments_enabled | 1 |
|
|
|
27 |
| assignfeedback_editpdf_enabled | 1 |
|
|
|
28 |
| advancedgradingmethod_submissions | rubric |
|
|
|
29 |
And I log in as "teacher1"
|
|
|
30 |
And I am on "Course 1" course homepage with editing mode on
|
|
|
31 |
When I go to "Test assignment 1 name" advanced grading definition page
|
|
|
32 |
# Defining a rubric.
|
|
|
33 |
And I set the following fields to these values:
|
|
|
34 |
| Name | Assignment 1 rubric |
|
|
|
35 |
| Description | Rubric test description |
|
|
|
36 |
And I define the following rubric:
|
|
|
37 |
| TMP Criterion 1 | TMP Level 11 | 11 | TMP Level 12 | 12 |
|
|
|
38 |
| TMP Criterion 2 | TMP Level 21 | 21 | TMP Level 22 | 22 |
|
|
|
39 |
| TMP Criterion 3 | TMP Level 31 | 31 | TMP Level 32 | 32 |
|
|
|
40 |
| TMP Criterion 4 | TMP Level 41 | 41 | TMP Level 42 | 42 |
|
|
|
41 |
# Checking that only the last ones are saved.
|
|
|
42 |
And I define the following rubric:
|
|
|
43 |
| Criterion 1 | Level 11 | 1 | Level 12 | 20 | Level 13 | 40 | Level 14 | 50 |
|
|
|
44 |
| Criterion 2 | Level 21 | 10 | Level 22 | 20 | Level 23 | 30 | | |
|
|
|
45 |
| Criterion 3 | Level 31 | 5 | Level 32 | 20 | | | | |
|
|
|
46 |
And I press "Save as draft"
|
|
|
47 |
And I go to "Test assignment 1 name" advanced grading definition page
|
|
|
48 |
And I click on "Move down" "button" in the "Criterion 1" "table_row"
|
|
|
49 |
And I press "Save rubric and make it ready"
|
|
|
50 |
Then I should see "Ready for use"
|
|
|
51 |
# Grading two students.
|
|
|
52 |
And I navigate to "Assignment" in current page administration
|
|
|
53 |
And I go to "Student 1" "Test assignment 1 name" activity advanced grading page
|
|
|
54 |
And I grade by filling the rubric with:
|
|
|
55 |
| Criterion 1 | 50 | Very good |
|
|
|
56 |
And I press "Save changes"
|
|
|
57 |
# Checking that it complains if you don't select a level for each criterion.
|
|
|
58 |
And I should see "Please choose something for each criterion"
|
|
|
59 |
And I grade by filling the rubric with:
|
|
|
60 |
| Criterion 1 | 50 | Very good |
|
|
|
61 |
| Criterion 2 | 10 | Mmmm, you can do it better |
|
|
|
62 |
| Criterion 3 | 5 | Not good |
|
|
|
63 |
And I complete the advanced grading form with these values:
|
|
|
64 |
| Feedback comments | In general... work harder... |
|
|
|
65 |
# Checking that the user grade is correct.
|
|
|
66 |
And I should see "65" in the "Student 1" "table_row"
|
|
|
67 |
# Updating the user grade.
|
|
|
68 |
And I am on the "Test assignment 1 name" "assign activity" page
|
|
|
69 |
And I go to "Student 1" "Test assignment 1 name" activity advanced grading page
|
|
|
70 |
And I grade by filling the rubric with:
|
|
|
71 |
| Criterion 1 | 20 | Bad, I changed my mind |
|
|
|
72 |
| Criterion 2 | 10 | Mmmm, you can do it better |
|
|
|
73 |
| Criterion 3 | 5 | Not good |
|
|
|
74 |
#And the level with "50" points was previously selected for the rubric criterion "Criterion 1"
|
|
|
75 |
#And the level with "20" points is selected for the rubric criterion "Criterion 1"
|
|
|
76 |
And I save the advanced grading form
|
|
|
77 |
And I should see "35" in the "Student 1" "table_row"
|
|
|
78 |
And I log out
|
|
|
79 |
# Viewing it as a student.
|
|
|
80 |
And I am on the "Test assignment 1 name" "assign activity" page logged in as student1
|
|
|
81 |
And I should see "35" in the ".feedback" "css_element"
|
|
|
82 |
And I should see "Rubric test description" in the ".feedback" "css_element"
|
|
|
83 |
And I should see "In general... work harder..."
|
|
|
84 |
And the level with "10" points is selected for the rubric criterion "Criterion 2"
|
|
|
85 |
And the level with "20" points is selected for the rubric criterion "Criterion 1"
|
|
|
86 |
And the level with "5" points is selected for the rubric criterion "Criterion 3"
|
|
|
87 |
And I log out
|
|
|
88 |
And I am on the "Course 1" course page logged in as teacher1
|
|
|
89 |
# Editing a rubric definition without regrading students.
|
|
|
90 |
And I go to "Test assignment 1 name" advanced grading definition page
|
|
|
91 |
And "Save as draft" "button" should not exist
|
|
|
92 |
And I click on "Move up" "button" in the "Criterion 1" "table_row"
|
|
|
93 |
And I replace "Level 11" rubric level with "Level 11 edited" in "Criterion 1" criterion
|
|
|
94 |
And I press "Save"
|
|
|
95 |
And I should see "You are about to save changes to a rubric that has already been used for grading."
|
|
|
96 |
And I set the field "menurubricregrade" to "Do not mark for regrade"
|
|
|
97 |
And I press "Continue"
|
|
|
98 |
And I log out
|
|
|
99 |
# Check that the student still sees the grade.
|
|
|
100 |
And I am on the "Test assignment 1 name" "assign activity" page logged in as student1
|
|
|
101 |
And I should see "35" in the ".feedback" "css_element"
|
|
|
102 |
And the level with "20" points is selected for the rubric criterion "Criterion 1"
|
|
|
103 |
And I log out
|
|
|
104 |
# Editing a rubric with significant changes.
|
|
|
105 |
And I log in as "teacher1"
|
|
|
106 |
And I am on "Course 1" course homepage
|
|
|
107 |
And I go to "Test assignment 1 name" advanced grading definition page
|
|
|
108 |
And I click on "Move down" "button" in the "Criterion 2" "table_row"
|
|
|
109 |
And I replace "1" rubric level with "60" in "Criterion 1" criterion
|
|
|
110 |
And I press "Save"
|
|
|
111 |
And I should see "You are about to save significant changes to a rubric that has already been used for grading. The gradebook value will be unchanged, but the rubric will be hidden from students until their item is regraded."
|
|
|
112 |
And I press "Continue"
|
|
|
113 |
And I log out
|
|
|
114 |
# Check that the student doesn't see the grade.
|
|
|
115 |
And I am on the "Test assignment 1 name" "assign activity" page logged in as student1
|
|
|
116 |
And I should see "35" in the ".feedback" "css_element"
|
|
|
117 |
And the level with "20" points is not selected for the rubric criterion "Criterion 1"
|
|
|
118 |
And I log out
|
|
|
119 |
# Regrade student.
|
|
|
120 |
And I am on the "Test assignment 1 name" "assign activity" page logged in as teacher1
|
|
|
121 |
And I go to "Student 1" "Test assignment 1 name" activity advanced grading page
|
|
|
122 |
And I should see "The rubric definition was changed after this student had been graded. The student can not see this rubric until you check the rubric and update the grade."
|
|
|
123 |
And I save the advanced grading form
|
|
|
124 |
And I log out
|
|
|
125 |
# Check that the student sees the grade again.
|
|
|
126 |
And I am on the "Test assignment 1 name" "assign activity" page logged in as student1
|
|
|
127 |
And I should see "31.82" in the ".feedback" "css_element"
|
|
|
128 |
And the level with "20" points is not selected for the rubric criterion "Criterion 1"
|
|
|
129 |
# Hide all rubric info for students
|
|
|
130 |
And I log out
|
|
|
131 |
And I am on the "Course 1" course page logged in as teacher1
|
|
|
132 |
And I go to "Test assignment 1 name" advanced grading definition page
|
|
|
133 |
And I set the field "Allow users to preview rubric (otherwise it will only be displayed after grading)" to ""
|
|
|
134 |
And I set the field "Display rubric description during evaluation" to ""
|
|
|
135 |
And I set the field "Display rubric description to those being graded" to ""
|
|
|
136 |
And I set the field "Display points for each level during evaluation" to ""
|
|
|
137 |
And I set the field "Display points for each level to those being graded" to ""
|
|
|
138 |
And I press "Save"
|
|
|
139 |
And I set the field "menurubricregrade" to "Do not mark for regrade"
|
|
|
140 |
And I press "Continue"
|
|
|
141 |
And I log out
|
|
|
142 |
# Students should not see anything.
|
|
|
143 |
And I am on the "Test assignment 1 name" "assign activity" page logged in as student1
|
|
|
144 |
And I should not see "Criterion 1" in the ".submissionstatustable" "css_element"
|
|
|
145 |
And I should not see "Criterion 2" in the ".submissionstatustable" "css_element"
|
|
|
146 |
And I should not see "Criterion 3" in the ".submissionstatustable" "css_element"
|
|
|
147 |
And I should not see "Rubric test description" in the ".feedback" "css_element"
|