Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_assign
2
Feature: View the grading status of an assignment
3
  In order to test the grading status for assignments is displaying correctly
4
  As a student
5
  I need to view my grading status
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category | groupmode |
10
      | Course 1 | C1 | 0 | 1 |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email |
13
      | teacher1 | Teacher | 1 | teacher1@example.com |
14
      | student1 | Student | 1 | student1@example.com |
15
      | student2 | Student | 2 | student2@example.com |
16
    And the following "course enrolments" exist:
17
      | user | course | role |
18
      | teacher1 | C1 | editingteacher |
19
      | student1 | C1 | student |
20
      | student2 | C1 | student |
21
 
22
  @javascript
23
  Scenario: View the grading status for an assignment with marking workflow enabled
24
    Given the following "activity" exists:
25
      | activity                            | assign                  |
26
      | course                              | C1                      |
27
      | name                                | Test assignment name    |
28
      | intro                               | Submit your online text |
29
      | submissiondrafts                    | 0                       |
30
      | markingworkflow                     | 1                       |
31
      | assignfeedback_comments_enabled     | 1                       |
32
      | assignsubmission_onlinetext_enabled | 1                       |
33
    # Add a submission.
34
    And the following "mod_assign > submissions" exist:
35
      | assign                | user      | onlinetext                        |
36
      | Test assignment name  | student1  | I'm the student first submission  |
37
    # Mark the submission.
38
    And I am on the "Test assignment name" "assign activity" page logged in as teacher1
1441 ariadna 39
    And I navigate to "Submissions" in current page administration
1 efrain 40
    And I should see "Not marked" in the "Student 1" "table_row"
1441 ariadna 41
    And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row"
42
    And I choose "Grade" in the open action menu
1 efrain 43
    And I should see "1 of 2"
44
    And I click on "Change filters" "link"
45
    And I set the field "Filter" to "submitted"
46
    And I should see "1 of 1"
47
    And I set the field "Grade out of 100" to "50"
48
    And I set the field "Marking workflow state" to "In review"
49
    And I set the field "Feedback comments" to "Great job! Lol, not really."
50
    And I set the field "Notify student" to "0"
51
    And I press "Save changes"
52
    And I am on the "Test assignment name" "assign activity" page
1441 ariadna 53
    And I navigate to "Submissions" in current page administration
1 efrain 54
    And I should see "In review" in the "Student 1" "table_row"
55
    And I log out
56
    # View the grading status as a student.
57
    And I am on the "Test assignment name" "assign activity" page logged in as student1
58
    And I should see "In review" in the "Grading status" "table_row"
59
    And I should not see "Great job! Lol, not really."
60
    And I log out
61
    # Mark the submission again but set the marking workflow to 'Released'.
62
    And I am on the "Test assignment name" "assign activity" page logged in as teacher1
1441 ariadna 63
    And I navigate to "Submissions" in current page administration
1 efrain 64
    And I should see "In review" in the "Student 1" "table_row"
1441 ariadna 65
    And I change window size to "large"
66
    And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row"
67
    And I choose "Grade" in the open action menu
68
    And I change window size to "medium"
1 efrain 69
    And I should see "1 of 1"
70
    And I set the field "Marking workflow state" to "Released"
71
    And I press "Save changes"
72
    And I follow "View all submissions"
73
    And I should see "Released" in the "Student 1" "table_row"
74
    And I log out
75
    # View the grading status as a student.
76
    And I am on the "Test assignment name" "assign activity" page logged in as student1
77
    And I should see "Released" in the "Grading status" "table_row"
78
    And I should see "Great job! Lol, not really."
79
    And I log out
80
    # Now, change the status from 'Released' to 'In marking' (this will remove the grade from the gradebook).
81
    And I am on the "Test assignment name" "assign activity" page logged in as teacher1
1441 ariadna 82
    And I navigate to "Submissions" in current page administration
1 efrain 83
    And I should see "Released" in the "Student 1" "table_row"
1441 ariadna 84
    And I change window size to "large"
85
    And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row"
86
    And I choose "Grade" in the open action menu
87
    And I change window size to "medium"
1 efrain 88
    And I should see "1 of 1"
89
    And I set the field "Marking workflow state" to "In marking"
90
    And I set the field "Notify student" to "0"
91
    And I press "Save changes"
92
    And I am on the "Test assignment name" "assign activity" page
1441 ariadna 93
    And I navigate to "Submissions" in current page administration
1 efrain 94
    And I should see "In marking" in the "Student 1" "table_row"
95
    # The grade should also remain displayed as it's stored in the assign DB tables, but the final grade should be empty.
96
    And "Student 1" row "Grade" column of "generaltable" table should contain "50.00"
97
    And "Student 1" row "Final grade" column of "generaltable" table should contain "-"
1441 ariadna 98
    And I change window size to "large"
99
    And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row"
100
    And I choose "Grade" in the open action menu
101
    And I change window size to "medium"
1 efrain 102
    And I click on "Change filters" "link"
103
    And I set the field "Workflow filter" to "In review"
104
    And I should see "0 of 0"
105
 
106
  @javascript
107
  Scenario: View the grading status for an assignment with marking workflow disabled
108
    Given the following "activity" exists:
109
      | activity                            | assign                  |
110
      | course                              | C1                      |
111
      | name                                | Test assignment name    |
112
      | intro                               | Submit your online text |
113
      | submissiondrafts                    | 0                       |
114
      | assignfeedback_comments_enabled     | 1                       |
115
      | markingworkflow                     | 0                       |
116
      | assignsubmission_onlinetext_enabled | 1                       |
117
    # Add a submission.
118
    And the following "mod_assign > submissions" exist:
119
      | assign                | user      | onlinetext                        |
120
      | Test assignment name  | student1  | I'm the student first submission  |
121
    # Mark the submission.
122
    And I am on the "Test assignment name" "assign activity" page logged in as teacher1
1441 ariadna 123
    And I navigate to "Submissions" in current page administration
1 efrain 124
    And I should not see "Graded" in the "Student 1" "table_row"
1441 ariadna 125
    And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row"
126
    And I choose "Grade" in the open action menu
1 efrain 127
    And I should see "1 of 2"
128
    And I click on "Change filters" "link"
129
    And I set the field "Filter" to "submitted"
130
    And I should see "1 of 1"
131
    And I set the field "Grade out of 100" to "50"
132
    And I set the field "Feedback comments" to "Great job! Lol, not really."
133
    And I press "Save changes"
134
    And I click on "Edit settings" "link"
135
    And I am on the "Test assignment name" "assign activity" page
1441 ariadna 136
    And I navigate to "Submissions" in current page administration
1 efrain 137
    And I should see "Graded" in the "Student 1" "table_row"
138
    And I log out
139
    # View the grading status as a student.
140
    And I am on the "Test assignment name" "assign activity" page logged in as student1
141
    And I should see "Graded" in the "Grading status" "table_row"
142
    And I should see "Great job! Lol, not really."
143
    And I log out
144
    # Student makes a subsequent submission.
145
    And I am on the "Test assignment name" "assign activity" page logged in as student1
146
    And I press "Edit submission"
147
    And I set the following fields to these values:
148
      | Online text | I'm the student's second submission |
149
    And I press "Save changes"
150
    And I log out
151
    # Teacher marks the submission again after noticing the 'Graded - resubmitted'.
152
    And I am on the "Test assignment name" "assign activity" page logged in as teacher1
1441 ariadna 153
    And I navigate to "Submissions" in current page administration
1 efrain 154
    And I should see "Graded - resubmitted" in the "Student 1" "table_row"
155
    And I wait "10" seconds
1441 ariadna 156
    And I change window size to "large"
157
    And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row"
158
    And I choose "Grade" in the open action menu
159
    And I change window size to "medium"
1 efrain 160
    And I should see "1 of 1"
161
    And I set the field "Grade out of 100" to "99.99"
162
    And I set the field "Feedback comments" to "Even better job! Really."
163
    And I press "Save changes"
164
    And I click on "Edit settings" "link"
165
    And I am on the "Test assignment name" "assign activity" page
1441 ariadna 166
    And I navigate to "Submissions" in current page administration
1 efrain 167
    And I should see "Graded" in the "Student 1" "table_row"
168
    And I log out
169
    # View the grading status as a student again.
170
    And I am on the "Test assignment name" "assign activity" page logged in as student1
171
    And I should see "Graded" in the "Grading status" "table_row"
172
    And I should see "Even better job! Really."