Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@mod @mod_feedback
2
Feature: As a teacher, I can see users who have responded or not responded to a feedback activity.
3
  As a non editing teacher not in a group I cannot see the responses.
4
 
5
  Background:
6
    Given the following "users" exist:
7
      | username | firstname | lastname |
8
      | teacher1 | Teacher   | 1        |
9
      | teacher2 | Teacher   | 2        |
10
      | teacher3 | Teacher   | 3        |
11
      | student1 | Student   | 1        |
12
      | student2 | Student   | 2        |
13
      | student3 | Student   | 3        |
14
    And the following "courses" exist:
15
      | fullname | shortname | groupmode |
16
      | Course 1 | C1        | 1         |
17
    And the following "course enrolments" exist:
18
      | user     | course | role           |
19
      | teacher1 | C1     | editingteacher |
20
      | teacher2 | C1     | teacher        |
21
      | teacher3 | C1     | teacher        |
22
      | student1 | C1     | student        |
23
      | student2 | C1     | student        |
24
      | student3 | C1     | student        |
25
    And the following "groups" exist:
26
      | course | name | idnumber |
27
      | C1     | G1   | GI1      |
28
    And the following "group members" exist:
29
      | user     | group |
30
      | student1 | GI1   |
31
      | student2 | GI1   |
32
      | teacher2 | GI1   |
33
    When I log in as "teacher1"
34
    And I add a feedback activity to course "Course 1" section "1" and I fill the form with:
35
      | Name              | Frogs                                             |
36
      | Description       | x                                                 |
37
      | Record user names | User's name will be logged and shown with answers |
38
    And I am on the Frogs "feedback activity" page
39
    And I navigate to "Questions" in current page administration
40
    And I add a "Short text answer" question to the feedback with:
41
      | Question | Y/N? |
42
    And I log out
43
 
44
    # Go in as student 1 and do the feedback.
45
    And I am on the Frogs "feedback activity" page logged in as student1
46
    And I follow "Answer the questions"
47
    And I set the field "Y/N?" to "Y"
48
    And I press "Submit your answers"
49
    And I log out
50
 
51
  Scenario Outline: If a teacher or non editing teacher is in a group, they can see the responses in separate group mode.
52
    # Go in as teacher and check the users who haven't completed it.
53
    Given I am on the Frogs "feedback activity" page logged in as <user>
54
    Then "Responses" "link" <existsornot> in current page administration
55
    Examples:
56
      | user     | existsornot      |
57
      | teacher1 | should exist     |
58
      | teacher2 | should exist     |
59
      | teacher3 | should not exist |
60
 
61
  Scenario Outline: Teachers and non editing teachers in a group can see the responses
62
    # Go in as teacher and check the users who haven't completed it.
63
    Given I am on the Frogs "feedback activity" page logged in as <user>
64
    And I navigate to "Responses" in current page administration
65
    And I select "Show non-respondents" from the "jump" singleselect
66
    # Should only show student 2; not student 1 (they did it) or 3 (not in grouping).
67
    Then I <studentshouldsee>
68
    And I <studentshouldnotsee>
69
    Examples:
70
      | user     | studentshouldsee       | studentshouldnotsee        |
71
      | teacher1 | should see "Student 2" | should see "Student 3"     |
72
      | teacher2 | should see "Student 2" | should not see "Student 3" |