[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
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 And I log in as "admin" 37 And I set the following administration settings values: 38 | Enable conditional access | 1 | 39 And I navigate to "Manage activities" node in "Site administration > Plugins > Activity modules" 40 And I click on "Show" "link" in the "Feedback" "table_row" 41 And I log out 42 43 @javascript 44 Scenario: See users who have not responded 45 # Set up a feedback. 46 When I log in as "teacher1" 47 And I follow "Course 1" 48 And I turn editing mode on 49 And I add a "Feedback" to section "1" and I fill the form with: 50 | Name | Frogs | 51 | Description | x | 52 | Record user names | User's name will be logged and shown with answers | 53 | Access restrictions | Grouping: GX1 | 54 And I follow "Frogs" 55 And I follow "Edit questions" 56 And I set the field "id_typ" to "Short text answer" 57 And I set the following fields to these values: 58 | Question | Y/N? | 59 And I press "Save question" 60 And I log out 61 62 # Go in as student 1 and do the feedback. 63 And I log in as "student1" 64 And I follow "Course 1" 65 And I follow "Frogs" 66 And I follow "Answer the questions" 67 And I set the field "Y/N?" to "Y" 68 And I press "Submit your answers" 69 And I log out 70 71 # Go in as teacher and check the users who haven't completed it. 72 And I log in as "teacher1" 73 And I follow "Course 1" 74 And I follow "Frogs" 75 And I follow "Show non-respondents" 76 77 # Should only show student 2; not student 1 (they did it) or 3 (not in grouping). 78 Then I should see "Student 2" 79 And I should not see "Student 1" 80 And I should not see "Student 3"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |