Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 13... Línea 13...
13
      | Course 1 | C1        | 0        |
13
      | Course 1 | C1        | 0        |
14
    And the following "course enrolments" exist:
14
    And the following "course enrolments" exist:
15
      | user     | course | role           |
15
      | user     | course | role           |
16
      | teacher1 | C1     | editingteacher |
16
      | teacher1 | C1     | editingteacher |
17
    And the following "activities" exist:
17
    And the following "activities" exist:
18
      | activity   | name   | intro                           | course | idnumber |
18
      | activity   | name    | intro                                     | course | idnumber  |
19
      | quiz       | Quiz 1 | Quiz 1 for testing the Add menu | C1     | quiz1    |
19
      | quiz       | Quiz 1  | Quiz 1 for testing the Add menu           | C1     | quiz1     |
-
 
20
    And the following "question categories" exist:
-
 
21
      | contextlevel    | reference | name           |
-
 
22
      | Activity module | quiz1     | Test questions |
20
    And I am on the "Quiz 1" "mod_quiz > Edit" page logged in as "teacher1"
23
    And I am on the "Quiz 1" "mod_quiz > Edit" page logged in as "teacher1"
Línea 21... Línea 24...
21
 
24
 
22
  @javascript
25
  @javascript
23
  Scenario: Add some new question to the quiz using '+ a new question' options of the 'Add' menu.
26
  Scenario: Add some new question to the quiz using '+ a new question' options of the 'Add' menu.
Línea 97... Línea 100...
97
  Scenario: Add questions from question bank to the quiz. In order to be able to
100
  Scenario: Add questions from question bank to the quiz. In order to be able to
98
      add questions from question bank to the quiz, first we create some new questions
101
      add questions from question bank to the quiz, first we create some new questions
99
      in various categories and add them to the question bank.
102
      in various categories and add them to the question bank.
Línea 100... Línea 103...
100
 
103
 
101
    # Create a couple of sub categories.
-
 
102
    When I am on the "Course 1" "core_question > course question categories" page
-
 
103
    Then I should see "Add category"
104
    # Create a couple of sub categories.
104
    And I follow "Add category"
105
    Given the following "question categories" exist:
105
    Then I set the field "Parent category" to "Default for C1"
-
 
106
    And I set the field "Name" to "Subcat 1"
106
      | contextlevel    | reference | questioncategory | name           |
107
    And I set the field "Category info" to "This is sub category 1"
-
 
108
    And I press "id_submitbutton"
-
 
109
    And I should see "Subcat 1"
-
 
110
 
-
 
111
    And I follow "Add category"
107
      | Activity module | quiz1     | Test questions   | Subcat 1       |
112
    Then I set the field "Parent category" to "Default for C1"
-
 
113
    And I set the field "Name" to "Subcat 2"
108
      | Activity module | quiz1     | Test questions   | Subcat 2       |
114
    And I set the field "Category info" to "This is sub category 2"
-
 
115
    And I press "id_submitbutton"
-
 
Línea 116... Línea 109...
116
    And I should see "Subcat 2"
109
    When I am on the "Quiz 1" "mod_quiz > question categories" page
117
 
110
 
Línea 118... Línea 111...
118
    And I select "Questions" from the "Question bank tertiary navigation" singleselect
111
    And I select "Questions" from the "Question bank tertiary navigation" singleselect
Línea 237... Línea 230...
237
    And I should see "Random" on quiz page "4"
230
    And I should see "Random" on quiz page "4"
238
    And I should see "Essay for page 4" on quiz page "4"
231
    And I should see "Essay for page 4" on quiz page "4"
Línea 239... Línea 232...
239
 
232
 
240
  @accessibility @javascript
233
  @accessibility @javascript
241
  Scenario: Check the accessibility of the quiz questions page
-
 
242
    Given the following "question categories" exist:
-
 
243
      | contextlevel | reference | name           |
-
 
244
      | Course       | C1        | Test questions |
234
  Scenario: Check the accessibility of the quiz questions page
245
    And the following "questions" exist:
235
    Given the following "questions" exist:
246
      | questioncategory | qtype     | name           | questiontext              |
236
      | questioncategory | qtype     | name           | questiontext              |
247
      | Test questions   | truefalse | First question | Answer the first question |
237
      | Test questions   | truefalse | First question | Answer the first question |
248
      | Test questions   | truefalse | Other question | Answer the first question |
238
      | Test questions   | truefalse | Other question | Answer the first question |
249
    And quiz "Quiz 1" contains the following questions:
239
    And quiz "Quiz 1" contains the following questions: