Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 12... Línea 12...
12
      | fullname | shortname | category |
12
      | fullname | shortname | category |
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:
-
 
18
      | activity   | name    | course | idnumber |
-
 
19
      | qbank      | Qbank 1 | C1     | qbank1   |
17
    And the following "question categories" exist:
20
    And the following "question categories" exist:
18
      | contextlevel | reference | name           |
21
      | contextlevel    | reference | name           |
19
      | Course       | C1        | Test questions |
22
      | Activity module | qbank1    | Test questions |
20
    And the following "questions" exist:
23
    And the following "questions" exist:
21
      | questioncategory | qtype        | name             | template    |
24
      | questioncategory    | qtype        | name             | template    |
22
      | Test questions   | multichoice  | Multi-choice-001 | two_of_four |
25
      | Default for Qbank 1 | multichoice  | Multi-choice-001 | two_of_four |
23
      | Test questions   | multichoice  | Multi-choice-002 | one_of_four |
26
      | Default for Qbank 1 | multichoice  | Multi-choice-002 | one_of_four |
Línea 24... Línea 27...
24
 
27
 
25
  Scenario: Aiken export
28
  Scenario: Aiken export
26
    When I am on the "Course 1" "core_question > course question export" page logged in as "teacher1"
29
    When I am on the "Qbank 1" "core_question > question export" page logged in as "teacher1"
27
    And I set the field "id_format_aiken" to "1"
30
    And I set the field "id_format_aiken" to "1"
28
    When I press "Export questions to file"
31
    When I press "Export questions to file"
-
 
32
    Then following "click here" should download a file that:
-
 
33
      | Has mimetype  | text/plain                  |
29
    Then following "click here" should download between "68" and "70" bytes
34
      | Contains text | Which is the oddest number? |
30
    # If the download step is the last in the scenario then we can sometimes run
35
    # If the download step is the last in the scenario then we can sometimes run
31
    # into the situation where the download page causes a http redirect but behat
36
    # into the situation where the download page causes a http redirect but behat
32
    # has already conducted its reset (generating an error). By putting a logout
37
    # has already conducted its reset (generating an error). By putting a logout
33
    # step we avoid behat doing the reset until we are off that page.
38
    # step we avoid behat doing the reset until we are off that page.