[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_quiz 2 Feature: Backup and restore of quizzes 3 In order to reuse my quizzes 4 As a teacher 5 I need to be able to back them up and restore them. 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | category | 10 | Course 1 | C1 | 0 | 11 And the following "question categories" exist: 12 | contextlevel | reference | name | 13 | Course | C1 | Test questions | 14 And I log in as "admin" 15 16 @javascript 17 Scenario: Duplicate a quiz with two questions 18 Given the following "activities" exist: 19 | activity | name | intro | course | idnumber | 20 | quiz | Quiz 1 | For testing backup | C1 | quiz1 | 21 And the following "questions" exist: 22 | questioncategory | qtype | name | questiontext | 23 | Test questions | truefalse | TF1 | First question | 24 | Test questions | truefalse | TF2 | Second question | 25 And quiz "Quiz 1" contains the following questions: 26 | question | page | 27 | TF1 | 1 | 28 | TF2 | 2 | 29 And I am on site homepage 30 When I follow "Course 1" 31 And I turn editing mode on 32 And I duplicate "Quiz 1" activity editing the new copy with: 33 | Name | Quiz 2 | 34 And I follow "Quiz 2" 35 And I follow "Edit quiz" 36 Then I should see "TF1" 37 And I should see "TF2" 38 39 @javascript @_file_upload 40 Scenario: Restore a Moodle 2.8 quiz backup 41 And I am on site homepage 42 When I follow "Course 1" 43 And I navigate to "Restore" node in "Course administration" 44 And I press "Manage backup files" 45 And I upload "mod/quiz/tests/fixtures/moodle_28_quiz.mbz" file to "Files" filemanager 46 And I press "Save changes" 47 And I restore "moodle_28_quiz.mbz" backup into "Course 1" course using this options: 48 And I follow "Restored Moodle 2.8 quiz" 49 And I follow "Edit quiz" 50 Then I should see "TF1" 51 And I should see "TF2"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |