AutorÃa | Ultima modificación | Ver Log |
@qtype @qtype_essayFeature: Test duplicating a quiz containing an Essay questionAs a teacherIn order re-use my courses containing Essay 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 | essay | essay-001 | editor || Test questions | essay | essay-002 | editorfilepicker || Test questions | essay | essay-003 | plain |And the following "activities" exist:| activity | name | course | idnumber || quiz | Test quiz | C1 | quiz1 |And quiz "Test quiz" contains the following questions:| essay-001 | 1 || essay-002 | 1 || essay-003 | 1 |And the following config values are set as admin:| enableasyncbackup | 0 |@javascriptScenario: Backup and restore a course containing 3 Essay questionsWhen 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" pageThen I should see "essay-001"And I should see "essay-002"And I should see "essay-003"And I choose "Edit question" action for "essay-001" in the question bankThen the following fields match these values:| Question name | essay-001 || Question text | Please write a story about a frog. || General feedback | I hope your story had a beginning, a middle and an end. || Response format | HTML editor || Require text | Require the student to enter text |And I press "Cancel"And I choose "Edit question" action for "essay-002" in the question bankThen the following fields match these values:| Question name | essay-002 || Question text | Please write a story about a frog. || General feedback | I hope your story had a beginning, a middle and an end. || Response format | HTML editor with file picker || Require text | Require the student to enter text |And I press "Cancel"And I choose "Edit question" action for "essay-003" in the question bankThen the following fields match these values:| Question name | essay-003 || Question text | Please write a story about a frog. || General feedback | I hope your story had a beginning, a middle and an end. || Response format | Plain text || Require text | Require the student to enter text |