AutorÃa | Ultima modificación | Ver Log |
@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 |