Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 14... Línea 14...
14
      | course                              | C1                      |
14
      | course                              | C1                      |
15
      | name                                | Test assignment name    |
15
      | name                                | Test assignment name    |
16
      | intro                               | Submit your online text |
16
      | intro                               | Submit your online text |
17
      | assignsubmission_onlinetext_enabled | 1                       |
17
      | assignsubmission_onlinetext_enabled | 1                       |
18
      | assignsubmission_file_enabled       | 0                       |
18
      | assignsubmission_file_enabled       | 0                       |
-
 
19
      | maxattempts                         | -1                      |
19
      | attemptreopenmethod                 | manual                  |
20
      | attemptreopenmethod                 | manual                  |
20
      | hidegrader                          | 1                       |
21
      | hidegrader                          | 1                       |
21
      | submissiondrafts                    | 0                       |
22
      | submissiondrafts                    | 0                       |
22
    And the following "users" exist:
23
    And the following "users" exist:
23
      | username  | firstname  | lastname  | email                 |
24
      | username  | firstname  | lastname  | email                 |
Línea 30... Línea 31...
30
    And the following "mod_assign > submissions" exist:
31
    And the following "mod_assign > submissions" exist:
31
      | assign                | user      | onlinetext                       |
32
      | assign                | user      | onlinetext                       |
32
      | Test assignment name  | student1  | I'm the student first submission |
33
      | Test assignment name  | student1  | I'm the student first submission |
Línea 33... Línea 34...
33
 
34
 
34
    And I am on the "Test assignment name" Activity page logged in as teacher1
35
    And I am on the "Test assignment name" Activity page logged in as teacher1
-
 
36
    And I change window size to "large"
35
    And I follow "View all submissions"
37
    And I go to "Student 1" "Test assignment name" activity advanced grading page
36
    And I click on "Grade" "link" in the "Student 1" "table_row"
38
    And I change window size to "medium"
37
    And I set the following fields to these values:
39
    And I set the following fields to these values:
38
      | Allow another attempt | 1 |
40
      | Allow another attempt | 1 |
39
    And I press "Save changes"
41
    And I press "Save changes"
40
    And I click on "Edit settings" "link"
42
    And I click on "Edit settings" "link"
Línea 45... Línea 47...
45
    And I press "Add a new attempt based on previous submission"
47
    And I press "Add a new attempt based on previous submission"
46
    And I press "Save changes"
48
    And I press "Save changes"
47
    And I log out
49
    And I log out
Línea 48... Línea 50...
48
 
50
 
49
    And I am on the "Test assignment name" Activity page logged in as teacher1
51
    And I am on the "Test assignment name" Activity page logged in as teacher1
-
 
52
    And I change window size to "large"
50
    And I follow "View all submissions"
53
    And I go to "Student 1" "Test assignment name" activity advanced grading page
51
    And I click on "Grade" "link" in the "Student 1" "table_row"
54
    And I change window size to "medium"
Línea 52... Línea 55...
52
    And I should see "I'm the student first submission"
55
    And I should see "I'm the student first submission"
53
 
56
 
54
  @javascript @_alert
57
  @javascript @_alert
Línea 96... Línea 99...
96
    And the following "mod_assign > submissions" exist:
99
    And the following "mod_assign > submissions" exist:
97
      | assign                | user      | onlinetext                        |
100
      | assign                | user      | onlinetext                        |
98
      | Test assignment name  | student1  | I'm the student first submission  |
101
      | Test assignment name  | student1  | I'm the student first submission  |
Línea 99... Línea 102...
99
 
102
 
100
    And I am on the "Test assignment name" Activity page logged in as teacher1
103
    And I am on the "Test assignment name" Activity page logged in as teacher1
101
    When I follow "View all submissions"
104
    When I navigate to "Submissions" in current page administration
102
    Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
105
    Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
103
    And "Student 2" 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"
104
    And "Student 3" row "Status" column of "generaltable" table should contain "No submission"
107
    And "Student 3" row "Status" column of "generaltable" table should contain "No submission"
105
    And "Student 4" row "Status" column of "generaltable" table should contain "No submission"
108
    And "Student 4" row "Status" column of "generaltable" table should contain "No submission"
106
    And I click on "Quick grading" "checkbox"
-
 
107
    And I click on "Student 1" "checkbox"
109
    And I click on "Quick grading" "checkbox"
108
    And I set the field "User grade" to "60.0"
110
    And I set the field "User grade" to "60.0"
109
    And I press "Save all quick grading changes"
111
    And I click on "Save" "button" in the "sticky-footer" "region"
110
    And I should see "The grade changes were saved"
112
    And I should see "The grade changes were saved"
111
    And I press "Continue"
113
    And I press "Continue"
112
    And I click on "Student 1" "checkbox"
114
    And I click on "Student 1" "checkbox"
113
    And I set the following fields to these values:
-
 
114
      | operation | Allow another attempt |
115
    And I click on "Grant attempt" "button" in the "sticky-footer" "region"
115
    And I click on "Go" "button" confirming the dialogue
116
    And I click on "Grant attempt" "button" in the "Allow another attempt" "dialogue"
116
    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."
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."
117
    And I log out
118
    And I log out
118
    And I am on the "Test assignment name" Activity page logged in as student3
119
    And I am on the "Test assignment name" Activity page logged in as student3
119
    And I should see "This is attempt 1 ( 3 attempts allowed )."
120
    And I should see "This is attempt 1 ( 3 attempts allowed )."
Línea 122... Línea 123...
122
      | Online text | I'm the student's 3 group 2 first attempt |
123
      | Online text | I'm the student's 3 group 2 first attempt |
123
    And I press "Save changes"
124
    And I press "Save changes"
124
    And I log out
125
    And I log out
Línea 125... Línea 126...
125
 
126
 
126
    And I am on the "Test assignment name" Activity page logged in as teacher1
127
    And I am on the "Test assignment name" Activity page logged in as teacher1
127
    And I follow "View all submissions"
128
    And I navigate to "Submissions" in current page administration
128
    And "Student 1" row "Status" column of "generaltable" table should contain "Reopened"
129
    And "Student 1" row "Status" column of "generaltable" table should contain "Reopened"
129
    And "Student 2" row "Status" column of "generaltable" table should contain "Reopened"
130
    And "Student 2" row "Status" column of "generaltable" table should contain "Reopened"
130
    And "Student 3" row "Status" column of "generaltable" table should contain "Submitted for grading"
131
    And "Student 3" row "Status" column of "generaltable" table should contain "Submitted for grading"
131
    And "Student 4" 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"
-
 
133
    And I click on "Grade actions" "actionmenu" in the "Student 3" "table_row"
132
    And I click on "Grade" "link" in the "Student 3" "table_row"
134
    And I choose "Grade" in the open action menu
133
    And I set the following fields to these values:
135
    And I set the following fields to these values:
134
      | Allow another attempt | 1 |
136
      | Allow another attempt | 1 |
135
    And I press "Save changes"
137
    And I press "Save changes"
136
    And I follow "Assignment: Test assignment name"
138
    And I follow "Assignment: Test assignment name"