MDL-47497 qformats gift and xml: basic test of export.

Really, this is just to test the new behat setps, as much as anything.

Note that the details of what is written to the export files is tested in
the unit tests.
This commit is contained in:
Tim Hunt 2014-10-01 16:59:56 +01:00 committed by Marina Glancy
parent cb7db63b5d
commit d7a2a11e67
2 changed files with 12 additions and 0 deletions

View File

@ -28,3 +28,9 @@ Feature: Test importing questions from GIFT format.
And I should see "What's between orange and green in the spectrum?"
When I press "Continue"
Then I should see "colours"
# Now export again.
And I navigate to "Export" node in "Course administration > Question bank"
And I set the field "id_format_gift" to "1"
And I press "Export questions to file"
And following "click here" should download "1624" bytes

View File

@ -31,6 +31,12 @@ Feature: Test importing questions from Moodle XML format.
Then I should see "Moodle acronym (False)"
Then I should see "Moodle acronym (True)"
# Now export again.
And I navigate to "Export" node in "Course administration > Question bank"
And I set the field "id_format_xml" to "1"
And I press "Export questions to file"
And following "click here" should download between "57000" and "58000" bytes
@javascript @_file_upload
Scenario: import some multiple choice questions from Moodle XML format
When I navigate to "Import" node in "Course administration > Question bank"