1 |
efrain |
1 |
@gradingform @gradingform_guide
|
|
|
2 |
Feature: Marking guides can be created and edited
|
|
|
3 |
In order to use and refine marking guide to grade students
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to edit previously used marking guides
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
11 |
| student1 | Student | 1 | student1@example.com |
|
|
|
12 |
And the following "courses" exist:
|
|
|
13 |
| fullname | shortname | format |
|
|
|
14 |
| Course 1 | C1 | topics |
|
|
|
15 |
And the following "course enrolments" exist:
|
|
|
16 |
| user | course | role |
|
|
|
17 |
| teacher1 | C1 | editingteacher |
|
|
|
18 |
| student1 | C1 | student |
|
|
|
19 |
And the following "activity" exists:
|
|
|
20 |
| activity | assign |
|
|
|
21 |
| course | C1 |
|
|
|
22 |
| idnumber | assign1 |
|
|
|
23 |
| name | Test assignment 1 name |
|
|
|
24 |
| intro | Test assignment description |
|
|
|
25 |
| section | 1 |
|
|
|
26 |
| assignsubmission_file_enabled | 1 |
|
|
|
27 |
| assignsubmission_onlinetext_enabled | 1 |
|
|
|
28 |
| assignsubmission_file_maxfiles | 1 |
|
|
|
29 |
| assignsubmission_file_maxsizebytes | 1000 |
|
|
|
30 |
| assignfeedback_comments_enabled | 1 |
|
|
|
31 |
| assignfeedback_file_enabled | 1 |
|
|
|
32 |
| assignfeedback_comments_commentinline | 1 |
|
|
|
33 |
And I am on the "Test assignment 1 name" "assign activity editing" page logged in as teacher1
|
|
|
34 |
And I set the following fields to these values:
|
|
|
35 |
| Grading method | Marking guide |
|
|
|
36 |
And I press "Save and return to course"
|
|
|
37 |
# Defining a marking guide
|
|
|
38 |
When I go to "Test assignment 1 name" advanced grading definition page
|
|
|
39 |
And I change window size to "large"
|
|
|
40 |
And I set the following fields to these values:
|
|
|
41 |
| Name | Assignment 1 marking guide |
|
|
|
42 |
| Description | Marking guide test description |
|
|
|
43 |
And I define the following marking guide:
|
|
|
44 |
| Criterion name | Description for students | Description for markers | Maximum score |
|
|
|
45 |
| Guide criterion A | Guide A description for students | Guide A description for markers | 30 |
|
|
|
46 |
| Guide criterion B | Guide B description for students | Guide B description for markers | 30 |
|
|
|
47 |
| Guide criterion C | Guide C description for students | Guide C description for markers | 40 |
|
|
|
48 |
And I define the following frequently used comments:
|
|
|
49 |
| Comment 1 |
|
|
|
50 |
| Comment 2 |
|
|
|
51 |
| Comment 3 |
|
|
|
52 |
| Comment "4" |
|
|
|
53 |
And I press "Save marking guide and make it ready"
|
|
|
54 |
Then I should see "Ready for use"
|
|
|
55 |
And I should see "Guide criterion A"
|
|
|
56 |
And I should see "Guide criterion B"
|
|
|
57 |
And I should see "Guide criterion C"
|
|
|
58 |
And I should see "Comment 1"
|
|
|
59 |
And I should see "Comment 2"
|
|
|
60 |
And I should see "Comment 3"
|
|
|
61 |
And I should see "Comment \"4\""
|
|
|
62 |
|
|
|
63 |
@javascript
|
|
|
64 |
Scenario: Deleting criterion and comment
|
|
|
65 |
# Deleting criterion
|
|
|
66 |
When I am on "Course 1" course homepage
|
|
|
67 |
And I go to "Test assignment 1 name" advanced grading definition page
|
|
|
68 |
And I click on "Delete criterion" "button" in the "Guide criterion B" "table_row"
|
|
|
69 |
And I press "Yes"
|
|
|
70 |
And I press "Save"
|
|
|
71 |
Then I should see "Guide criterion A"
|
|
|
72 |
And I should see "Guide criterion C"
|
|
|
73 |
And I should see "WARNING: Your marking guide has a maximum grade of 70 points"
|
|
|
74 |
But I should not see "Guide criterion B"
|
|
|
75 |
# Deleting a frequently used comment
|
|
|
76 |
When I am on "Course 1" course homepage
|
|
|
77 |
And I go to "Test assignment 1 name" advanced grading definition page
|
|
|
78 |
And I click on "Delete comment" "button" in the "Comment 3" "table_row"
|
|
|
79 |
And I press "Yes"
|
|
|
80 |
And I press "Save"
|
|
|
81 |
Then I should see "Comment 1"
|
|
|
82 |
And I should see "Comment 2"
|
|
|
83 |
And I should see "Comment \"4\""
|
|
|
84 |
But I should not see "Comment 3"
|
|
|
85 |
|
|
|
86 |
@javascript
|
|
|
87 |
Scenario: Grading and viewing graded marking guide
|
|
|
88 |
# Grading a student.
|
|
|
89 |
When I navigate to "Assignment" in current page administration
|
|
|
90 |
And I go to "Student 1" "Test assignment 1 name" activity advanced grading page
|
|
|
91 |
And I grade by filling the marking guide with:
|
|
|
92 |
| Guide criterion A | 25 | Very good |
|
|
|
93 |
| Guide criterion B | 20 | |
|
|
|
94 |
| Guide criterion C | 35 | Nice! |
|
|
|
95 |
# Inserting frequently used comment.
|
|
|
96 |
And I click on "Insert frequently used comment" "button" in the "Guide criterion B" "table_row"
|
|
|
97 |
And I wait "1" seconds
|
|
|
98 |
And I press "Comment \"4\""
|
|
|
99 |
And I wait "1" seconds
|
|
|
100 |
Then the field "Guide criterion B criterion remark" matches value "Comment \"4\""
|
|
|
101 |
When I press "Save changes"
|
|
|
102 |
And I am on the "Test assignment 1 name" "assign activity" page
|
|
|
103 |
And I follow "View all submissions"
|
|
|
104 |
# Checking that the user grade is correct.
|
|
|
105 |
Then I should see "80" in the "Student 1" "table_row"
|
|
|
106 |
And I log out
|
|
|
107 |
# Viewing it as a student.
|
|
|
108 |
And I am on the "Test assignment 1 name" "assign activity" page logged in as student1
|
|
|
109 |
And I should see "80" in the ".feedback" "css_element"
|
|
|
110 |
And I should see "Marking guide test description" in the ".feedback" "css_element"
|
|
|
111 |
And I should see "Very good"
|
|
|
112 |
And I should see "Comment \"4\""
|
|
|
113 |
And I should see "Nice!"
|
|
|
114 |
|
|
|
115 |
Scenario: I can use marking guides to grade and edit them later updating students grades with Javascript disabled
|