AutorÃa | Ultima modificación | Ver Log |
@qtype @qtype_multichoiceFeature: Test duplicating a quiz containing a Multiple choice questionAs a teacherIn order re-use my courses containing Multiple choice questionsI need to be able to backup and restore themBackground:And the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "question categories" exist:| contextlevel | reference | name || Course | C1 | Test questions |And the following "questions" exist:| questioncategory | qtype | name | template || Test questions | multichoice | Multi-choice-001 | two_of_four |And the following "activities" exist:| activity | name | course | idnumber || quiz | Test quiz | C1 | quiz1 |And quiz "Test quiz" contains the following questions:| Multi-choice-001 | 1 |And the following config values are set as admin:| enableasyncbackup | 0 |@javascriptScenario: Backup and restore a course containing a Multiple choice questionWhen I am on the "Course 1" course page logged in as adminAnd I backup "Course 1" course using this options:| Confirmation | Filename | test_backup.mbz |And I restore "test_backup.mbz" backup into a new course using this options:| Schema | Course name | Course 2 || Schema | Course short name | C2 |And I am on the "Course 2" "core_question > course question bank" pageAnd I choose "Edit question" action for "Multi-choice-001" in the question bankThen the following fields match these values:| Question name | Multi-choice-001 || Question text | Which are the odd numbers? || General feedback | The odd numbers are One and Three. || Default mark | 1 || One or multiple answers? | Multiple answers allowed || Shuffle the choices? | 1 || Choice 1 | One || Choice 2 | Two || Choice 3 | Three || Choice 4 | Four || id_fraction_0 | 50% || id_fraction_1 | None || id_fraction_2 | 50% || id_fraction_3 | None || For any correct response | Well done! || For any partially correct response | Parts, but only parts, of your response are correct. || For any incorrect response | That is not right at all. |