1 @qtype @qtype_truefalse
2 Feature: Test creating a True/False question
4 In order to test my students
5 I need to be able to create a True/False question
8 Given the following "users" exist:
9 | username | firstname | lastname | email |
10 | teacher1 | T1 | Teacher1 | teacher1@moodle.com |
11 And the following "courses" exist:
12 | fullname | shortname | category |
14 And the following "course enrolments" exist:
15 | user | course | role |
16 | teacher1 | C1 | editingteacher |
17 And I log in as "teacher1"
18 And I follow "Course 1"
19 And I navigate to "Question bank" node in "Course administration"
22 Scenario: Create a True/False question with Correct answer as False
23 When I add a "True/False" question filling the form with:
24 | Question name | true-false-001 |
25 | Question text | Manchester is the capital city of England. |
27 | General feedback | London is the capital city of England. |
28 | Correct answer | False |
29 | Feedback for the response 'True'. | Well done! |
30 | Feedback for the response 'False'. | Read more about England. |
31 Then I should see "true-false-001"
34 Scenario: Create a True/False question with Correct answer as True
35 When I add a "True/False" question filling the form with:
36 | Question name | true-false-002 |
37 | Question text | London is the capital city of England. |
39 | General feedback | London is the capital city of England. |
40 | Correct answer | True |
41 | Feedback for the response 'True'. | Well done! |
42 | Feedback for the response 'False'. | Read more about England. |
43 Then I should see "true-false-002"