Línea 14... |
Línea 14... |
14 |
| Course 1 | C1 | 0 | 1 |
|
14 |
| Course 1 | C1 | 0 | 1 |
|
15 |
And the following "course enrolments" exist:
|
15 |
And the following "course enrolments" exist:
|
16 |
| user | course | role |
|
16 |
| user | course | role |
|
17 |
| teacher1 | C1 | editingteacher |
|
17 |
| teacher1 | C1 | editingteacher |
|
18 |
| student1 | C1 | student |
|
18 |
| student1 | C1 | student |
|
19 |
And the following "question categories" exist:
|
- |
|
20 |
| contextlevel | reference | name |
|
- |
|
21 |
| Course | C1 | Test questions |
|
- |
|
22 |
And the following "questions" exist:
|
- |
|
23 |
| questioncategory | qtype | name | questiontext |
|
- |
|
24 |
| Test questions | truefalse | First question | Answer the first question |
|
- |
|
25 |
And the following "activity" exists:
|
19 |
And the following "activity" exists:
|
26 |
| activity | quiz |
|
20 |
| activity | quiz |
|
27 |
| course | C1 |
|
21 |
| course | C1 |
|
28 |
| idnumber | quiz1 |
|
22 |
| idnumber | quiz1 |
|
29 |
| name | Test quiz name |
|
23 |
| name | Test quiz name |
|
Línea 35... |
Línea 29... |
35 |
| completionusegrade | 1 |
|
29 |
| completionusegrade | 1 |
|
36 |
| completionpassgrade | 1 |
|
30 |
| completionpassgrade | 1 |
|
37 |
| completionattemptsexhausted | 1 |
|
31 |
| completionattemptsexhausted | 1 |
|
38 |
| completionminattemptsenabled | 1 |
|
32 |
| completionminattemptsenabled | 1 |
|
39 |
| completionminattempts | 1 |
|
33 |
| completionminattempts | 1 |
|
- |
|
34 |
And the following "question categories" exist:
|
- |
|
35 |
| contextlevel | reference | name |
|
- |
|
36 |
| Activity module | quiz1 | Test questions |
|
- |
|
37 |
And the following "questions" exist:
|
- |
|
38 |
| questioncategory | qtype | name | questiontext |
|
- |
|
39 |
| Test questions | truefalse | First question | Answer the first question |
|
40 |
And quiz "Test quiz name" contains the following questions:
|
40 |
And quiz "Test quiz name" contains the following questions:
|
41 |
| question | page |
|
41 |
| question | page |
|
42 |
| First question | 1 |
|
42 |
| First question | 1 |
|
Línea 43... |
Línea 43... |
43 |
|
43 |
|
44 |
Scenario Outline: View automatic completion items as a student
|
44 |
Scenario Outline: A student can complete a quiz activity by achieving a passing grade
|
45 |
When I log in as "student1"
|
45 |
When I log in as "student1"
|
46 |
And I am on "Course 1" course homepage
|
46 |
And I am on "Course 1" course homepage
|
47 |
And I follow "Test quiz name"
|
47 |
And I follow "Test quiz name"
|
48 |
And the "View" completion condition of "Test quiz name" is displayed as "done"
|
48 |
And the "View" completion condition of "Test quiz name" is displayed as "done"
|
49 |
And the "Make attempts: 1" completion condition of "Test quiz name" is displayed as "todo"
|
49 |
And the "Make attempts: 1" completion condition of "Test quiz name" is displayed as "todo"
|
50 |
And the "Receive a grade" completion condition of "Test quiz name" is displayed as "todo"
|
50 |
And the "Receive a grade" completion condition of "Test quiz name" is displayed as "todo"
|
51 |
And the "Receive a passing grade" completion condition of "Test quiz name" is displayed as "todo"
|
51 |
And the "Receive a passing grade" completion condition of "Test quiz name" is displayed as "todo"
|
52 |
And the "Receive a pass grade or complete all available attempts" completion condition of "Test quiz name" is displayed as "todo"
|
52 |
And the "Receive a pass grade or complete all available attempts" completion condition of "Test quiz name" is displayed as "todo"
|
53 |
And user "student1" has attempted "Test quiz name" with responses:
|
53 |
And I press "Attempt quiz"
|
54 |
| slot | response |
|
54 |
And I set the field "False" to "1"
|
- |
|
55 |
And I press "Finish attempt ..."
|
55 |
| 1 | False |
|
56 |
And I press "Submit all and finish"
|
56 |
And I am on "Course 1" course homepage
|
57 |
And I am on "Course 1" course homepage
|
57 |
And I follow "Test quiz name"
|
58 |
And I follow "Test quiz name"
|
58 |
And the "View" completion condition of "Test quiz name" is displayed as "done"
|
59 |
And the "View" completion condition of "Test quiz name" is displayed as "done"
|
59 |
And the "Make attempts: 1" completion condition of "Test quiz name" is displayed as "done"
|
60 |
And the "Make attempts: 1" completion condition of "Test quiz name" is displayed as "done"
|
60 |
And the "Receive a grade" completion condition of "Test quiz name" is displayed as "done"
|
61 |
And the "Receive a grade" completion condition of "Test quiz name" is displayed as "done"
|
61 |
And the "Receive a passing grade" completion condition of "Test quiz name" is displayed as "failed"
|
62 |
And the "Receive a passing grade" completion condition of "Test quiz name" is displayed as "failed"
|
- |
|
63 |
And the "Receive a pass grade or complete all available attempts" completion condition of "Test quiz name" is displayed as "todo"
|
- |
|
64 |
And I run all adhoc tasks
|
- |
|
65 |
And I reload the page
|
- |
|
66 |
And the "Receive a grade" completion condition of "Test quiz name" is displayed as "done"
|
62 |
And the "Receive a pass grade or complete all available attempts" completion condition of "Test quiz name" is displayed as "todo"
|
67 |
And the "Receive a passing grade" completion condition of "Test quiz name" is displayed as "failed"
|
63 |
And I press "Re-attempt quiz"
|
68 |
And I press "Re-attempt quiz"
|
64 |
And I set the field "<answer>" to "1"
|
69 |
And I set the field "<answer>" to "1"
|
65 |
And I press "Finish attempt ..."
|
70 |
And I press "Finish attempt ..."
|
66 |
And I press "Submit all and finish"
|
71 |
And I press "Submit all and finish"
|