Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_questionnaire
2
Feature: Rate scale questions can be used to uniquely rank options
3
  In order to create a ranking question
4
  As a teacher
5
  I need to enter a rate question with with "no duplicate choices" selected
6
 
7
  @javascript
8
  Scenario: Add a rank the top three choices question
9
    Given the following "users" exist:
10
      | username | firstname | lastname | email |
11
      | teacher1 | Teacher | 1 | teacher1@example.com |
12
      | student1 | Student | 1 | student1@example.com |
13
    And the following "courses" exist:
14
      | fullname | shortname | category |
15
      | Course 1 | C1 | 0 |
16
    And the following "course enrolments" exist:
17
      | user | course | role |
18
      | teacher1 | C1 | editingteacher |
19
      | student1 | C1 | student |
20
    And the following "activities" exist:
21
      | activity | name | description | course | idnumber |
22
      | questionnaire | Test questionnaire | Test questionnaire description | C1 | questionnaire0 |
23
    And I log in as "teacher1"
24
    And I am on "Course 1" course homepage
25
    And I follow "Test questionnaire"
26
    And I navigate to "Questions" in current page administration
27
    And I add a "Rate (scale 1..5)" question and I fill the form with:
28
      | Question Name | Q1 |
29
      | Yes | y |
30
      | Nb of scale items | 3 |
31
      | Type of rate scale | No duplicate choices |
32
      | Question Text | What are your top three movies? |
33
      | Possible answers | Star Wars,Casablanca,Airplane,Citizen Kane,Anchorman |
34
    Then I should see "position 1"
35
    And I should see "[Rate (scale 1..5)] (Q1)"
36
    And I should see "What are your top three movies?"
37
    And I log out
38
 
39
    And I log in as "student1"
40
    And I am on "Course 1" course homepage
41
    And I follow "Test questionnaire"
42
    And I navigate to "Answer the questions..." in current page administration
43
    Then I should see "Test questionnaire"
44
    And I should see "What are your top three movies?"
45
    And I click on "Choice 1 for row Star Wars" "radio"
46
    And I click on "Choice 2 for row Airplane" "radio"
47
    And I click on "Choice 3 for row Casablanca" "radio"
48
    And I press "Submit questionnaire"