X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/question/type/truefalse/tests/behat
home
/
cbholdings
/
pasukulu
/
question
/
type
/
truefalse
/
tests
/
behat
/
📁
..
📄
add.feature
(2.67 KB)
📄
backup_and_restore.feature
(2.06 KB)
📄
edit.feature
(1.29 KB)
📄
export.feature
(1.45 KB)
📄
import.feature
(1.06 KB)
📄
preview.feature
(1.88 KB)
Editing: add.feature
@qtype @qtype_truefalse Feature: Test creating a True/False question As a teacher In order to test my students I need to be able to create a True/False 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 | Scenario: Create a True/False question with Correct answer as False When I am on the "Course 1" "core_question > course question bank" page logged in as teacher And I add a "True/False" question filling the form with: | Question name | true-false-001 | | Question text | Manchester is the capital city of England. | | Default mark | 1 | | General feedback | London is the capital city of England. | | Correct answer | False | | Feedback for the response 'True'. | Well done! | | Feedback for the response 'False'. | Read more about England. | Then I should see "true-false-001" @javascript Scenario: Create a True/False question with Correct answer as True When I am on the "Course 1" "core_question > course question bank" page logged in as teacher And I add a "True/False" question filling the form with: | Question name | true-false-002 | | Question text | London is the capital city of England. | | Default mark | 1 | | General feedback | London is the capital city of England. | | Correct answer | True | | Show standard instructions | Yes | | Feedback for the response 'True'. | Well done! | | Feedback for the response 'False'. | Read more about England. | Then I should see "true-false-002" # Checking that the next new question form displays user preferences settings. And I press "Create a new question ..." And I set the field "True/False" to "1" And I click on "Add" "button" in the "Choose a question type to add" "dialogue" And the following fields match these values: | Show standard instructions | Yes |
Upload File
Create Folder