[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @mod @mod_assign 2 Feature: Group assignment submissions 3 In order to allow students to work collaboratively on an assignment 4 As a teacher 5 I need to group submissions in groups 6 7 @javascript 8 Scenario: Switch between group modes 9 Given the following "courses" exist: 10 | fullname | shortname | category | groupmode | 11 | Course 1 | C1 | 0 | 1 | 12 And the following "users" exist: 13 | username | firstname | lastname | email | 14 | teacher1 | Teacher | 1 | [email protected] | 15 | student0 | Student | 0 | [email protected] | 16 | student1 | Student | 1 | [email protected] | 17 | student2 | Student | 2 | [email protected] | 18 | student3 | Student | 3 | [email protected] | 19 And the following "course enrolments" exist: 20 | user | course | role | 21 | teacher1 | C1 | editingteacher | 22 | student0 | C1 | student | 23 | student1 | C1 | student | 24 | student2 | C1 | student | 25 | student3 | C1 | student | 26 And the following "groups" exist: 27 | name | course | idnumber | 28 | Group 1 | C1 | G1 | 29 And I log in as "teacher1" 30 And I follow "Course 1" 31 And I turn editing mode on 32 And I add a "Assignment" to section "1" and I fill the form with: 33 | Assignment name | Test assignment name | 34 | Description | Test assignment description | 35 | Students submit in groups | Yes | 36 | Group mode | No groups | 37 And I follow "Test assignment name" 38 When I follow "View/grade all submissions" 39 Then "//tr[contains(., 'Student 0')][contains(., 'Default group')]" "xpath_element" should exist 40 And "//tr[contains(., 'Student 1')][contains(., 'Default group')]" "xpath_element" should exist 41 And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exist 42 And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exist 43 And I follow "Edit settings" 44 And I set the following fields to these values: 45 | Group mode | Separate groups | 46 And I press "Save and return to course" 47 And I click on "Edit settings" "link" in the "Administration" "block" 48 And I set the following fields to these values: 49 | Group mode | Separate groups | 50 And I press "Save changes" 51 And I expand "Users" node 52 And I follow "Groups" 53 And I add "Student 0 ([email protected])" user to "Group 1" group members 54 And I add "Student 1 ([email protected])" user to "Group 1" group members 55 And I follow "Course 1" 56 And I follow "Test assignment name" 57 And I follow "View/grade all submissions" 58 And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exist 59 And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exist 60 And I should not see "Student 2" 61 And I set the field "Separate groups" to "All participants" 62 And "//tr[contains(., 'Student 0')][contains(., 'Group 1')]" "xpath_element" should exist 63 And "//tr[contains(., 'Student 1')][contains(., 'Group 1')]" "xpath_element" should exist 64 And "//tr[contains(., 'Student 2')][contains(., 'Default group')]" "xpath_element" should exist 65 And "//tr[contains(., 'Student 3')][contains(., 'Default group')]" "xpath_element" should exist
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 |