1 |
efrain |
1 |
@mod @mod_feedback
|
|
|
2 |
Feature: Show users who have not responded to the feedback survey
|
|
|
3 |
In order to harass students about completing the feedback
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to see which students haven't responded
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname |
|
|
|
10 |
| teacher1 | Teacher | 1 |
|
|
|
11 |
| student1 | Student | 1 |
|
|
|
12 |
| student2 | Student | 2 |
|
|
|
13 |
| student3 | Student | 3 |
|
|
|
14 |
And the following "courses" exist:
|
|
|
15 |
| fullname | shortname |
|
|
|
16 |
| Course 1 | C1 |
|
|
|
17 |
And the following "course enrolments" exist:
|
|
|
18 |
| user | course | role |
|
|
|
19 |
| teacher1 | C1 | editingteacher |
|
|
|
20 |
| student1 | C1 | student |
|
|
|
21 |
| student2 | C1 | student |
|
|
|
22 |
| student3 | C1 | student |
|
|
|
23 |
And the following "groups" exist:
|
|
|
24 |
| course | name | idnumber |
|
|
|
25 |
| C1 | G1 | GI1 |
|
|
|
26 |
And the following "group members" exist:
|
|
|
27 |
| user | group |
|
|
|
28 |
| student1 | GI1 |
|
|
|
29 |
| student2 | GI1 |
|
|
|
30 |
And the following "groupings" exist:
|
|
|
31 |
| name | course | idnumber |
|
|
|
32 |
| GX1 | C1 | GXI1 |
|
|
|
33 |
And the following "grouping groups" exist:
|
|
|
34 |
| grouping | group |
|
|
|
35 |
| GXI1 | GI1 |
|
|
|
36 |
|
|
|
37 |
Scenario: See users who have not responded
|
|
|
38 |
# Set up a feedback.
|
|
|
39 |
When I log in as "teacher1"
|
|
|
40 |
And I add a feedback activity to course "Course 1" section "1" and I fill the form with:
|
|
|
41 |
| Name | Frogs |
|
|
|
42 |
| Description | x |
|
|
|
43 |
| Record user names | User's name will be logged and shown with answers |
|
|
|
44 |
| Access restrictions | Grouping: GX1 |
|
|
|
45 |
And I am on the Frogs "feedback activity" page
|
|
|
46 |
And I click on "Edit questions" "link" in the "[role=main]" "css_element"
|
|
|
47 |
And I add a "Short text answer" question to the feedback with:
|
|
|
48 |
| Question | Y/N? |
|
|
|
49 |
And I log out
|
|
|
50 |
|
|
|
51 |
# Go in as student 1 and do the feedback.
|
|
|
52 |
And I am on the Frogs "feedback activity" page logged in as student1
|
|
|
53 |
And I follow "Answer the questions"
|
|
|
54 |
And I set the field "Y/N?" to "Y"
|
|
|
55 |
And I press "Submit your answers"
|
|
|
56 |
And I log out
|
|
|
57 |
|
|
|
58 |
# Go in as teacher and check the users who haven't completed it.
|
|
|
59 |
And I am on the Frogs "feedback activity" page logged in as teacher1
|
|
|
60 |
And I navigate to "Responses" in current page administration
|
|
|
61 |
And I select "Show non-respondents" from the "jump" singleselect
|
|
|
62 |
# Should only show student 2; not student 1 (they did it) or 3 (not in grouping).
|
|
|
63 |
Then I should see "Student 2"
|
|
|
64 |
And I should not see "Student 1"
|
|
|
65 |
And I should not see "Student 3"
|