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: Bulk released grades should not be sent to gradebook while submissions are anonymous.
3
  In order to preserve student anonymity until identities are explicitly revealed
4
  As a teacher
5
  I should be able to bulk release grades for anonymous submissions via
6
  marking workflow without the grades being pushed to the gradebook.
7
 
8
  Background:
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
      | student2 | Student   | 2        | student2@example.com |
17
    And the following "course enrolments" exist:
18
      | user     | course | role           |
19
      | teacher1 | C1     | editingteacher |
20
      | student1 | C1     | student        |
21
      | student2 | C1     | student        |
22
    # Add the assignment.
23
    And the following "activity" exists:
24
      | activity                            | assign                      |
25
      | course                              | C1                          |
26
      | name                                | Test assignment name        |
27
      | assignsubmission_onlinetext_enabled | 1                           |
28
      | assignsubmission_file_enabled       | 0                           |
29
      | markingworkflow                     | 1                           |
30
      | markinganonymous                    | 0                           |
31
      | blindmarking                        | 1                           |
32
      | assignfeedback_comments_enabled     | 1                           |
33
      | assignfeedback_editpdf_enabled      | 1                           |
34
    # Add a submission.
35
    And the following "mod_assign > submissions" exist:
36
      | assign               | user     | onlinetext                |
37
      | Test assignment name | student1 | I'm student1's submission |
38
      | Test assignment name | student2 | I'm student2's submission |
39
    # Mark the submissions.
40
    And I am on the "Test assignment name" "assign activity" page logged in as "teacher1"
1441 ariadna 41
    And I navigate to "Submissions" in current page administration
1 efrain 42
    Then I should see "Not marked" in the "I'm student1's submission" "table_row"
1441 ariadna 43
    And I click on "Grade actions" "actionmenu" in the "I'm student1's submission" "table_row"
44
    And I choose "Grade" in the open action menu
1 efrain 45
    And I set the field "Grade out of 100" to "50"
46
    And I set the field "Marking workflow state" to "In review"
47
    And I set the field "Feedback comments" to "Great job!"
48
    And I set the field "Notify student" to "0"
49
    And I press "Save changes"
50
    And I am on the "Test assignment name" "assign activity" page
1441 ariadna 51
    And I navigate to "Submissions" in current page administration
1 efrain 52
    Then I should see "Not marked" in the "I'm student2's submission" "table_row"
1441 ariadna 53
    And I change window size to "large"
54
    And I click on "Grade actions" "actionmenu" in the "I'm student2's submission" "table_row"
55
    And I choose "Grade" in the open action menu
56
    And I change window size to "medium"
1 efrain 57
    And I set the field "Grade out of 100" to "50"
58
    And I set the field "Marking workflow state" to "In review"
59
    And I set the field "Feedback comments" to "Great job!"
60
    And I set the field "Notify student" to "0"
61
    And I press "Save changes"
62
    And I am on the "Test assignment name" "assign activity" page
1441 ariadna 63
    And I navigate to "Submissions" in current page administration
1 efrain 64
    Then I should see "In review" in the "I'm student1's submission" "table_row"
65
    And I should see "In review" in the "I'm student2's submission" "table_row"
66
 
67
  @javascript @_alert
68
  Scenario: Grades are released in bulk before student identities are revealed.
69
    When I set the field "selectall" to "1"
1441 ariadna 70
    And I click on "Change marking state" "button" in the "sticky-footer" "region"
71
    And I click on "Change marking state" "button" in the "Set marking workflow state" "dialogue"
1 efrain 72
    Then I should not see "Student 1 (student1@example.com)"
73
    And I should not see "Student 2 (student2@example.com)"
74
    And I set the field "Marking workflow state" to "Released"
75
    And I set the field "Notify student" to "No"
76
    And I press "Save changes"
77
    And I am on the "Test assignment name" "assign activity" page
1441 ariadna 78
    And I navigate to "Submissions" in current page administration
1 efrain 79
    Then I should see "Released" in the "I'm student1's submission" "table_row"
80
    And I should see "Released" in the "I'm student2's submission" "table_row"
81
    And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
82
    Then I should not see "50"
83
    And I should not see "Great job!"
84
    And I am on the "Course 1" "grades > User report > View" page logged in as "student2"
85
    Then I should not see "50"
86
    And I should not see "Great job!"
87
    And I am on the "Test assignment name" "assign activity" page logged in as "teacher1"
1441 ariadna 88
    And I navigate to "Submissions" in current page administration
89
    And I choose the "Reveal student identities" item in the "Actions" action menu
1 efrain 90
    And I press "Continue"
91
    Then I should see "Released" in the "Student 1" "table_row"
92
    And I should see "Released" in the "Student 2" "table_row"
93
    And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
94
    Then I should see "50"
95
    And I should see "Great job!"
96
    And I am on the "Course 1" "grades > User report > View" page logged in as "student2"
97
    Then I should see "50"
98
    And I should see "Great job!"
99
 
100
  @javascript @_alert
101
  Scenario: Grades are released in bulk after student identities are revealed.
1441 ariadna 102
    When I choose the "Reveal student identities" item in the "Actions" action menu
1 efrain 103
    And I press "Continue"
104
    When I set the field "selectall" to "1"
1441 ariadna 105
    And I click on "Change marking state" "button" in the "sticky-footer" "region"
106
    And I click on "Change marking state" "button" in the "Set marking workflow state" "dialogue"
1 efrain 107
    Then I should see "Student 1 (student1@example.com)"
108
    And I should see "Student 2 (student2@example.com)"
109
    And I set the field "Marking workflow state" to "Released"
110
    And I set the field "Notify student" to "No"
111
    And I press "Save changes"
112
    And I am on the "Test assignment name" "assign activity" page
1441 ariadna 113
    And I navigate to "Submissions" in current page administration
1 efrain 114
    Then I should see "Released" in the "Student 1" "table_row"
115
    And I should see "Released" in the "Student 2" "table_row"
116
    And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
117
    Then I should see "50"
118
    And I should see "Great job!"
119
    And I am on the "Course 1" "grades > User report > View" page logged in as "student2"
120
    Then I should see "50"
121
    And I should see "Great job!"
122
 
123
  @javascript @_alert
124
  Scenario: Grades are released to the gradebook if markinganonymous is enabled
125
    Given I follow "Settings"
126
    And I expand all fieldsets
127
    And I set the field "Allow partial release of grades while marking anonymously" to "Yes"
128
    And I press "Save and display"
1441 ariadna 129
    And I navigate to "Submissions" in current page administration
1 efrain 130
    When I set the field "selectall" to "1"
1441 ariadna 131
    And I click on "Change marking state" "button" in the "sticky-footer" "region"
132
    And I click on "Change marking state" "button" in the "Set marking workflow state" "dialogue"
1 efrain 133
    Then I should not see "Student 1 (student1@example.com)"
134
    And I should not see "Student 2 (student2@example.com)"
135
    And I set the field "Marking workflow state" to "Released"
136
    And I set the field "Notify student" to "No"
137
    And I press "Save changes"
138
    And I am on the "Test assignment name" "assign activity" page
1441 ariadna 139
    And I navigate to "Submissions" in current page administration
1 efrain 140
    Then I should see "Released" in the "I'm student1's submission" "table_row"
141
    And I should see "Released" in the "I'm student2's submission" "table_row"
142
    And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
143
    Then I should see "50"
144
    And I should see "Great job!"
145
    And I am on the "Course 1" "grades > User report > View" page logged in as "student2"
146
    Then I should see "50"
147
    And I should see "Great job!"