X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/question/type/essay/tests/behat
home
/
cbholdings
/
pasukulu
/
question
/
type
/
essay
/
tests
/
behat
/
📁
..
📄
add.feature
(3.02 KB)
📄
backup_and_restore.feature
(3.47 KB)
📄
edit.feature
(1.78 KB)
📄
edit_min_max_fields.feature
(3.54 KB)
📄
export.feature
(1.56 KB)
📄
file_type_restriction.feature
(3.39 KB)
📄
import.feature
(1.17 KB)
📄
max_file_size.feature
(1.77 KB)
📄
preview.feature
(2.18 KB)
Editing: backup_and_restore.feature
@qtype @qtype_essay Feature: Test duplicating a quiz containing an Essay question As a teacher In order re-use my courses containing Essay questions I need to be able to backup and restore them Background: 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 | @javascript Scenario: Backup and restore a course containing 3 Essay questions When I am on the "Course 1" course page logged in as admin And 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" page Then 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 bank Then 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 bank Then 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 bank Then 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 |
Upload File
Create Folder