[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_assign 2 Feature: Submit assignment without group 3 As a teacher 4 I should be able to prevent students submitting team assignments as members of the default group 5 6 @javascript 7 Scenario: Switch between group modes 8 Given the following "courses" exist: 9 | fullname | shortname | category | groupmode | 10 | Course 1 | C1 | 0 | 1 | 11 | Course 2 | C2 | 0 | 1 | 12 | Course 3 | C3 | 0 | 1 | 13 And the following "activities" exist: 14 | activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | preventsubmissionnotingroup | teamsubmission | 15 | assign | C1 | assign1 | Allow default group | Test assignment description | 1 | 0 | 1 | 16 | assign | C1 | assign2 | Require group membership | Test assignment description | 1 | 1 | 1 | 17 | assign | C2 | assign2 | Require group membership | Test assignment description | 1 | 1 | 1 | 18 | assign | C3 | assign2 | Require group membership | Test assignment description | 1 | 1 | 1 | 19 And the following "users" exist: 20 | username | firstname | lastname | email | 21 | teacher1 | Teacher | 1 | teacher1@example.com | 22 | student1 | Student | 1 | student1@example.com | 23 | student2 | Student | 2 | student2@example.com | 24 | student3 | Student | 3 | student3@example.com | 25 And the following "groups" exist: 26 | name | course | idnumber | 27 | Group 1 | C2 | GC21 | 28 | Group 1 | C3 | GC31 | 29 | Group 2 | C3 | GC32 | 30 And the following "course enrolments" exist: 31 | user | course | role | 32 | teacher1 | C1 | editingteacher | 33 | student1 | C1 | student | 34 | student2 | C1 | student | 35 | teacher1 | C2 | editingteacher | 36 | student1 | C2 | student | 37 | student2 | C2 | student | 38 | teacher1 | C3 | editingteacher | 39 | student3 | C3 | student | 40 And the following "group members" exist: 41 | user | group | 42 | student1 | GC21 | 43 | student2 | GC21 | 44 | student3 | GC31 | 45 | student3 | GC32 | 46 # Student 1 can only submit assignment in course 2. 47 When I log in as "student1" 48 And I follow "Course 1" 49 And I follow "Allow default group" 50 Then I should not see "Not a member of any group" 51 And I should see "Nothing has been submitted for this assignment" 52 And I press "Add submission" 53 And I set the following fields to these values: 54 | Online text | I'm the student submission | 55 And I press "Save changes" 56 And I press "Submit assignment" 57 And I press "Continue" 58 And I should see "Submitted for grading" 59 And I follow "Course 1" 60 And I follow "Require group membership" 61 And I should see "Not a member of any group" 62 And I should see "Nothing has been submitted for this assignment" 63 And I should not see "Add submission" 64 And I am on homepage 65 And I follow "Course 2" 66 And I follow "Require group membership" 67 And I should not see "Not a member of any group" 68 And I should see "Nothing has been submitted for this assignment" 69 And I press "Add submission" 70 And I set the following fields to these values: 71 | Online text | I'm the student submission | 72 And I press "Save changes" 73 And I press "Submit assignment" 74 And I press "Continue" 75 And I should see "Submitted for grading" 76 And I log out 77 # Student 2 should see submitted for grading. 78 And I log in as "student2" 79 And I follow "Course 1" 80 And I follow "Allow default group" 81 And I should see "Submitted for grading" 82 And I am on homepage 83 And I follow "Course 2" 84 And I follow "Require group membership" 85 And I should see "Submitted for grading" 86 And I log out 87 # Teacher should see student 1 and student 2 has submitted assignment. 88 And I log in as "teacher1" 89 And I follow "Course 1" 90 And I follow "Allow default group" 91 And I should see "1" in the "Groups" "table_row" 92 And I should not see "The setting 'Require group to make submission\' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions." 93 And I follow "View all submissions" 94 And I should see "Default group" in the "Student 1" "table_row" 95 And I should see "Default group" in the "Student 2" "table_row" 96 And I should see "Submitted for grading" in the "Student 1" "table_row" 97 And I should see "Submitted for grading" in the "Student 2" "table_row" 98 And I am on homepage 99 And I follow "Course 1" 100 And I follow "Require group membership" 101 And I should see "0" in the "Groups" "table_row" 102 And I should see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions." 103 And I follow "View all submissions" 104 And I should see "Not a member of any group, so unable to make submissions." in the "Student 1" "table_row" 105 And I should see "Not a member of any group, so unable to make submissions." in the "Student 2" "table_row" 106 And I should not see "Submitted for grading" in the "Student 1" "table_row" 107 And I should not see "Submitted for grading" in the "Student 2" "table_row" 108 And I am on homepage 109 And I follow "Course 2" 110 And I follow "Require group membership" 111 And I should see "1" in the "Groups" "table_row" 112 And I should not see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions." 113 And I follow "View all submissions" 114 And I should see "Group 1" in the "Student 1" "table_row" 115 And I should see "Group 1" in the "Student 2" "table_row" 116 And I should see "Submitted for grading" in the "Student 1" "table_row" 117 And I should see "Submitted for grading" in the "Student 2" "table_row" 118 And I log out 119 # Test student 3 (in multiple groups) should not be able to submit. 120 And I log in as "student3" 121 And I follow "Course 3" 122 And I follow "Require group membership" 123 And I should see "Member of more than one group" 124 And I should see "Nothing has been submitted for this assignment" 125 And I should not see "Add submission" 126 And I log out 127 And I log in as "teacher1" 128 And I follow "Course 3" 129 And I follow "Require group membership" 130 And I should see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions." 131 And I follow "View all submissions" 132 And I should see "Member of more than one group, so unable to make submissions." in the "Student 3" "table_row"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |