X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/question/type/shortanswer/tests/behat
home
/
cbholdings
/
pasukulu
/
question
/
type
/
shortanswer
/
tests
/
behat
/
📁
..
📄
add.feature
(1.92 KB)
📄
backup_and_restore.feature
(2.67 KB)
📄
edit.feature
(2.35 KB)
📄
export.feature
(1.47 KB)
📄
import.feature
(1.08 KB)
📄
preview.feature
(2.9 KB)
Editing: add.feature
@qtype @qtype_shortanswer Feature: Test creating a Short answer question As a teacher In order to test my students I need to be able to create a Short answer question Background: Given the following "users" exist: | username | | teacher | And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And the following "course enrolments" exist: | user | course | role | | teacher | C1 | editingteacher | @javascript Scenario: Create a Short answer question When I am on the "Course 1" "core_question > course question bank" page logged in as teacher And I add a "Short answer" question filling the form with: | Question name | shortanswer-001 | | Question text | What is the national langauge in France? | | General feedback | The national langauge in France is French | | Default mark | 1 | | Case sensitivity | Yes, case must match | | id_answer_0 | French | | id_fraction_0 | 100% | | id_feedback_0 | Well done. French is correct. | | id_answer_1 | * | | id_fraction_1 | None | | id_feedback_1 | Your answer is incorrect. | Then I should see "shortanswer-001" # Checking that the next new question form displays user preferences settings. And I press "Create a new question ..." And I set the field "Short answer" to "1" And I click on "Add" "button" in the "Choose a question type to add" "dialogue" And the following fields match these values: | Case sensitivity | Yes, case must match |
Upload File
Create Folder