Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 14... Línea 14...
14
      | student5 | user5     | student5 | student5@example.com |
14
      | student5 | user5     | student5 | student5@example.com |
15
    And the following "course enrolments" exist:
15
    And the following "course enrolments" exist:
16
      | user     | course | role           |
16
      | user     | course | role           |
17
      | student1 | C1     | student        |
17
      | student1 | C1     | student        |
18
      | student2 | C1     | student        |
18
      | student2 | 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   | TF1   | First question  |
-
 
25
      | Test questions   | truefalse   | TF2   | Second question |
-
 
26
      | Test questions   | truefalse   | TF3   | Third question  |
-
 
27
      | Test questions   | truefalse   | TF4   | Fourth question |
-
 
28
    And the following "activities" exist:
19
    And the following "activities" exist:
29
      | activity   | name   | intro              | course | idnumber |
20
      | activity   | name    | intro              | course | idnumber |
30
      | quiz       | Quiz 1 | Quiz 1 description | C1     | quiz1    |
21
      | quiz       | Quiz 1  | Quiz 1 description | C1     | quiz1    |
31
      | quiz       | Quiz 2 | Quiz 2 description | C1     | quiz2    |
22
      | quiz       | Quiz 2  | Quiz 2 description | C1     | quiz2    |
-
 
23
      | qbank      | Qbank 1 | Question bank 1    | C1     | qbank1   |
-
 
24
    And the following "questions" exist:
-
 
25
      | questioncategory    | qtype       | name  | questiontext    |
-
 
26
      | Default for Qbank 1 | truefalse   | TF1   | First question  |
-
 
27
      | Default for Qbank 1 | truefalse   | TF2   | Second question |
-
 
28
      | Default for Qbank 1 | truefalse   | TF3   | Third question  |
-
 
29
      | Default for Qbank 1 | truefalse   | TF4   | Fourth question |
32
    And quiz "Quiz 1" contains the following questions:
30
    And quiz "Quiz 1" contains the following questions:
33
      | question | page | maxmark |
31
      | question | page | maxmark |
34
      | TF1      | 1    | 1.0     |
32
      | TF1      | 1    | 1.0     |
35
      | TF2      | 1    | 1.0     |
33
      | TF2      | 1    | 1.0     |
36
      | TF3      | 1    | 1.0     |
34
      | TF3      | 1    | 1.0     |
Línea 72... Línea 70...
72
    And user "student2" has attempted "Quiz 2" with responses:
70
    And user "student2" has attempted "Quiz 2" with responses:
73
      | slot | response |
71
      | slot | response |
74
      | 1    | True     |
72
      | 1    | True     |
75
      | 2    | True     |
73
      | 2    | True     |
76
    And I run pending statistics recalculation tasks
74
    And I run pending statistics recalculation tasks
77
    When I am on the "Course 1" "core_question > course question bank" page logged in as "admin"
75
    When I am on the "Qbank 1" "core_question > question bank" page logged in as "admin"
78
    Then I should see "50.00%" in the "TF1" "table_row"
76
    Then I should see "50.00%" in the "TF1" "table_row"
79
    And I should see "75.00%" in the "TF2" "table_row"
77
    And I should see "75.00%" in the "TF2" "table_row"
80
    And I should see "75.00%" in the "TF3" "table_row"
78
    And I should see "75.00%" in the "TF3" "table_row"
81
    And I should see "50.00%" in the "TF4" "table_row"
79
    And I should see "50.00%" in the "TF4" "table_row"
Línea 88... Línea 86...
88
    And user "student2" has attempted "Quiz 2" with responses:
86
    And user "student2" has attempted "Quiz 2" with responses:
89
      | slot | response |
87
      | slot | response |
90
      | 1    | True     |
88
      | 1    | True     |
91
      | 2    | True     |
89
      | 2    | True     |
92
    And I run pending statistics recalculation tasks
90
    And I run pending statistics recalculation tasks
93
    When I am on the "Course 1" "core_question > course question bank" page logged in as "admin"
91
    When I am on the "Qbank 1" "core_question > question bank" page logged in as "admin"
94
    Then I should see "50.00%" in the "TF1" "table_row"
92
    Then I should see "50.00%" in the "TF1" "table_row"
95
    And I should see "75.00%" in the "TF2" "table_row"
93
    And I should see "75.00%" in the "TF2" "table_row"
96
    And I should see "75.00%" in the "TF3" "table_row"
94
    And I should see "75.00%" in the "TF3" "table_row"
97
    And I should see "50.00%" in the "TF4" "table_row"
95
    And I should see "50.00%" in the "TF4" "table_row"
Línea 104... Línea 102...
104
    And user "student2" has attempted "Quiz 2" with responses:
102
    And user "student2" has attempted "Quiz 2" with responses:
105
      | slot | response |
103
      | slot | response |
106
      | 1    | True     |
104
      | 1    | True     |
107
      | 2    | True     |
105
      | 2    | True     |
108
    And I run pending statistics recalculation tasks
106
    And I run pending statistics recalculation tasks
109
    When I am on the "Course 1" "core_question > course question bank" page logged in as "admin"
107
    When I am on the "Qbank 1" "core_question > question bank" page logged in as "admin"
110
    Then I should see "Likely" in the "TF1" "table_row"
108
    Then I should see "Likely" in the "TF1" "table_row"
111
    And I should see "Unlikely" in the "TF2" "table_row"
109
    And I should see "Unlikely" in the "TF2" "table_row"
112
    And I should see "Unlikely" in the "TF3" "table_row"
110
    And I should see "Unlikely" in the "TF3" "table_row"
113
    And I should see "Likely" in the "TF4" "table_row"
111
    And I should see "Likely" in the "TF4" "table_row"
114
    And I should see "Likely" in the ".alert-warning" "css_element"
112
    And I should see "Likely" in the ".alert-warning" "css_element"
Línea 126... Línea 124...
126
    And user "student3" has attempted "Quiz 2" with responses:
124
    And user "student3" has attempted "Quiz 2" with responses:
127
      | slot | response |
125
      | slot | response |
128
      | 1    | True     |
126
      | 1    | True     |
129
      | 2    | False    |
127
      | 2    | False    |
130
    And I run pending statistics recalculation tasks
128
    And I run pending statistics recalculation tasks
131
    When I am on the "Course 1" "core_question > course question bank" page logged in as "admin"
129
    When I am on the "Qbank 1" "core_question > question bank" page logged in as "admin"
132
    Then I should see "Likely" in the "TF1" "table_row"
130
    Then I should see "Likely" in the "TF1" "table_row"
133
    And I should see "Very likely" in the "TF2" "table_row"
131
    And I should see "Very likely" in the "TF2" "table_row"
134
    And I should see "Very likely" in the "TF3" "table_row"
132
    And I should see "Very likely" in the "TF3" "table_row"
135
    And I should see "Likely" in the "TF4" "table_row"
133
    And I should see "Likely" in the "TF4" "table_row"
136
    And I should see "Very likely" in the ".alert-danger" "css_element"
134
    And I should see "Very likely" in the ".alert-danger" "css_element"
Línea 148... Línea 146...
148
      | student4 | C2     | student        |
146
      | student4 | C2     | student        |
149
      | student5 | C2     | student        |
147
      | student5 | C2     | student        |
150
    And the following "activities" exist:
148
    And the following "activities" exist:
151
      | activity   | name   | course | idnumber |
149
      | activity   | name   | course | idnumber |
152
      | quiz       | Quiz 3 | C2     | quiz3    |
150
      | quiz       | Quiz 3 | C2     | quiz3    |
153
    And the following "question categories" exist:
-
 
154
      | contextlevel    | reference | name           |
-
 
155
      | Course          | C2        | Quiz questions |
-
 
156
    And the following "questions" exist:
151
    And the following "questions" exist:
157
      | questioncategory | qtype       | template    | name |
152
      | questioncategory   | qtype       | template    | name |
158
      | Quiz questions   | multichoice | one_of_four | MCA  |
153
      | Default for Quiz 3 | multichoice | one_of_four | MCA  |
159
      | Quiz questions   | multichoice | one_of_four | MCB  |
154
      | Default for Quiz 3 | multichoice | one_of_four | MCB  |
160
      | Quiz questions   | multichoice | one_of_four | MCC  |
155
      | Default for Quiz 3 | multichoice | one_of_four | MCC  |
161
      | Quiz questions   | multichoice | one_of_four | MCD  |
156
      | Default for Quiz 3 | multichoice | one_of_four | MCD  |
162
      | Quiz questions   | multichoice | one_of_four | MCE  |
157
      | Default for Quiz 3 | multichoice | one_of_four | MCE  |
163
    And quiz "Quiz 3" contains the following questions:
158
    And quiz "Quiz 3" contains the following questions:
164
      | question | page | maxmark |
159
      | question | page | maxmark |
165
      | MCA      | 1    | 1.0     |
160
      | MCA      | 1    | 1.0     |
166
      | MCB      | 1    | 1.0     |
161
      | MCB      | 1    | 1.0     |
167
      | MCC      | 1    | 1.0     |
162
      | MCC      | 1    | 1.0     |