1 |
efrain |
1 |
@qtype @qtype_truefalse
|
|
|
2 |
Feature: Test creating a True/False question
|
|
|
3 |
As a teacher
|
|
|
4 |
In order to test my students
|
|
|
5 |
I need to be able to create a True/False question
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username |
|
|
|
10 |
| teacher |
|
|
|
11 |
And the following "courses" exist:
|
|
|
12 |
| fullname | shortname | category |
|
|
|
13 |
| Course 1 | C1 | 0 |
|
|
|
14 |
And the following "course enrolments" exist:
|
|
|
15 |
| user | course | role |
|
|
|
16 |
| teacher | C1 | editingteacher |
|
|
|
17 |
|
|
|
18 |
Scenario: Create a True/False question with Correct answer as False
|
|
|
19 |
When I am on the "Course 1" "core_question > course question bank" page logged in as teacher
|
|
|
20 |
And I add a "True/False" question filling the form with:
|
|
|
21 |
| Question name | true-false-001 |
|
|
|
22 |
| Question text | Manchester is the capital city of England. |
|
|
|
23 |
| Default mark | 1 |
|
|
|
24 |
| General feedback | London is the capital city of England. |
|
|
|
25 |
| Correct answer | False |
|
|
|
26 |
| Feedback for the response 'True'. | Well done! |
|
|
|
27 |
| Feedback for the response 'False'. | Read more about England. |
|
|
|
28 |
Then I should see "true-false-001"
|
|
|
29 |
|
|
|
30 |
@javascript
|
|
|
31 |
Scenario: Create a True/False question with Correct answer as True
|
|
|
32 |
When I am on the "Course 1" "core_question > course question bank" page logged in as teacher
|
|
|
33 |
And I add a "True/False" question filling the form with:
|
|
|
34 |
| Question name | true-false-002 |
|
|
|
35 |
| Question text | London is the capital city of England. |
|
|
|
36 |
| Default mark | 1 |
|
|
|
37 |
| General feedback | London is the capital city of England. |
|
|
|
38 |
| Correct answer | True |
|
|
|
39 |
| Show standard instructions | Yes |
|
|
|
40 |
| Feedback for the response 'True'. | Well done! |
|
|
|
41 |
| Feedback for the response 'False'. | Read more about England. |
|
|
|
42 |
Then I should see "true-false-002"
|
|
|
43 |
# Checking that the next new question form displays user preferences settings.
|
|
|
44 |
And I press "Create a new question ..."
|
|
|
45 |
And I set the field "True/False" to "1"
|
|
|
46 |
And I click on "Add" "button" in the "Choose a question type to add" "dialogue"
|
|
|
47 |
And the following fields match these values:
|
|
|
48 |
| Show standard instructions | Yes |
|