Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_choice
2
Feature: Group choice
3
  In order to view choice responses for large courses
4
  As a user
5
  I need to filter the responses to a choice by group
6
 
7
  Background:
8
    And the following "courses" exist:
9
      | fullname      | shortname |
10
      | Test Course 1 | C1        |
11
    And the following "groups" exist:
12
      | name    | course | idnumber | participation |
13
      | Group 1 | C1     | G1       | 1             |
14
      | Group 2 | C1     | G2       | 1             |
15
      | Group 3 | C1     | G3       | 0             |
16
    And the following "users" exist:
17
      | username | firstname    | lastname | email                |
18
      | teacher1 | TeacherG1    | 1        | teacher1@example.com |
19
      | user1    | User1G1      | 1        | user1@example.com    |
20
      | user2    | User2G2      | 2        | user2@example.com    |
21
      | user3    | User3None    | 3        | user3@example.com    |
22
      | user4    | User4NPgroup | 4        | user4@example.com    |
23
    And the following "course enrolments" exist:
24
      | user     | course | role           |
25
      | teacher1 | C1     | editingteacher |
26
      | user1    | C1     | student        |
27
      | user2    | C1     | student        |
28
      | user3    | C1     | student        |
29
      | user4    | C1     | student        |
30
    And the following "group members" exist:
31
      | user     | group |
32
      | teacher1 | G1    |
33
      | user1    | G1    |
34
      | user2    | G2    |
35
      | user4    | G3    |
36
    And the following "activities" exist:
37
      | activity | name            | intro                       | course | idnumber | showresults | publish | groupmode |
38
      | choice   | Separate Choice | Choice with separate groups | C1     | choice1  | 3           | 1       | 1         |
39
      | choice   | Visible Choice  | Choice with visible groups  | C1     | choice2  | 3           | 1       | 2         |
40
 
41
  Scenario Outline: Users should see their own participation groups in "separate groups" mode, and all
42
  participation groups in "visible groups" mode.
43
    Given I am on the "<choice>" "choice activity" page logged in as "<user>"
44
    Then I <all> "All participants"
45
    And I <G1> "Group 1"
46
    And I <G2> "Group 2"
47
    And I should not see "Group 3"
48
 
49
    Examples:
50
      | choice  | user     | all            | G1             | G2             |
51
      | choice1 | teacher1 | should see     | should see     | should see     |
52
      | choice1 | user1    | should not see | should see     | should not see |
53
      | choice1 | user2    | should not see | should not see | should see     |
54
      | choice1 | user3    | should see     | should not see | should not see |
55
      | choice1 | user4    | should see     | should not see | should not see |
56
      | choice2 | teacher1 | should see     | should see     | should see     |
57
      | choice2 | user1    | should see     | should see     | should see     |
58
      | choice2 | user2    | should see     | should see     | should see     |
59
      | choice2 | user3    | should see     | should see     | should see     |
60
      | choice2 | user4    | should see     | should see     | should see     |