Línea 18... |
Línea 18... |
18 |
| student1 | C1 | student |
|
18 |
| student1 | C1 | student |
|
19 |
And the following "groups" exist:
|
19 |
And the following "groups" exist:
|
20 |
| name | course | idnumber |
|
20 |
| name | course | idnumber |
|
21 |
| Group 1 | C1 | G1 |
|
21 |
| Group 1 | C1 | G1 |
|
22 |
| Group 2 | C1 | G2 |
|
22 |
| Group 2 | C1 | G2 |
|
- |
|
23 |
And the following "activities" exist:
|
- |
|
24 |
| activity | name | intro | course | idnumber |
|
- |
|
25 |
| quiz | Test quiz name | Test quiz description | C1 | quiz1 |
|
23 |
And the following "question categories" exist:
|
26 |
And the following "question categories" exist:
|
24 |
| contextlevel | reference | name |
|
27 |
| contextlevel | reference | name |
|
25 |
| Course | C1 | Test questions |
|
28 |
| Activity module | quiz1 | Test questions |
|
26 |
And the following "questions" exist:
|
29 |
And the following "questions" exist:
|
27 |
| questioncategory | qtype | name | questiontext |
|
30 |
| questioncategory | qtype | name | questiontext |
|
28 |
| Test questions | truefalse | TF1 | First question |
|
31 |
| Test questions | truefalse | TF1 | First question |
|
29 |
And the following "activities" exist:
|
- |
|
30 |
| activity | name | intro | course | idnumber |
|
- |
|
31 |
| quiz | Test quiz name | Test quiz description | C1 | quiz1 |
|
- |
|
32 |
And quiz "Test quiz name" contains the following questions:
|
32 |
And quiz "Test quiz name" contains the following questions:
|
33 |
| question | page |
|
33 |
| question | page |
|
34 |
| TF1 | 1 |
|
34 |
| TF1 | 1 |
|
35 |
And user "student1" has attempted "Test quiz name" with responses:
|
35 |
And user "student1" has attempted "Test quiz name" with responses:
|
36 |
| slot | response |
|
36 |
| slot | response |
|
Línea 38... |
Línea 38... |
38 |
|
38 |
|
39 |
Scenario: Use course reset to clear all attempt data
|
39 |
Scenario: Use course reset to clear all attempt data
|
40 |
When I log in as "teacher1"
|
40 |
When I log in as "teacher1"
|
41 |
And I am on the "Course 1" "reset" page
|
41 |
And I am on the "Course 1" "reset" page
|
42 |
And I set the following fields to these values:
|
42 |
And I set the following fields to these values:
|
43 |
| Delete all quiz attempts | 1 |
|
43 |
| All quiz attempts | 1 |
|
44 |
And I press "Reset course"
|
44 |
And I press "Reset course"
|
45 |
And I press "Continue"
|
45 |
And I press "Continue"
|
46 |
And I am on the "Test quiz name" "mod_quiz > Grades report" page
|
46 |
And I am on the "Test quiz name" "mod_quiz > Grades report" page
|
Línea 50... |
Línea 50... |
50 |
Given the following "mod_quiz > user overrides" exist:
|
50 |
Given the following "mod_quiz > user overrides" exist:
|
51 |
| quiz | user | attempts |
|
51 |
| quiz | user | attempts |
|
52 |
| Test quiz name | student1 | 2 |
|
52 |
| Test quiz name | student1 | 2 |
|
53 |
When I log in as "teacher1"
|
53 |
When I log in as "teacher1"
|
54 |
And I am on the "Course 1" "reset" page
|
54 |
And I am on the "Course 1" "reset" page
|
55 |
And I set the field "Delete all user overrides" to "1"
|
55 |
And I set the field "All user overrides" to "1"
|
56 |
And I press "Reset course"
|
56 |
And I press "Reset course"
|
57 |
And I press "Continue"
|
57 |
And I press "Continue"
|
58 |
And I am on the "Test quiz name" "mod_quiz > User overrides" page
|
58 |
And I am on the "Test quiz name" "mod_quiz > User overrides" page
|
59 |
Then I should not see "Sam1 Student1"
|
59 |
Then I should not see "Sam1 Student1"
|
Línea 63... |
Línea 63... |
63 |
| quiz | group | attempts |
|
63 |
| quiz | group | attempts |
|
64 |
| Test quiz name | G1 | 2 |
|
64 |
| Test quiz name | G1 | 2 |
|
65 |
When I log in as "teacher1"
|
65 |
When I log in as "teacher1"
|
66 |
And I am on the "Course 1" "reset" page
|
66 |
And I am on the "Course 1" "reset" page
|
67 |
And I set the following fields to these values:
|
67 |
And I set the following fields to these values:
|
68 |
| Delete all group overrides | 1 |
|
68 |
| All group overrides | 1 |
|
69 |
And I press "Reset course"
|
69 |
And I press "Reset course"
|
70 |
And I press "Continue"
|
70 |
And I press "Continue"
|
71 |
And I am on the "Test quiz name" "mod_quiz > Group overrides" page
|
71 |
And I am on the "Test quiz name" "mod_quiz > Group overrides" page
|
72 |
Then I should not see "Group 1"
|
72 |
Then I should not see "Group 1"
|