Proyectos de Subversion Moodle

Rev

Rev 11 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_quiz @quiz @quiz_reponses
2
Feature: Basic use of the Responses report
3
  In order to see how my students are progressing
4
  As a teacher
5
  I need to see all their quiz responses
6
 
7
  Background: Using the Responses report
8
    Given the following "users" exist:
9
      | username | firstname | lastname |
10
      | teacher  | The       | Teacher  |
11
      | student1 | Student   | One      |
12
      | student2 | Student   | Two      |
13
    And the following "courses" exist:
14
      | fullname | shortname |
15
      | Course 1 | C1        |
16
    And the following "course enrolments" exist:
17
      | user     | course | role           |
18
      | teacher  | C1     | editingteacher |
19
      | student1 | C1     | student        |
20
      | student2 | C1     | student        |
21
    And the following "question categories" exist:
22
      | contextlevel | reference | name           |
23
      | Course       | C1        | Test questions |
24
    And the following "activities" exist:
25
      | activity   | name   | intro              | course | idnumber | preferredbehaviour |
26
      | quiz       | Quiz 1 | Quiz 1 description | C1     | quiz1    | interactive        |
27
    And the following "questions" exist:
28
      | questioncategory | qtype     | name | template |
29
      | Test questions   | numerical | NQ   | pi3tries |
30
    And quiz "Quiz 1" contains the following questions:
11 efrain 31
      | question | page | maxmark | displaynumber |
32
      | NQ       | 1    | 3.0     | 1a            |
1 efrain 33
 
34
  @javascript
35
  Scenario: Report works when there are no attempts
36
    When I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacher
37
    Then I should see "Attempts: 0"
38
    And I should see "Nothing to display"
1441 ariadna 39
    And I set the field "Attempts from" to "enrolled users who have a quiz attempt"
1 efrain 40
 
41
  @javascript
42
  Scenario: Report works when there are attempts
43
    Given user "student1" has started an attempt at quiz "Quiz 1"
44
    And user "student1" has checked answers in their attempt at quiz "Quiz 1":
45
      | slot | response |
46
      |   1  | 1.0      |
47
    And user "student1" has checked answers in their attempt at quiz "Quiz 1":
48
      | slot | response |
49
      |   1  | 3.0      |
50
    And user "student1" has checked answers in their attempt at quiz "Quiz 1":
51
      | slot | response |
52
      |   1  | 3.14     |
53
    And user "student1" has finished an attempt at quiz "Quiz 1"
54
    When I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacher
55
    Then I should see "Attempts: 1"
56
    And I should see "Student One"
57
    And I should not see "Student Two"
1441 ariadna 58
    And I set the field "Attempts from" to "enrolled users who have, or do not have, a quiz attempt"
1 efrain 59
    And I set the field "Which tries" to "All tries"
11 efrain 60
    And I should see "Response 1a"
1 efrain 61
    And I press "Show report"
1441 ariadna 62
    And "Student OneReview attempt" row "Response 1a" column of "responses" table should contain "1.0"
1 efrain 63
    And "Student OneReview attempt" row "Status" column of "responses" table should contain ""
1441 ariadna 64
    And "Finished" row "Grade/100.00" column of "responses" table should contain "33.33"
65
    And "Finished" row "Response 1a" column of "responses" table should contain "3.14"
1 efrain 66
    And "Student Two" row "Status" column of "responses" table should contain "-"
1441 ariadna 67
    And "Student Two" row "Response 1a" column of "responses" table should contain "-"
1 efrain 68
 
69
  @javascript
70
  Scenario: Report does not allow strange combinations of options
71
    Given I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacher
72
    And the "Which tries" "select" should be enabled
1441 ariadna 73
    When I set the field "Attempts from" to "enrolled users who do not have a quiz attempt"
1 efrain 74
    Then the "Which tries" "select" should be disabled