[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_workshop 2 Feature: Workshop submission and assessment 3 In order to use workshop activity 4 As a student 5 I need to be able to add a submission and assess those of my peers 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | student1 | Sam1 | Student1 | student1@example.com | 11 | student2 | Sam2 | Student2 | student2@example.com | 12 | student3 | Sam3 | Student3 | student3@example.com | 13 | student4 | Sam4 | Student4 | student3@example.com | 14 | teacher1 | Terry1 | Teacher1 | teacher1@example.com | 15 And the following "courses" exist: 16 | fullname | shortname | 17 | Course1 | c1 | 18 And the following "course enrolments" exist: 19 | user | course | role | 20 | student1 | c1 | student | 21 | student2 | c1 | student | 22 | student3 | c1 | student | 23 | student4 | c1 | student | 24 | teacher1 | c1 | editingteacher | 25 And the following "activities" exist: 26 | activity | name | intro | course | idnumber | 27 | workshop | TestWorkshop | Test workshop description | c1 | workshop1 | 28 # teacher1 sets up assessment form and changes the phase to submission 29 When I log in as "teacher1" 30 And I follow "Course1" 31 And I edit assessment form in workshop "TestWorkshop" as:" 32 | id_description__idx_0_editor | Aspect1 | 33 | id_description__idx_1_editor | Aspect2 | 34 | id_description__idx_2_editor | | 35 And I change phase in workshop "TestWorkshop" to "Submission phase" 36 And I log out 37 # student1 submits 38 And I log in as "student1" 39 And I follow "Course1" 40 And I follow "TestWorkshop" 41 Then I should see "Submit your work" 42 And I add a submission in workshop "TestWorkshop" as:" 43 | Title | Submission1 | 44 | Submission content | Some content | 45 And "//div[@class='submission-full' and contains(.,'Submission1') and contains(.,'submitted on')]" "xpath_element" should exist 46 And I log out 47 # student2 submits 48 And I log in as "student2" 49 And I follow "Course1" 50 And I add a submission in workshop "TestWorkshop" as:" 51 | Title | Submission2 | 52 | Submission content | Some content | 53 And I log out 54 # student3 submits 55 And I log in as "student3" 56 And I follow "Course1" 57 And I add a submission in workshop "TestWorkshop" as:" 58 | Title | Submission3 | 59 | Submission content | Some content | 60 And I log out 61 # teacher1 allocates reviewers and changes the phase to assessment 62 And I log in as "teacher1" 63 And I follow "Course1" 64 And I follow "TestWorkshop" 65 And I should see "to allocate: 3" 66 And I should see "There is at least one author who has not yet submitted their work" 67 Then I should see "Workshop submissions report" 68 And I should see "Submitted (3) / not submitted (1)" 69 And I should see "Submission1" in the "Sam1 Student1" "table_row" 70 And I should see "Submission2" in the "Sam2 Student2" "table_row" 71 And I should see "Submission3" in the "Sam3 Student3" "table_row" 72 And I should see "No submission found for this user" in the "Sam4 Student4" "table_row" 73 And I allocate submissions in workshop "TestWorkshop" as:" 74 | Participant | Reviewer | 75 | Sam1 Student1 | Sam2 Student2 | 76 | Sam2 Student2 | Sam1 Student1 | 77 | Sam3 Student3 | Sam1 Student1 | 78 | Sam2 Student2 | Sam4 Student4 | 79 And I follow "TestWorkshop" 80 And I should see "to allocate: 0" 81 And I change phase in workshop "TestWorkshop" to "Assessment phase" 82 And I log out 83 # student1 assesses work of student2 and student3 84 And I log in as "student1" 85 And I follow "Course1" 86 And I follow "TestWorkshop" 87 And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 2') and contains(.,'total: 2')]" "xpath_element" should exist 88 And I assess submission "Sam2" in workshop "TestWorkshop" as:" 89 | grade__idx_0 | 5 / 10 | 90 | peercomment__idx_0 | You can do better | 91 | grade__idx_1 | 10 / 10 | 92 | peercomment__idx_1 | Amazing | 93 | Feedback for the author | Good work | 94 And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 1') and contains(.,'total: 2')]" "xpath_element" should exist 95 And I follow "Course1" 96 And I assess submission "Sam3" in workshop "TestWorkshop" as:" 97 | grade__idx_0 | 9 / 10 | 98 | peercomment__idx_0 | Well done | 99 | grade__idx_1 | 8 / 10 | 100 | peercomment__idx_1 | Very good | 101 | Feedback for the author | No comments | 102 And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 0') and contains(.,'total: 2')]" "xpath_element" should exist 103 And I log out 104 # student2 assesses work of student1 105 And I log in as "student2" 106 And I follow "Course1" 107 And I follow "TestWorkshop" 108 And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 1') and contains(.,'total: 1')]" "xpath_element" should exist 109 And I assess submission "Sam1" in workshop "TestWorkshop" as:" 110 | grade__idx_0 | 6 / 10 | 111 | peercomment__idx_0 | | 112 | grade__idx_1 | 7 / 10 | 113 | peercomment__idx_1 | | 114 | Feedback for the author | Keep it up | 115 And "//ul[@class='tasks']/li[div[@class='title' and contains(.,'Assess peers')]]/div[@class='details' and contains(.,'pending: 0') and contains(.,'total: 1')]" "xpath_element" should exist 116 And I log out 117 # teacher1 makes sure he can see all peer grades 118 And I log in as "teacher1" 119 And I follow "Course1" 120 And I follow "TestWorkshop" 121 And I should see grade "52" for workshop participant "Sam1" set by peer "Sam2" 122 And I should see grade "60" for workshop participant "Sam2" set by peer "Sam1" 123 And I should see grade "-" for workshop participant "Sam2" set by peer "Sam4" 124 And I should see "No submission found for this user" in the "//table/tbody/tr[td[contains(concat(' ', normalize-space(@class), ' '), ' participant ') and contains(.,'Sam4')]]" "xpath_element" 125 And I should see grade "68" for workshop participant "Sam3" set by peer "Sam1" 126 And I click on "//table/tbody/tr[td[contains(concat(' ', normalize-space(@class), ' '), ' participant ') and contains(.,'Sam2')]]/td[contains(concat(' ', normalize-space(@class), ' '), ' receivedgrade ') and contains(.,'Sam1')]/descendant::a[@class='grade']" "xpath_element" 127 And I should see "5 / 10" in the "//fieldset[contains(.,'Aspect1')]" "xpath_element" 128 And I should see "You can do better" in the "//fieldset[contains(.,'Aspect1')]" "xpath_element" 129 And I should see "10 / 10" in the "//fieldset[contains(.,'Aspect2')]" "xpath_element" 130 And I should see "Amazing" in the "//fieldset[contains(.,'Aspect2')]" "xpath_element" 131 And I should see "Good work" in the ".overallfeedback" "css_element" 132 # teacher1 assesses the work on submission1 and assesses the assessment of peer 133 And I set the following fields to these values: 134 | Override grade for assessment | 11 | 135 | Feedback for the reviewer | | 136 And I press "Save and close" 137 And I change phase in workshop "TestWorkshop" to "Grading evaluation phase" 138 And I follow "Submission1" 139 And I should see "Grade: 52 of 80" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' assessment-full ') and contains(.,'Sam2')]" "xpath_element" 140 And I press "Assess" 141 And I set the following fields to these values: 142 | grade__idx_0 | 1 / 10 | 143 | peercomment__idx_0 | Extremely bad | 144 | grade__idx_1 | 2 / 10 | 145 | peercomment__idx_1 | Very bad | 146 | Feedback for the author | Your peers overestimate you | 147 And I press "Save and close" 148 And I press "Re-calculate grades" 149 And I should see "32" in the "//table/tbody/tr[td[contains(concat(' ', normalize-space(@class), ' '), ' participant ') and contains(.,'Sam1')]]/td[contains(concat(' ', normalize-space(@class), ' '), ' submissiongrade ')]" "xpath_element" 150 And I should see "16" in the "//table/tbody/tr[td[contains(concat(' ', normalize-space(@class), ' '), ' participant ') and contains(.,'Sam1')]]/td[contains(concat(' ', normalize-space(@class), ' '), ' gradinggrade ')]" "xpath_element" 151 And I log out 152 153 @javascript 154 Scenario: Add and assess submissions in workshop with javascript enabled 155 156 Scenario: Add and assess submissions in workshop with javascript disabled
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 |