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: In an assignment, students start a new attempt based on their previous one
3
  In order to improve my submission
4
  As a student
5
  I need to submit my assignment editing an online form, receive feedback, and then improve my submission.
6
 
7
  @javascript
8
  Scenario: Submit a text online and edit the submission
9
    Given the following "courses" exist:
10
      | fullname | shortname | category | groupmode |
11
      | Course 1 | C1 | 0 | 1 |
12
    And the following "activity" exists:
13
      | activity                            | assign                  |
14
      | course                              | C1                      |
15
      | name                                | Test assignment name    |
16
      | intro                               | Submit your online text |
17
      | assignsubmission_onlinetext_enabled | 1                       |
18
      | assignsubmission_file_enabled       | 0                       |
1441 ariadna 19
      | maxattempts                         | -1                      |
1 efrain 20
      | attemptreopenmethod                 | manual                  |
21
      | hidegrader                          | 1                       |
22
      | submissiondrafts                    | 0                       |
23
    And the following "users" exist:
24
      | username  | firstname  | lastname  | email                 |
25
      | teacher1  | Teacher    | 1         | teacher1@example.com  |
26
      | student1  | Student    | 1         | student1@example.com  |
27
    And the following "course enrolments" exist:
28
      | user      | course  | role            |
29
      | teacher1  | C1      | editingteacher  |
30
      | student1  | C1      | student         |
31
    And the following "mod_assign > submissions" exist:
32
      | assign                | user      | onlinetext                       |
33
      | Test assignment name  | student1  | I'm the student first submission |
34
 
35
    And I am on the "Test assignment name" Activity page logged in as teacher1
1441 ariadna 36
    And I change window size to "large"
37
    And I go to "Student 1" "Test assignment name" activity advanced grading page
38
    And I change window size to "medium"
1 efrain 39
    And I set the following fields to these values:
40
      | Allow another attempt | 1 |
41
    And I press "Save changes"
42
    And I click on "Edit settings" "link"
43
    And I log out
44
 
45
    When I am on the "Test assignment name" Activity page logged in as student1
46
    Then I should not see "Teacher 1"
47
    And I press "Add a new attempt based on previous submission"
48
    And I press "Save changes"
49
    And I log out
50
 
51
    And I am on the "Test assignment name" Activity page logged in as teacher1
1441 ariadna 52
    And I change window size to "large"
53
    And I go to "Student 1" "Test assignment name" activity advanced grading page
54
    And I change window size to "medium"
1 efrain 55
    And I should see "I'm the student first submission"
56
 
57
  @javascript @_alert
58
  Scenario: Allow new attempt does not display incorrect error message on group submission
59
    Given the following "courses" exist:
60
      | fullname | shortname | category | groupmode |
61
      | Course 1 | C1 | 0 | 1 |
62
    And the following "users" exist:
63
      | username | firstname | lastname | email |
64
      | teacher1 | Teacher | 1 | teacher1@example.com |
65
      | student1 | Student | 1 | student1@example.com |
66
      | student2 | Student | 2 | student2@example.com |
67
      | student3 | Student | 3 | student3@example.com |
68
      | student4 | Student | 4 | student4@example.com |
69
    And the following "course enrolments" exist:
70
      | user | course | role |
71
      | teacher1 | C1 | editingteacher |
72
      | student1 | C1 | student |
73
      | student2 | C1 | student |
74
      | student3 | C1 | student |
75
      | student4 | C1 | student |
76
    And the following "groups" exist:
77
      | name | course | idnumber |
78
      | Group 1 | C1 | G1 |
79
      | Group 2 | C1 | G2 |
80
    And the following "group members" exist:
81
      | user | group |
82
      | student1 | G1 |
83
      | student2 | G1 |
84
      | student3 | G2 |
85
      | student4 | G2 |
86
 
87
    And the following "activity" exists:
88
      | activity                             | assign                |
89
      | course                               | C1                    |
90
      | name                                 | Test assignment name  |
91
      | assignsubmission_onlinetext_enabled  | 1                     |
92
      | assignsubmission_file_enabled        | 0                     |
93
      | attemptreopenmethod                  | manual                |
94
      | submissiondrafts                     | 0                     |
95
      | groupmode                            | 1                     |
96
      | teamsubmission                       | 1                     |
97
      | hidegrader                           | 1                     |
98
      | maxattempts                          | 3                     |
99
    And the following "mod_assign > submissions" exist:
100
      | assign                | user      | onlinetext                        |
101
      | Test assignment name  | student1  | I'm the student first submission  |
102
 
103
    And I am on the "Test assignment name" Activity page logged in as teacher1
1441 ariadna 104
    When I navigate to "Submissions" in current page administration
1 efrain 105
    Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
106
    And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
107
    And "Student 3" row "Status" column of "generaltable" table should contain "No submission"
108
    And "Student 4" row "Status" column of "generaltable" table should contain "No submission"
109
    And I click on "Quick grading" "checkbox"
110
    And I set the field "User grade" to "60.0"
1441 ariadna 111
    And I click on "Save" "button" in the "sticky-footer" "region"
1 efrain 112
    And I should see "The grade changes were saved"
113
    And I press "Continue"
114
    And I click on "Student 1" "checkbox"
1441 ariadna 115
    And I click on "Grant attempt" "button" in the "sticky-footer" "region"
116
    And I click on "Grant attempt" "button" in the "Allow another attempt" "dialogue"
1 efrain 117
    And I should not see "The grades were not saved because someone has modified one or more records more recently than when you loaded the page."
118
    And I log out
119
    And I am on the "Test assignment name" Activity page logged in as student3
120
    And I should see "This is attempt 1 ( 3 attempts allowed )."
121
    And I press "Add submission"
122
    And I set the following fields to these values:
123
      | Online text | I'm the student's 3 group 2 first attempt |
124
    And I press "Save changes"
125
    And I log out
126
 
127
    And I am on the "Test assignment name" Activity page logged in as teacher1
1441 ariadna 128
    And I navigate to "Submissions" in current page administration
1 efrain 129
    And "Student 1" row "Status" column of "generaltable" table should contain "Reopened"
130
    And "Student 2" row "Status" column of "generaltable" table should contain "Reopened"
131
    And "Student 3" row "Status" column of "generaltable" table should contain "Submitted for grading"
132
    And "Student 4" row "Status" column of "generaltable" table should contain "Submitted for grading"
1441 ariadna 133
    And I click on "Grade actions" "actionmenu" in the "Student 3" "table_row"
134
    And I choose "Grade" in the open action menu
1 efrain 135
    And I set the following fields to these values:
136
      | Allow another attempt | 1 |
137
    And I press "Save changes"
138
    And I follow "Assignment: Test assignment name"
139
    And I log out
140
 
141
    And I am on the "Test assignment name" Activity page logged in as student4
142
    And I should see "This is attempt 2 ( 3 attempts allowed )."
143
    And I press "Add a new attempt"
144
    And I set the following fields to these values:
145
      | Online text | I'm the student's 4 group 2 second attempt |
146
    And I press "Save changes"
147
    And I log out
148
 
149
    And I am on the "Test assignment name" Activity page logged in as teacher1
150
    And I select "Group 2" from the "group" singleselect
151
    And I click on "Grade" "link" in the ".tertiary-navigation" "css_element"
152
    And I should see "2" in the "#id_attemptsettings" "css_element"