mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-46331_26' of git://github.com/timhunt/moodle into M…
…OODLE_26_STABLE
- Loading branch information
Showing
3 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@qtype @qformat_gift | ||
Feature: Test importing questions from GIFT format. | ||
In order to reuse questions | ||
As an teacher | ||
I need to be able to import them in GIFT format. | ||
|
||
Background: | ||
Given the following "courses" exist: | ||
| fullname | shortname | format | | ||
| Course 1 | C1 | topics | | ||
And the following "users" exist: | ||
| username | firstname | | ||
| teacher | Teacher | | ||
And the following "course enrolments" exist: | ||
| user | course | role | | ||
| teacher | C1 | editingteacher | | ||
And I log in as "teacher" | ||
And I follow "Course 1" | ||
|
||
@javascript @_file_upload | ||
Scenario: import some GIFT questions | ||
When I navigate to "Import" node in "Course administration > Question bank" | ||
And I set the field "id_format_gift" to "1" | ||
And I upload "question/format/gift/tests/fixtures/questions.gift.txt" file to "Import" filemanager | ||
And I press "id_submitbutton" | ||
Then I should see "Parsing questions from import file." | ||
And I should see "Importing 9 questions from file" | ||
And I should see "What's between orange and green in the spectrum?" | ||
When I press "Continue" | ||
Then I should see "colours" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters