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"
|
|
|
39 |
And I set the field "Attempts from" to "enrolled users who have not attempted the quiz"
|
|
|
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 |
|
|
|
55 |
When I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacher
|
|
|
56 |
Then I should see "Attempts: 1"
|
|
|
57 |
And I should see "Student One"
|
|
|
58 |
And I should not see "Student Two"
|
|
|
59 |
And I set the field "Attempts from" to "enrolled users who have, or have not, attempted the quiz"
|
|
|
60 |
And I set the field "Which tries" to "All tries"
|
11 |
efrain |
61 |
And I should see "Response 1a"
|
1 |
efrain |
62 |
And I press "Show report"
|
11 |
efrain |
63 |
And "Student OneReview attempt" row "Response 1aSort by Response 1a Ascending" column of "responses" table should contain "1.0"
|
1 |
efrain |
64 |
And "Student OneReview attempt" row "Status" column of "responses" table should contain ""
|
|
|
65 |
And "Finished" row "Grade/100.00Sort by Grade/100.00 Ascending" column of "responses" table should contain "33.33"
|
11 |
efrain |
66 |
And "Finished" row "Response 1aSort by Response 1a Ascending" column of "responses" table should contain "3.14"
|
1 |
efrain |
67 |
And "Student Two" row "Status" column of "responses" table should contain "-"
|
11 |
efrain |
68 |
And "Student Two" row "Response 1aSort by Response 1a Ascending" column of "responses" table should contain "-"
|
1 |
efrain |
69 |
|
|
|
70 |
@javascript
|
|
|
71 |
Scenario: Report does not allow strange combinations of options
|
|
|
72 |
Given I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacher
|
|
|
73 |
And the "Which tries" "select" should be enabled
|
|
|
74 |
When I set the field "Attempts from" to "enrolled users who have not attempted the quiz"
|
|
|
75 |
Then the "Which tries" "select" should be disabled
|