Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_assign @javascript
2
Feature: In an assignment, teachers grade multiple students on one page
3
  In order to quickly give students grades and feedback
4
  As a teacher
5
  I need to grade multiple students on one page
6
 
7
  Scenario: Saving but not grading a grade should
8
    not indicate the grade is graded.
9
    Given the following "courses" exist:
10
      | fullname | shortname | category | groupmode |
11
      | Course 1 | C1 | 0 | 1 |
12
    And the following "users" exist:
13
      | username | firstname | lastname | email |
14
      | teacher1 | Teacher | 1 | teacher1@example.com |
15
      | student1 | Student | 1 | student1@example.com |
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
      | name                                          | Test assignment name    |
24
      | intro                                         | Submit your online text |
25
      | submissiondrafts                              | 0                       |
26
      | assignsubmission_onlinetext_enabled           | 1                       |
27
    And the following "mod_assign > submissions" exist:
28
      | assign                | user      | onlinetext                   |
29
      | Test assignment name  | student1  | I'm the student1 submission  |
30
 
31
    And I am on the "Test assignment name" Activity page logged in as teacher1
32
    And I follow "View all submissions"
33
    When I click on "Grade" "link" in the "Student 1" "table_row"
34
    And I press "Save changes"
35
    And I am on the "Test assignment name" "assign activity" page
36
    Then I should see "1" in the "Needs grading" "table_row"
37
 
38
  @skip_chrome_zerosize
39
  Scenario: Grade multiple students on one page
40
    Given the following "courses" exist:
41
      | fullname | shortname | category | groupmode |
42
      | Course 1 | C1 | 0 | 1 |
43
    And the following "users" exist:
44
      | username | firstname | lastname | email |
45
      | teacher1 | Teacher | 1 | teacher1@example.com |
46
      | student1 | Student | 1 | student1@example.com |
47
      | student2 | Student | 2 | student2@example.com |
48
    And the following "course enrolments" exist:
49
      | user | course | role |
50
      | teacher1 | C1 | editingteacher |
51
      | student1 | C1 | student |
52
      | student2 | C1 | student |
53
    And the following config values are set as admin:
54
      | enableoutcomes | 1 |
55
    When I am on the "Course 1" "grades > outcomes" page logged in as teacher1
56
    And I press "Manage outcomes"
57
    And I press "Add a new outcome"
58
    And I follow "Add a new scale"
59
    And I set the following fields to these values:
60
      | Name | 1337dom scale |
61
      | Scale | Noob, Nub, 1337, HaXor |
62
    And I press "Save changes"
63
    And I am on the "Course 1" "grades > outcomes" page
64
    And I press "Manage outcomes"
65
    And I press "Add a new outcome"
66
    And I set the following fields to these values:
67
      | Full name | M8d skillZ! |
68
      | Short name | skillZ! |
69
      | Scale | 1337dom scale |
70
    And I press "Save changes"
71
    And I add a assign activity to course "Course 1" section "1" and I fill the form with:
72
      | Assignment name | Test assignment name |
73
      | Description | Submit your online text |
74
      | assignsubmission_onlinetext_enabled | 1 |
75
      | assignsubmission_file_enabled | 0 |
76
      | M8d skillZ! | 1 |
77
    And I am on the "Test assignment name" "assign activity" page logged in as student1
78
    And I press "Add submission"
79
    And I set the following fields to these values:
80
      | Online text | I'm the student1 submission |
81
    And I press "Save changes"
82
    And I am on the "Test assignment name" "assign activity" page logged in as student2
83
    When I press "Add submission"
84
    And I set the following fields to these values:
85
      | Online text | I'm the student2 submission |
86
    And I press "Save changes"
87
    And I am on the "Test assignment name" "assign activity" page logged in as teacher1
88
    And I follow "View all submissions"
89
    And I click on "Grade" "link" in the "Student 1" "table_row"
90
    And I set the following fields to these values:
91
      | Grade out of 100 | 50.0 |
92
      | M8d skillZ! | 1337 |
93
      | Feedback comments | I'm the teacher first feedback |
94
    And I press "Save changes"
95
    And I follow "View all submissions"
96
    Then I click on "Quick grading" "checkbox"
97
    And I set the field "User grade" to "60.0"
98
    And I press "Save all quick grading changes"
99
    And I should see "The grade changes were saved"
100
    And I press "Continue"
101
    And I am on the "Test assignment name" "assign activity" page logged in as student1
102
    And I should see "I'm the teacher first feedback"
103
    And I should see "60.0"
104
    And I follow "Grades" in the user menu
105
    And I click on "Course 1" "link" in the "region-main" "region"
106
    And I should see "1337"
107
    And I am on the "Test assignment name" "assign activity" page logged in as student2
108
    And I should not see "I'm the teacher first feedback"
109
    And I should not see "60.0"
110
    And I follow "Grades" in the user menu
111
    And I click on "Course 1" "link" in the "region-main" "region"
112
    And I should not see "1337"
113
    And I am on the "Test assignment name" "assign activity" page logged in as teacher1
114
    And I follow "View all submissions"
115
    And I click on "Hide User picture" "link"
116
    And I click on "Hide Full name" "link"
117
    And I click on "Hide Email address" "link"
118
    And I click on "Hide Status" "link"
119
    And I click on "Hide Grade" "link"
120
    And I click on "Hide Edit" "link"
121
    And I click on "Hide Last modified (submission)" "link"
122
    And I click on "Hide Online text" "link"
123
    And I click on "Hide Submission comments" "link"
124
    And I click on "Hide Last modified (grade)" "link"
125
    And I click on "Hide Feedback comments" "link"
126
    And I click on "Hide Final grade" "link"
127
    And I click on "Hide Outcomes" "link"
128
    And I press "Save all quick grading changes"
129
    And I should see "The grade changes were saved"
130
    And I press "Continue"
131
    And I am on the "Test assignment name" "assign activity" page logged in as student1
132
    And I should see "I'm the teacher first feedback"
133
    And I should see "60.0"
134
    And I follow "Grades" in the user menu
135
    And I click on "Course 1" "link" in the "region-main" "region"
136
    And I should see "1337"
137
    And I am on the "Test assignment name" "assign activity" page logged in as student2
138
    And I should not see "I'm the teacher first feedback"
139
    And I should not see "60.0"
140
    And I follow "Grades" in the user menu
141
    And I click on "Course 1" "link" in the "region-main" "region"
142
    And I should not see "1337"