Proyectos de Subversion Moodle

Rev

| 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"
41
    And I follow "View all submissions"
42
    Then I should see "Not marked" in the "I'm student1's submission" "table_row"
43
    And I click on "Grade" "link" in the "I'm student1's submission" "table_row"
44
    And I set the field "Grade out of 100" to "50"
45
    And I set the field "Marking workflow state" to "In review"
46
    And I set the field "Feedback comments" to "Great job!"
47
    And I set the field "Notify student" to "0"
48
    And I press "Save changes"
49
    And I am on the "Test assignment name" "assign activity" page
50
    And I follow "View all submissions"
51
    Then I should see "Not marked" in the "I'm student2's submission" "table_row"
52
    And I click on "Grade" "link" in the "I'm student2's submission" "table_row"
53
    And I set the field "Grade out of 100" to "50"
54
    And I set the field "Marking workflow state" to "In review"
55
    And I set the field "Feedback comments" to "Great job!"
56
    And I set the field "Notify student" to "0"
57
    And I press "Save changes"
58
    And I am on the "Test assignment name" "assign activity" page
59
    And I follow "View all submissions"
60
    Then I should see "In review" in the "I'm student1's submission" "table_row"
61
    And I should see "In review" in the "I'm student2's submission" "table_row"
62
 
63
  @javascript @_alert
64
  Scenario: Grades are released in bulk before student identities are revealed.
65
    When I set the field "selectall" to "1"
66
    And I set the field "operation" to "Set marking workflow state"
67
    And I click on "Go" "button" confirming the dialogue
68
    Then I should not see "Student 1 (student1@example.com)"
69
    And I should not see "Student 2 (student2@example.com)"
70
    And I set the field "Marking workflow state" to "Released"
71
    And I set the field "Notify student" to "No"
72
    And I press "Save changes"
73
    And I am on the "Test assignment name" "assign activity" page
74
    And I follow "View all submissions"
75
    Then I should see "Released" in the "I'm student1's submission" "table_row"
76
    And I should see "Released" in the "I'm student2's submission" "table_row"
77
    And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
78
    Then I should not see "50"
79
    And I should not see "Great job!"
80
    And I am on the "Course 1" "grades > User report > View" page logged in as "student2"
81
    Then I should not see "50"
82
    And I should not see "Great job!"
83
    And I am on the "Test assignment name" "assign activity" page logged in as "teacher1"
84
    And I follow "View all submissions"
85
    And I set the field "Grading action" to "Reveal student identities"
86
    And I press "Continue"
87
    Then I should see "Released" in the "Student 1" "table_row"
88
    And I should see "Released" in the "Student 2" "table_row"
89
    And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
90
    Then I should see "50"
91
    And I should see "Great job!"
92
    And I am on the "Course 1" "grades > User report > View" page logged in as "student2"
93
    Then I should see "50"
94
    And I should see "Great job!"
95
 
96
  @javascript @_alert
97
  Scenario: Grades are released in bulk after student identities are revealed.
98
    When I set the field "Grading action" to "Reveal student identities"
99
    And I press "Continue"
100
    When I set the field "selectall" to "1"
101
    And I set the field "operation" to "Set marking workflow state"
102
    And I click on "Go" "button" confirming the dialogue
103
    Then I should see "Student 1 (student1@example.com)"
104
    And I should see "Student 2 (student2@example.com)"
105
    And I set the field "Marking workflow state" to "Released"
106
    And I set the field "Notify student" to "No"
107
    And I press "Save changes"
108
    And I am on the "Test assignment name" "assign activity" page
109
    And I follow "View all submissions"
110
    Then I should see "Released" in the "Student 1" "table_row"
111
    And I should see "Released" in the "Student 2" "table_row"
112
    And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
113
    Then I should see "50"
114
    And I should see "Great job!"
115
    And I am on the "Course 1" "grades > User report > View" page logged in as "student2"
116
    Then I should see "50"
117
    And I should see "Great job!"
118
 
119
  @javascript @_alert
120
  Scenario: Grades are released to the gradebook if markinganonymous is enabled
121
    Given I follow "Settings"
122
    And I expand all fieldsets
123
    And I set the field "Allow partial release of grades while marking anonymously" to "Yes"
124
    And I press "Save and display"
125
    And I follow "View all submissions"
126
    When I set the field "selectall" to "1"
127
    And I set the field "operation" to "Set marking workflow state"
128
    And I click on "Go" "button" confirming the dialogue
129
    Then I should not see "Student 1 (student1@example.com)"
130
    And I should not see "Student 2 (student2@example.com)"
131
    And I set the field "Marking workflow state" to "Released"
132
    And I set the field "Notify student" to "No"
133
    And I press "Save changes"
134
    And I am on the "Test assignment name" "assign activity" page
135
    And I follow "View all submissions"
136
    Then I should see "Released" in the "I'm student1's submission" "table_row"
137
    And I should see "Released" in the "I'm student2's submission" "table_row"
138
    And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
139
    Then I should see "50"
140
    And I should see "Great job!"
141
    And I am on the "Course 1" "grades > User report > View" page logged in as "student2"
142
    Then I should see "50"
143
    And I should see "Great job!"