Línea 16... |
Línea 16... |
16 |
And the following "course enrolments" exist:
|
16 |
And the following "course enrolments" exist:
|
17 |
| user | course | role |
|
17 |
| user | course | role |
|
18 |
| student | C1 | student |
|
18 |
| student | C1 | student |
|
19 |
| teacher | C1 | teacher |
|
19 |
| teacher | C1 | teacher |
|
20 |
| editor | C1 | editingteacher |
|
20 |
| editor | C1 | editingteacher |
|
- |
|
21 |
And the following "activities" exist:
|
- |
|
22 |
| activity | name | intro | course | idnumber | preferredbehaviour | canredoquestions |
|
- |
|
23 |
| quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 | immediatefeedback | 1 |
|
- |
|
24 |
| qbank | Qbank 1 | | C1 | qbank1 | | |
|
21 |
And the following "question categories" exist:
|
25 |
And the following "question categories" exist:
|
22 |
| contextlevel | reference | name |
|
26 |
| contextlevel | reference | name |
|
23 |
| Course | C1 | Test questions |
|
27 |
| Activity module | qbank1 | Test questions |
|
24 |
And the following "questions" exist:
|
28 |
And the following "questions" exist:
|
25 |
| questioncategory | qtype | name | questiontext |
|
29 |
| questioncategory | qtype | name | questiontext |
|
26 |
| Test questions | truefalse | TF1 | First question |
|
30 |
| Test questions | truefalse | TF1 | First question |
|
27 |
| Test questions | truefalse | TF2 | Second question |
|
31 |
| Test questions | truefalse | TF2 | Second question |
|
28 |
And the following "activities" exist:
|
- |
|
29 |
| activity | name | intro | course | idnumber | preferredbehaviour | canredoquestions |
|
- |
|
30 |
| quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 | immediatefeedback | 1 |
|
- |
|
31 |
And quiz "Quiz 1" contains the following questions:
|
32 |
And quiz "Quiz 1" contains the following questions:
|
32 |
| question | page | maxmark |
|
33 |
| question | page | maxmark |
|
33 |
| TF1 | 1 | 2 |
|
34 |
| TF1 | 1 | 2 |
|
34 |
| TF2 | 1 | 1 |
|
35 |
| TF2 | 1 | 1 |
|
Línea 49... |
Línea 50... |
49 |
When I press "Attempt quiz"
|
50 |
When I press "Attempt quiz"
|
50 |
And I click on "False" "radio" in the "First question" "question"
|
51 |
And I click on "False" "radio" in the "First question" "question"
|
51 |
And I click on "Check" "button" in the "First question" "question"
|
52 |
And I click on "Check" "button" in the "First question" "question"
|
52 |
And I press "Try another question like this one"
|
53 |
And I press "Try another question like this one"
|
53 |
And I am on the "Quiz 1" "mod_quiz > Grades report" page logged in as "teacher"
|
54 |
And I am on the "Quiz 1" "mod_quiz > Grades report" page logged in as "teacher"
|
54 |
And I press "Regrade all"
|
55 |
And I press "Regrade attempts..."
|
- |
|
56 |
And I click on "Regrade now" "button" in the "Regrade" "dialogue"
|
55 |
Then I should see "Finished regrading (1/1)"
|
57 |
Then I should see "Finished regrading (1/1)"
|
56 |
And I should see "Regrade completed"
|
58 |
And I should see "Regrade completed"
|
57 |
And I press "Continue"
|
59 |
And I press "Continue"
|
58 |
# Regrade a second time, to ensure the first regrade did not corrupt any data.
|
60 |
# Regrade a second time, to ensure the first regrade did not corrupt any data.
|
59 |
And I press "Regrade all"
|
61 |
And I press "Regrade attempts..."
|
- |
|
62 |
And I click on "Regrade now" "button" in the "Regrade" "dialogue"
|
60 |
And I should see "Finished regrading (1/1)"
|
63 |
And I should see "Finished regrading (1/1)"
|
61 |
And I should see "Regrade completed"
|
64 |
And I should see "Regrade completed"
|
Línea 62... |
Línea 65... |
62 |
|
65 |
|
63 |
@javascript
|
66 |
@javascript
|
Línea 164... |
Línea 167... |
164 |
And I follow "Attempts: 2"
|
167 |
And I follow "Attempts: 2"
|
165 |
# Review the first attempt - and switch to the first question seen.
|
168 |
# Review the first attempt - and switch to the first question seen.
|
166 |
And I follow "Review attempt"
|
169 |
And I follow "Review attempt"
|
167 |
And I click on "1" "link" in the "First question" "question"
|
170 |
And I click on "1" "link" in the "First question" "question"
|
168 |
And I switch to "reviewquestion" window
|
171 |
And I switch to "reviewquestion" window
|
- |
|
172 |
And "Summary of attempt" "table" should exist
|
169 |
And the state of "First question" question is shown as "Incorrect"
|
173 |
And the state of "First question" question is shown as "Incorrect"
|
170 |
# Now switch to the other quiz attempt using the link at the top, which does not have a redo.
|
174 |
# Now switch to the other quiz attempt using the link at the top, which does not have a redo.
|
171 |
And I click on "2" "link" in the "Attempts" "table_row"
|
175 |
And I click on "2" "link" in the "Attempts" "table_row"
|
172 |
Then the state of "First question" question is shown as "Correct"
|
176 |
Then the state of "First question" question is shown as "Correct"
|
173 |
And I should not see "Other questions attempted here"
|
177 |
And I should not see "Other questions attempted here"
|
Línea 189... |
Línea 193... |
189 |
| activity | name | intro | course | idnumber | preferredbehaviour | canredoquestions |
|
193 |
| activity | name | intro | course | idnumber | preferredbehaviour | canredoquestions |
|
190 |
| quiz | Quiz 2 | Quiz 2 description | C1 | quiz2 | immediatefeedback | 1 |
|
194 |
| quiz | Quiz 2 | Quiz 2 description | C1 | quiz2 | immediatefeedback | 1 |
|
191 |
And I am on the "Quiz 2" "mod_quiz > Edit" page logged in as "admin"
|
195 |
And I am on the "Quiz 2" "mod_quiz > Edit" page logged in as "admin"
|
192 |
And I open the "last" add to quiz menu
|
196 |
And I open the "last" add to quiz menu
|
193 |
And I follow "a random question"
|
197 |
And I follow "a random question"
|
- |
|
198 |
And I click on "Switch bank" "button"
|
- |
|
199 |
And I click on "Qbank 1" "link" in the "Select question bank" "dialogue"
|
- |
|
200 |
And I apply question bank filter "Category" with value "Test questions"
|
194 |
And I press "Add random question"
|
201 |
And I press "Add random question"
|
195 |
And user "student" has started an attempt at quiz "Quiz 2" randomised as follows:
|
202 |
And user "student" has started an attempt at quiz "Quiz 2" randomised as follows:
|
196 |
| slot | actualquestion |
|
203 |
| slot | actualquestion |
|
197 |
| 1 | TF1 |
|
204 |
| 1 | TF1 |
|
198 |
And I am on the "Quiz 2" "mod_quiz > View" page logged in as "student"
|
205 |
And I am on the "Quiz 2" "mod_quiz > View" page logged in as "student"
|