1441 |
ariadna |
1 |
@mod @mod_quiz @quiz @quiz_overview
|
|
|
2 |
Feature: View attempt states
|
|
|
3 |
In order to see how students are progressing through the quiz
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to see different attempt states on the overview report
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
11 |
| student1 | Student | 1 | student1@example.com |
|
|
|
12 |
| student2 | Student | 2 | student2@example.com |
|
|
|
13 |
| student3 | Student | 3 | student3@example.com |
|
|
|
14 |
And the following "courses" exist:
|
|
|
15 |
| fullname | shortname | category |
|
|
|
16 |
| Course 1 | C1 | 0 |
|
|
|
17 |
And the following "course enrolments" exist:
|
|
|
18 |
| user | course | role |
|
|
|
19 |
| teacher1 | C1 | editingteacher |
|
|
|
20 |
| student1 | C1 | student |
|
|
|
21 |
| student2 | C1 | student |
|
|
|
22 |
| student3 | C1 | student |
|
|
|
23 |
And the following "question categories" exist:
|
|
|
24 |
| contextlevel | reference | name |
|
|
|
25 |
| Course | C1 | Test questions |
|
|
|
26 |
And the following "activities" exist:
|
|
|
27 |
| activity | name | intro | course | idnumber |
|
|
|
28 |
| quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 |
|
|
|
29 |
And the following "questions" exist:
|
|
|
30 |
| questioncategory | qtype | name | questiontext |
|
|
|
31 |
| Test questions | description | Intro | Welcome to this quiz |
|
|
|
32 |
| Test questions | truefalse | TF1 | First question |
|
|
|
33 |
| Test questions | truefalse | TF2 | Second question |
|
|
|
34 |
And quiz "Quiz 1" contains the following questions:
|
|
|
35 |
| question | page | maxmark |
|
|
|
36 |
| Intro | 1 | |
|
|
|
37 |
| TF1 | 1 | |
|
|
|
38 |
| TF2 | 1 | 3.0 |
|
|
|
39 |
|
|
|
40 |
Scenario: View attempts in different states
|
|
|
41 |
Given quiz "Quiz 1" has pre-created attempts
|
|
|
42 |
And user "student1" has started an attempt at quiz "Quiz 1"
|
|
|
43 |
And user "student2" has attempted "Quiz 1" with responses:
|
|
|
44 |
| slot | response |
|
|
|
45 |
| 2 | True |
|
|
|
46 |
| 3 | False |
|
|
|
47 |
When I am on the "Quiz 1" "mod_quiz > Grades report" page logged in as "teacher 1"
|
|
|
48 |
Then the following should exist in the "attempts" table:
|
|
|
49 |
| Email address | Status | Started | Completed | Grade/100.00 |
|
|
|
50 |
| student1@example.com | In progress | ## now ##%d %B %Y %I:%M %p## | - | - |
|
|
|
51 |
| student2@example.com | Finished | ## now ##%d %B %Y %I:%M %p## | ## now ##%d %B %Y %I:%M %p## | 25.00 |
|
|
|
52 |
| student3@example.com | Not started | - | - | - |
|