1 |
efrain |
1 |
@qtype @qtype_match
|
|
|
2 |
Feature: Test creating a Matching question
|
|
|
3 |
As a teacher
|
|
|
4 |
In order to test my students
|
|
|
5 |
I need to be able to create a Matching 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 |
@javascript
|
|
|
19 |
Scenario: Create a Matching question with 3 subquestions
|
|
|
20 |
When I am on the "Course 1" "core_question > course question bank" page logged in as teacher
|
|
|
21 |
And I add a "Matching" question filling the form with:
|
|
|
22 |
| Question name | match-001 |
|
|
|
23 |
| Question text | Match the country with the capital city. |
|
|
|
24 |
| General feedback | England=London, France=Paris and Spain=Madrid. |
|
|
|
25 |
| id_shuffleanswers | 0 |
|
|
|
26 |
| id_subquestions_0 | England |
|
|
|
27 |
| id_subanswers_0 | London |
|
|
|
28 |
| id_subquestions_1 | France |
|
|
|
29 |
| id_subanswers_1 | Paris |
|
|
|
30 |
| id_subquestions_2 | Spain |
|
|
|
31 |
| id_subanswers_2 | Madrid |
|
|
|
32 |
| For any correct response | Your answer is correct |
|
|
|
33 |
| For any partially correct response | Your answer is partially correct |
|
|
|
34 |
| For any incorrect response | Your answer is incorrect |
|
|
|
35 |
| Hint 1 | This is your first hint |
|
|
|
36 |
| Hint 2 | This is your second hint |
|
|
|
37 |
Then I should see "match-001"
|
|
|
38 |
# Checking that the next new question form displays user preferences settings.
|
|
|
39 |
And I press "Create a new question ..."
|
|
|
40 |
And I set the field "item_qtype_match" to "1"
|
|
|
41 |
And I click on "Add" "button" in the "Choose a question type to add" "dialogue"
|
|
|
42 |
And the following fields match these values:
|
|
|
43 |
| id_shuffleanswers | 0 |
|