| [ Index ] |
PHP Cross Reference of moodle-2.8 |
[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 | [email protected] | 11 | student2 | Sam2 | Student2 | [email protected] | 12 | student3 | Sam3 | Student3 | [email protected] | 13 | student4 | Sam4 | Student4 | [email protected] | 14 | teacher1 | Terry1 | Teacher1 | [email protected] | 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 And I should see "All submissions (3)" 68 And I should see "Submission1" 69 And I should see "Submission2" 70 And I should see "Submission3" 71 And I allocate submissions in workshop "TestWorkshop" as:" 72 | Participant | Reviewer | 73 | Sam1 Student1 | Sam2 Student2 | 74 | Sam2 Student2 | Sam1 Student1 | 75 | Sam3 Student3 | Sam1 Student1 | 76 | Sam2 Student2 | Sam4 Student4 | 77 And I follow "TestWorkshop" 78 And I should see "to allocate: 0" 79 And I change phase in workshop "TestWorkshop" to "Assessment phase" 80 And I log out 81 # student1 assesses work of student2 and student3 82 And I log in as "student1" 83 And I follow "Course1" 84 And I follow "TestWorkshop" 85 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 86 And I assess submission "Sam2" in workshop "TestWorkshop" as:" 87 | grade__idx_0 | 5 / 10 | 88 | peercomment__idx_0 | You can do better | 89 | grade__idx_1 | 10 / 10 | 90 | peercomment__idx_1 | Amazing | 91 | Feedback for the author | Good work | 92 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 93 And I follow "Course1" 94 And I assess submission "Sam3" in workshop "TestWorkshop" as:" 95 | grade__idx_0 | 9 / 10 | 96 | peercomment__idx_0 | Well done | 97 | grade__idx_1 | 8 / 10 | 98 | peercomment__idx_1 | Very good | 99 | Feedback for the author | No comments | 100 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 101 And I log out 102 # student2 assesses work of student1 103 And I log in as "student2" 104 And I follow "Course1" 105 And I follow "TestWorkshop" 106 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 107 And I assess submission "Sam1" in workshop "TestWorkshop" as:" 108 | grade__idx_0 | 6 / 10 | 109 | peercomment__idx_0 | | 110 | grade__idx_1 | 7 / 10 | 111 | peercomment__idx_1 | | 112 | Feedback for the author | Keep it up | 113 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 114 And I log out 115 # teacher1 makes sure he can see all peer grades 116 And I log in as "teacher1" 117 And I follow "Course1" 118 And I follow "TestWorkshop" 119 And I should see grade "52" for workshop participant "Sam1" set by peer "Sam2" 120 And I should see grade "60" for workshop participant "Sam2" set by peer "Sam1" 121 And I should see grade "-" for workshop participant "Sam2" set by peer "Sam4" 122 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" 123 And I should see grade "68" for workshop participant "Sam3" set by peer "Sam1" 124 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" 125 And I should see "5 / 10" in the "//fieldset[contains(.,'Aspect1')]" "xpath_element" 126 And I should see "You can do better" in the "//fieldset[contains(.,'Aspect1')]" "xpath_element" 127 And I should see "10 / 10" in the "//fieldset[contains(.,'Aspect2')]" "xpath_element" 128 And I should see "Amazing" in the "//fieldset[contains(.,'Aspect2')]" "xpath_element" 129 And I should see "Good work" in the ".overallfeedback" "css_element" 130 # teacher1 assesses the work on submission1 and assesses the assessment of peer 131 And I set the following fields to these values: 132 | Override grade for assessment | 11 | 133 | Feedback for the reviewer | | 134 And I press "Save and close" 135 And I change phase in workshop "TestWorkshop" to "Grading evaluation phase" 136 And I follow "Submission1" 137 And I should see "Grade: 52 of 80" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' assessment-full ') and contains(.,'Sam2')]" "xpath_element" 138 And I press "Assess" 139 And I set the following fields to these values: 140 | grade__idx_0 | 1 / 10 | 141 | peercomment__idx_0 | Extremely bad | 142 | grade__idx_1 | 2 / 10 | 143 | peercomment__idx_1 | Very bad | 144 | Feedback for the author | Your peers overestimate you | 145 And I press "Save and close" 146 And I press "Re-calculate grades" 147 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" 148 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" 149 And I log out 150 151 @javascript 152 Scenario: Add and assess submissions in workshop with javascript enabled 153 154 Scenario: Add and assess submissions in workshop with javascript disabled
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 |