Línea 19... |
Línea 19... |
19 |
| Course | C1 | Test questions |
|
19 |
| Course | C1 | Test questions |
|
20 |
And the following "questions" exist:
|
20 |
And the following "questions" exist:
|
21 |
| questioncategory | qtype | name | template |
|
21 |
| questioncategory | qtype | name | template |
|
22 |
| Test questions | ordering | Moodle | moodle |
|
22 |
| Test questions | ordering | Moodle | moodle |
|
Línea 23... |
Línea 23... |
23 |
|
23 |
|
24 |
Scenario: Export a Matching question
|
24 |
Scenario: Export a ordering question
|
25 |
When I am on the "Course 1" "core_question > course question export" page logged in as teacher1
|
25 |
When I am on the "Course 1" "core_question > course question export" page logged in as teacher1
|
26 |
And I set the field "id_format_xml" to "1"
|
26 |
And I set the field "id_format_xml" to "1"
|
27 |
And I press "Export questions to file"
|
27 |
And I press "Export questions to file"
|
- |
|
28 |
Then following "click here" should download a file that:
|
- |
|
29 |
| Has mimetype | text/xml |
|
28 |
Then following "click here" should download between "1700" and "2350" bytes
|
30 |
| Contains text in xml element | Moodle |
|
29 |
# If the download step is the last in the scenario then we can sometimes run
|
31 |
# If the download step is the last in the scenario then we can sometimes run
|
30 |
# into the situation where the download page causes a http redirect but behat
|
32 |
# into the situation where the download page causes a http redirect but behat
|
31 |
# has already conducted its reset (generating an error). By putting a logout
|
33 |
# has already conducted its reset (generating an error). By putting a logout
|
32 |
# step we avoid behat doing the reset until we are off that page.
|
34 |
# step we avoid behat doing the reset until we are off that page.
|