Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 211... Línea 211...
211
    And I set the field "Mark" to "0.6"
211
    And I set the field "Mark" to "0.6"
212
    And I press "Save and show next"
212
    And I press "Save and show next"
213
    Then I should see "Grading attempts 1 to 1 of 2"
213
    Then I should see "Grading attempts 1 to 1 of 2"
214
    And I press "Save and show next"
214
    And I press "Save and show next"
215
    And I should see "Grading attempts 2 to 2 of 2"
215
    And I should see "Grading attempts 2 to 2 of 2"
-
 
216
 
-
 
217
  @javascript
-
 
218
  Scenario: Manually grade quiz with multiple questions
-
 
219
    Given the following "questions" exist:
-
 
220
      | questioncategory | qtype       | name    | questiontext    | defaultmark |
-
 
221
      | Test questions   | essay       | Essay 1 | First question  | 20          |
-
 
222
      | Test questions   | essay       | Essay 2 | Second question | 20          |
-
 
223
      | Test questions   | truefalse   | TF1     | Third question  |             |
-
 
224
    And quiz "Quiz 2" contains the following questions:
-
 
225
      | question | page |
-
 
226
      | Essay 1  | 1    |
-
 
227
      | Essay 2  | 2    |
-
 
228
      | TF1      | 2    |
-
 
229
    And user "student1" has attempted "Quiz 2" with responses:
-
 
230
      | slot | response          |
-
 
231
      | 1    | Answer to Essay 1 |
-
 
232
      | 2    | Answer to Essay 2 |
-
 
233
      | 3    | True              |
-
 
234
    And I am on the "Quiz 2 > student1 > Attempt 1" "mod_quiz > Attempt review" page logged in as "teacher1"
-
 
235
    And I follow "Make comment or override mark"
-
 
236
    And I switch to "commentquestion" window
-
 
237
    And I set the field "Mark" to "15"
-
 
238
    And I press "Save" and switch to main window
-
 
239
    When I am on the "Quiz 2" "mod_quiz > Manual grading report" page
-
 
240
    And I click on "Also show questions that have been graded automatically" "link"
-
 
241
    # Confirm that Essay 1 is already graded, Essay 2 is not yet graded and that TF1 is automatically graded.
-
 
242
    Then the following should exist in the "questionstograde" table:
-
 
243
      | Question name | To grade | Already graded | Automatically graded |
-
 
244
      | Essay 1       | 0        | 1              | 0                    |
-
 
245
      | Essay 2       | 1        | 0              | 0                    |
-
 
246
      | TF1           | 0        | 0              | 1                    |
-
 
247
    # Grade the not yet graded Essay 2.
-
 
248
    And I click on "Grade" "link" in the "Essay 2" "table_row"
-
 
249
    And I set the field "Mark" to "20"
-
 
250
    And I press "Save and show next"
-
 
251
    # Update the already graded Essay 1.
-
 
252
    And I click on "grade all" "link" in the "Essay 1" "table_row"
-
 
253
    And I set the field "Mark" to "5"
-
 
254
    And I press "Save and show next"
-
 
255
    # Confirm that each question is graded for the corresponding student.
-
 
256
    And I am on the "Quiz 2" "mod_quiz > Grades report" page
-
 
257
    And the following should exist in the "generaltable" table:
-
 
258
      | Username | Q. 1  | Q. 2  | Q. 3 |
-
 
259
      | student1 | 12.50 | 50.00 | -    |