Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@qtype @qtype_multichoice @javascript
2
Feature: Test settings for Multiple choice question
3
  As an admininstrator
4
  In order to provide default settings for commonly used fields in Multiple choice questions
5
  I need to be able to edit side-wide settings, so teachers have less fields to setup for their first time.
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: Testing the settings for qtype_multichoice
19
    Given I log in as "admin"
20
    When I navigate to "Plugins > Question types > Multiple choice" in site administration
21
    Then the following fields match these values:
22
      |id_s_qtype_multichoice_answerhowmany           | One answer only |
23
      |id_s_qtype_multichoice_shuffleanswers          | 1               |
24
      |id_s_qtype_multichoice_answernumbering         | a., b., c., ... |
25
      |id_s_qtype_multichoice_showstandardinstruction |                 |
26
    And I set the following fields to these values:
27
      |id_s_qtype_multichoice_shuffleanswers          |                 |
28
      |id_s_qtype_multichoice_answernumbering         | 1., 2., 3., ... |
29
      |id_s_qtype_multichoice_showstandardinstruction | 1               |
30
    And I press "Save changes"
31
    And I log out
32
    And I am on the "Course 1" "core_question > course question bank" page logged in as teacher
33
    And I add a "Multiple choice" question filling the form with:
34
      | Question name              | Multi-choice-001                       |
35
      | Question text              | Find the capital city of England.      |
36
      | General feedback           | London is the capital city of England. |
37
      | Default mark               | 5                                      |
38
      | Choice 1                   | Manchester                             |
39
      | Choice 2                   | Buckingham                             |
40
      | Choice 3                   | London                                 |
41
      | Choice 4                   | Barcelona                              |
42
      | Choice 5                   | Paris                                  |
43
      | id_fraction_0              | None                                   |
44
      | id_fraction_1              | None                                   |
45
      | id_fraction_2              | 100%                                   |
46
      | id_fraction_3              | None                                   |
47
      | id_fraction_4              | None                                   |
48
      | Hint 1                     | First hint                             |
49
      | Hint 2                     | Second hint                            |
50
    And I should see "Multi-choice-001"
51
    And I press "Create a new question ..."
52
    And I set the field "Multiple choice" to "1"
53
    And I click on "Add" "button" in the "Choose a question type to add" "dialogue"
54
    And the following fields match these values:
55
      | One or multiple answers?   | One answer only |
56
      | Shuffle the choices?       |                 |
57
      | Number the choices?        | 1., 2., 3., ... |
58
      | Show standard instructions | Yes             |