1 |
efrain |
1 |
@mod @mod_assign @core_outcome
|
|
|
2 |
Feature: Outcome grading
|
|
|
3 |
In order to give an outcome to my student
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to grade a submission
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
11 |
| student0 | Student | 0 | student0@example.com |
|
|
|
12 |
| student1 | Student | 1 | student1@example.com |
|
|
|
13 |
And the following "courses" exist:
|
|
|
14 |
| fullname | shortname | category | groupmode |
|
|
|
15 |
| Course 1 | C1 | 0 | 1 |
|
|
|
16 |
And the following "course enrolments" exist:
|
|
|
17 |
| user | course | role |
|
|
|
18 |
| teacher1 | C1 | editingteacher |
|
|
|
19 |
| student0 | C1 | student |
|
|
|
20 |
| student1 | C1 | student |
|
|
|
21 |
And the following config values are set as admin:
|
|
|
22 |
| enableoutcomes | 1 |
|
|
|
23 |
And the following "scales" exist:
|
|
|
24 |
| name | scale |
|
|
|
25 |
| Test Scale | Disappointing, Excellent, Good, Very good, Excellent |
|
|
|
26 |
And the following "grade outcomes" exist:
|
|
|
27 |
| fullname | shortname | scale |
|
|
|
28 |
| Outcome Test | OT | Test Scale |
|
|
|
29 |
And I am on the "Course 1" "grades > outcomes" page logged in as admin
|
|
|
30 |
And I set the field "Available standard outcomes" to "Outcome Test"
|
|
|
31 |
And I click on "#add" "css_element"
|
|
|
32 |
And I log out
|
|
|
33 |
|
|
|
34 |
@javascript
|
|
|
35 |
Scenario: Giving an outcome to a student
|
|
|
36 |
Given I log in as "teacher1"
|
|
|
37 |
And I add a assign activity to course "Course 1" section "1" and I fill the form with:
|
|
|
38 |
| Assignment name | Test assignment name |
|
|
|
39 |
| ID number | Test assignment name |
|
|
|
40 |
| Description | Test assignment description |
|
|
|
41 |
| assignsubmission_onlinetext_enabled | 1 |
|
|
|
42 |
| Outcome Test | 1 |
|
|
|
43 |
And I am on the "Test assignment name" "assign activity" page logged in as student1
|
|
|
44 |
And I press "Add submission"
|
|
|
45 |
And I set the following fields to these values:
|
|
|
46 |
| Online text | My online text |
|
|
|
47 |
And I press "Save changes"
|
|
|
48 |
When I am on the "Test assignment name" "assign activity" page logged in as teacher1
|
|
|
49 |
And I follow "View all submissions"
|
|
|
50 |
And I click on "Grade" "link" in the "Student 0" "table_row"
|
|
|
51 |
And I set the following fields to these values:
|
|
|
52 |
| Outcome Test: | Excellent |
|
|
|
53 |
And I press "Save changes"
|
|
|
54 |
And I click on "Edit settings" "link"
|
|
|
55 |
When I am on the "Test assignment name" "assign activity" page
|
|
|
56 |
And I follow "View all submissions"
|
|
|
57 |
Then I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
|
|
|
58 |
And I should not see "Outcome Test: Excellent" in the "Student 1" "table_row"
|
|
|
59 |
|
|
|
60 |
@javascript
|
|
|
61 |
Scenario: Giving an outcome to a group submission
|
|
|
62 |
Given the following "users" exist:
|
|
|
63 |
| username | firstname | lastname | email |
|
|
|
64 |
| student2 | Student | 2 | student2@example.com |
|
|
|
65 |
And the following "course enrolments" exist:
|
|
|
66 |
| user | course | role |
|
|
|
67 |
| student2 | C1 | student |
|
|
|
68 |
And the following "groups" exist:
|
|
|
69 |
| name | course | idnumber |
|
|
|
70 |
| Group 1 | C1 | G1 |
|
|
|
71 |
And the following "group members" exist:
|
|
|
72 |
| user | group |
|
|
|
73 |
| student0 | G1 |
|
|
|
74 |
| student1 | G1 |
|
|
|
75 |
And I log in as "teacher1"
|
|
|
76 |
And I add a assign activity to course "Course 1" section "1" and I fill the form with:
|
|
|
77 |
| Assignment name | Test assignment name |
|
|
|
78 |
| Description | Test assignment description |
|
|
|
79 |
| ID number | Test assignment name |
|
|
|
80 |
| assignsubmission_onlinetext_enabled | 1 |
|
|
|
81 |
| Students submit in groups | Yes |
|
|
|
82 |
| Group mode | No groups |
|
|
|
83 |
| Outcome Test | 1 |
|
|
|
84 |
And I am on the "Test assignment name" "assign activity" page logged in as student1
|
|
|
85 |
And I press "Add submission"
|
|
|
86 |
And I set the following fields to these values:
|
|
|
87 |
| Online text | My online text |
|
|
|
88 |
And I press "Save changes"
|
|
|
89 |
When I am on the "Test assignment name" "assign activity" page logged in as teacher1
|
|
|
90 |
And I follow "View all submissions"
|
|
|
91 |
And I click on "Grade" "link" in the "Student 0" "table_row"
|
|
|
92 |
And I set the following fields to these values:
|
|
|
93 |
| Outcome Test: | Excellent |
|
|
|
94 |
| Apply grades and feedback to entire group | Yes |
|
|
|
95 |
And I press "Save changes"
|
|
|
96 |
And I am on the "Test assignment name" "assign activity" page
|
|
|
97 |
And I follow "View all submissions"
|
|
|
98 |
Then I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
|
|
|
99 |
And I should see "Outcome Test: Excellent" in the "Student 1" "table_row"
|
|
|
100 |
And I should not see "Outcome Test: Excellent" in the "Student 2" "table_row"
|
|
|
101 |
And I click on "Grade" "link" in the "Student 1" "table_row"
|
|
|
102 |
And I set the following fields to these values:
|
|
|
103 |
| Outcome Test: | Disappointing |
|
|
|
104 |
| Apply grades and feedback to entire group | No |
|
|
|
105 |
And I press "Save changes"
|
|
|
106 |
And I am on the "Test assignment name" "assign activity" page
|
|
|
107 |
And I follow "View all submissions"
|
|
|
108 |
And I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
|
|
|
109 |
And I should see "Outcome Test: Disappointing" in the "Student 1" "table_row"
|
|
|
110 |
And I should not see "Outcome Test: Disappointing" in the "Student 0" "table_row"
|
|
|
111 |
And I should not see "Outcome Test: Excellent" in the "Student 1" "table_row"
|
|
|
112 |
And I should not see "Outcome Test: Disappointing" in the "Student 2" "table_row"
|
|
|
113 |
And I should not see "Outcome Test: Excellent" in the "Student 2" "table_row"
|