1 |
efrain |
1 |
@mod @mod_workshop
|
|
|
2 |
Feature: Workshop grade submission and assessment
|
|
|
3 |
In order to use workshop activity
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to be able to grade student's submissions and feedbacks
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| student1 | Sam1 | Student1 | student1@example.com |
|
|
|
11 |
| student2 | Sam2 | Student2 | student2@example.com |
|
|
|
12 |
| student3 | Sam3 | Student3 | student3@example.com |
|
|
|
13 |
| student4 | Sam4 | Student4 | student3@example.com |
|
|
|
14 |
| teacher1 | Terry1 | Teacher1 | teacher1@example.com |
|
|
|
15 |
And the following "courses" exist:
|
|
|
16 |
| fullname | shortname |
|
|
|
17 |
| Course1 | c1 |
|
|
|
18 |
And the following "course enrolments" exist:
|
|
|
19 |
| user | course | role |
|
|
|
20 |
| student1 | c1 | student |
|
|
|
21 |
| student2 | c1 | student |
|
|
|
22 |
| student3 | c1 | student |
|
|
|
23 |
| student4 | c1 | student |
|
|
|
24 |
| teacher1 | c1 | editingteacher |
|
|
|
25 |
And the following "activities" exist:
|
|
|
26 |
| activity | name | intro | course | idnumber | submissiontypetext | submissiontypefile | grade | gradinggrade | gradedecimals | overallfeedbackmethod |
|
|
|
27 |
| workshop | TestWorkshop | Test workshop description | c1 | workshop1 | 2 | 1 | 10 | 5 | 1 | 2 |
|
|
|
28 |
|
|
|
29 |
Scenario: Assess submissions and gradings in workshop with javascript enabled
|
|
|
30 |
# teacher1 sets up assessment form and changes the phase to submission
|
|
|
31 |
Given I log in as "teacher1"
|
|
|
32 |
And I am on the "Course1" course page logged in as teacher1
|
|
|
33 |
And I edit assessment form in workshop "TestWorkshop" as:
|
|
|
34 |
| id_description__idx_0_editor | Aspect1 |
|
|
|
35 |
| id_description__idx_1_editor | |
|
|
|
36 |
| id_description__idx_2_editor | |
|
|
|
37 |
And I change phase in workshop "TestWorkshop" to "Submission phase"
|
|
|
38 |
# student1 submits
|
|
|
39 |
And I am on the TestWorkshop "workshop activity" page logged in as student1
|
|
|
40 |
And I should see "Submit your work"
|
|
|
41 |
And I add a submission in workshop "TestWorkshop" as:
|
|
|
42 |
| Title | Submission1 |
|
|
|
43 |
| Submission content | Some content |
|
|
|
44 |
And I should see "Submission1"
|
|
|
45 |
# teacher1 allocates reviewers and changes the phase to assessment
|
|
|
46 |
When I am on the TestWorkshop "workshop activity" page logged in as teacher1
|
|
|
47 |
Then the following should exist in the "grading-report" table:
|
|
|
48 |
| First name / Last name | Submission / Last modified |
|
|
|
49 |
| Sam1 Student1 | Submission1 |
|
|
|
50 |
| Sam2 Student2 | No submission found for this user |
|
|
|
51 |
| Sam3 Student3 | No submission found for this user |
|
|
|
52 |
| Sam4 Student4 | No submission found for this user |
|
|
|
53 |
And I allocate submissions in workshop "TestWorkshop" as:
|
|
|
54 |
| Participant | Reviewer |
|
|
|
55 |
| Sam1 Student1 | Sam2 Student2 |
|
|
|
56 |
| Sam1 Student1 | Sam3 Student3 |
|
|
|
57 |
| Sam1 Student1 | Sam4 Student4 |
|
|
|
58 |
And I am on the TestWorkshop "workshop activity" page
|
|
|
59 |
And I should see "to allocate: 0"
|
|
|
60 |
And I change phase in workshop "TestWorkshop" to "Assessment phase"
|
|
|
61 |
# student2 assesses work of student1
|
|
|
62 |
And I am on the TestWorkshop "workshop activity" page logged in as student2
|
|
|
63 |
And I should see "Submission1"
|
|
|
64 |
And I should see "Sam1 Student1"
|
|
|
65 |
And I assess submission "Sam1" in workshop "TestWorkshop" as:
|
|
|
66 |
| grade__idx_0 | 10 / 10 |
|
|
|
67 |
| peercomment__idx_0 | Amazing |
|
|
|
68 |
| Feedback for the author | Good work |
|
|
|
69 |
And I should see "Already graded"
|
|
|
70 |
# student3 assesses work of student1
|
|
|
71 |
And I am on the TestWorkshop "workshop activity" page logged in as student3
|
|
|
72 |
And I should see "Submission1"
|
|
|
73 |
And I should see "Sam1 Student1"
|
|
|
74 |
And I assess submission "Sam1" in workshop "TestWorkshop" as:
|
|
|
75 |
| grade__idx_0 | 10 / 10 |
|
|
|
76 |
| peercomment__idx_0 | Amazing |
|
|
|
77 |
| Feedback for the author | Good work |
|
|
|
78 |
And I should see "Already graded"
|
|
|
79 |
# student4 assesses work of student1
|
|
|
80 |
And I am on the TestWorkshop "workshop activity" page logged in as student4
|
|
|
81 |
And I should see "Submission1"
|
|
|
82 |
And I should see "Sam1 Student1"
|
|
|
83 |
And I assess submission "Sam1" in workshop "TestWorkshop" as:
|
|
|
84 |
| grade__idx_0 | 6 / 10 |
|
|
|
85 |
| peercomment__idx_0 | You can do better |
|
|
|
86 |
| Feedback for the author | Good work |
|
|
|
87 |
And I should see "Already graded"
|
|
|
88 |
# teacher1 makes sure he can see all peer grades and changes to grading evaluation phase
|
|
|
89 |
And I am on the TestWorkshop "workshop activity" page logged in as teacher1
|
|
|
90 |
And I should see grade "10.0" for workshop participant "Sam1" set by peer "Sam2"
|
|
|
91 |
And I should see grade "10.0" for workshop participant "Sam1" set by peer "Sam3"
|
|
|
92 |
And I should see grade "6.0" for workshop participant "Sam1" set by peer "Sam4"
|
|
|
93 |
And the following should exist in the "grading-report" table:
|
|
|
94 |
| First name / Last name | Submission / Last modified |
|
|
|
95 |
| Sam2 Student2 | No submission found for this user |
|
|
|
96 |
| Sam3 Student3 | No submission found for this user |
|
|
|
97 |
| Sam4 Student4 | No submission found for this user |
|
|
|
98 |
And I change phase in workshop "TestWorkshop" to "Grading evaluation phase"
|
|
|
99 |
And I press "Re-calculate grades"
|
|
|
100 |
And the following should exist in the "grading-report" table:
|
|
|
101 |
| First name / Last name | Submission / Last modified | Grade for submission (of 10.0) | Grades given | Grade for assessment (of 5.0) |
|
|
|
102 |
| Sam1 Student1 | Submission1 | 8.7 | - | - |
|
|
|
103 |
| Sam2 Student2 | No submission found for this user | - | 10.0 (5.0) | 5.0 |
|
|
|
104 |
| Sam3 Student3 | No submission found for this user | - | 10.0 (5.0) | 5.0 |
|
|
|
105 |
| Sam4 Student4 | No submission found for this user | - | 6.0 (3.2) | 3.2 |
|
|
|
106 |
And I click on "6.0 (3.2)" "link" in the "Sam4 Student4" "table_row"
|
|
|
107 |
And I set the following fields to these values:
|
|
|
108 |
| Override grade for assessment | 4 |
|
|
|
109 |
And I press "Save and close"
|
|
|
110 |
And the following should exist in the "grading-report" table:
|
|
|
111 |
| First name / Last name | Grades given | Grade for assessment (of 5.0) |
|
|
|
112 |
| Sam1 Student1 | - | - |
|
|
|
113 |
| Sam4 Student4 | 6.0 (3.2 / 4.0) | 4.0 |
|
|
|
114 |
# Undo teacher1 overrides the grade on assessment by student2
|
|
|
115 |
And I click on "6.0 (3.2 / 4.0)" "link" in the "Sam4 Student4" "table_row"
|
|
|
116 |
And I set the following fields to these values:
|
|
|
117 |
| Override grade for assessment | Not overridden |
|
|
|
118 |
And I press "Save and close"
|
|
|
119 |
And the following should exist in the "grading-report" table:
|
|
|
120 |
| First name / Last name | Grades given | Grade for assessment (of 5.0) |
|
|
|
121 |
| Sam1 Student1 | - | - |
|
|
|
122 |
| Sam4 Student4 | 6.0 (3.2) | 3.2 |
|