[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_grades @javascript 2 Feature: View gradebook when scales are used 3 In order to use scales to grade activities 4 As an teacher 5 I need to be able to view gradebook with scales 6 7 Background: 8 Given I log in as "admin" 9 And I set the following administration settings values: 10 | grade_report_showranges | 1 | 11 | grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural | 12 And I navigate to "Scales" node in "Site administration > Grades" 13 And I press "Add a new scale" 14 And I set the following fields to these values: 15 | Name | Letterscale | 16 | Scale | F,D,C,B,A | 17 And I press "Save changes" 18 And I log out 19 And the following "courses" exist: 20 | fullname | shortname | 21 | Course 1 | C1 | 22 And the following "users" exist: 23 | username | firstname | lastname | email | idnumber | 24 | teacher1 | Teacher | 1 | teacher1@example.com | t1 | 25 | student1 | Student | 1 | student1@example.com | s1 | 26 | student2 | Student | 2 | student2@example.com | s2 | 27 | student3 | Student | 3 | student3@example.com | s3 | 28 | student4 | Student | 4 | student4@example.com | s4 | 29 | student5 | Student | 5 | student5@example.com | s5 | 30 And the following "course enrolments" exist: 31 | user | course | role | 32 | teacher1 | C1 | editingteacher | 33 | student1 | C1 | student | 34 | student2 | C1 | student | 35 | student3 | C1 | student | 36 | student4 | C1 | student | 37 | student5 | C1 | student | 38 And the following "grade categories" exist: 39 | fullname | course | 40 | Sub category 1 | C1 | 41 And the following "activities" exist: 42 | activity | course | idnumber | name | intro | gradecategory | 43 | assign | C1 | a1 | Test assignment one | Submit something! | Sub category 1 | 44 And I log in as "teacher1" 45 And I follow "Course 1" 46 And I follow "Test assignment one" 47 And I follow "Edit settings" 48 And I expand all fieldsets 49 And I set the field "grade[modgrade_type]" to "Scale" 50 And I set the field "grade[modgrade_scale]" to "Letterscale" 51 And I press "Save and display" 52 And I follow "View all submissions" 53 And I click on "Grade" "link" in the "Student 1" "table_row" 54 And I set the field "Grade" to "A" 55 And I press "Save changes" 56 And I press "Ok" 57 And I click on "[data-action=next-user]" "css_element" 58 And I set the field "Grade" to "B" 59 And I press "Save changes" 60 And I press "Ok" 61 And I click on "[data-action=next-user]" "css_element" 62 And I set the field "Grade" to "C" 63 And I press "Save changes" 64 And I press "Ok" 65 And I click on "[data-action=next-user]" "css_element" 66 And I set the field "Grade" to "D" 67 And I press "Save changes" 68 And I press "Ok" 69 And I click on "[data-action=next-user]" "css_element" 70 And I set the field "Grade" to "F" 71 And I press "Save changes" 72 And I press "Ok" 73 And I follow "Course 1" 74 And I navigate to "Grades" node in "Course administration" 75 And I navigate to "Course grade settings" node in "Grade administration > Setup" 76 And I set the field "Show weightings" to "Show" 77 And I set the field "Show contribution to course total" to "Show" 78 And I press "Save changes" 79 And I follow "Grader report" 80 And I turn editing mode on 81 82 Scenario: Test displaying scales in gradebook in aggregation method Natural 83 When I turn editing mode off 84 Then the following should exist in the "user-grades" table: 85 | -1- | -4- | -5- | -6- | 86 | Student 1 | A | 5.00 | 5.00 | 87 | Student 2 | B | 4.00 | 4.00 | 88 | Student 3 | C | 3.00 | 3.00 | 89 | Student 4 | D | 2.00 | 2.00 | 90 | Student 5 | F | 1.00 | 1.00 | 91 And the following should exist in the "user-grades" table: 92 | -1- | -2- | -3- | -4- | 93 | Range | F–A | 0.00–5.00 | 0.00–5.00 | 94 | Overall average | C | 3.00 | 3.00 | 95 And I follow "User report" 96 And I select "Student 3" from the "Select all or one user" singleselect 97 And the following should exist in the "user-grade" table: 98 | Grade item | Grade | Range | Percentage | Contribution to course total | 99 | Test assignment one | C | F–A | 50.00 % | 60.00 % | 100 | Sub category 1 total | 3.00 | 0–5 | 60.00 % | - | 101 | Course total | 3.00 | 0–5 | 60.00 % | - | 102 And I select "Gradebook setup" from the "Grade report" singleselect 103 And the following should exist in the "grade_edit_tree_table" table: 104 | Name | Max grade | 105 | Test assignment one | 5.00 | 106 | Sub category 1 total | 5.00 | 107 | Course total | 5.00 | 108 And I log out 109 And I log in as "student2" 110 And I follow "Grades" in the user menu 111 And I follow "Course 1" 112 And the following should exist in the "user-grade" table: 113 | Grade item | Grade | Range | Percentage | Contribution to course total | 114 | Test assignment one | B | F–A | 75.00 % | 80.00 % | 115 | Sub category 1 total | 4.00 | 0–5 | 80.00 % | - | 116 | Course total | 4.00 | 0–5 | 80.00 % | - | 117 118 Scenario Outline: Test displaying scales in gradebook in all other aggregation methods 119 When I follow "Edit Course 1" 120 And I set the field "Aggregation" to "<aggregation>" 121 And I press "Save changes" 122 And I follow "Edit Sub category 1" 123 And I expand all fieldsets 124 And I set the field "Aggregation" to "<aggregation>" 125 And I set the field "Category name" to "Sub category (<aggregation>)" 126 And I set the field "Maximum grade" to "5" 127 And I set the field "Minimum grade" to "1" 128 And I press "Save changes" 129 And I turn editing mode off 130 Then the following should exist in the "user-grades" table: 131 | -1- | -4- | -5- | -6- | 132 | Student 1 | A | 5.00 | <coursetotal1> | 133 | Student 2 | B | 4.00 | <coursetotal2> | 134 | Student 3 | C | 3.00 | <coursetotal3> | 135 | Student 4 | D | 2.00 | <coursetotal4> | 136 | Student 5 | F | 1.00 | <coursetotal5> | 137 And the following should exist in the "user-grades" table: 138 | -1- | -2- | -3- | -4- | 139 | Range | F–A | 1.00–5.00 | 0.00–100.00 | 140 | Overall average | C | 3.00 | <overallavg> | 141 And I follow "User report" 142 And I select "Student 3" from the "Select all or one user" singleselect 143 And the following should exist in the "user-grade" table: 144 | Grade item | Grade | Range | Percentage | Contribution to course total | 145 | Test assignment one | C | F–A | 50.00 % | <contrib3> | 146 | Sub category (<aggregation>) total<aggregation>. | 3.00 | 1–5 | 50.00 % | - | 147 | Course total<aggregation>. | <coursetotal3> | 0–100 | <courseperc3> | - | 148 And I select "Gradebook setup" from the "Grade report" singleselect 149 And the following should exist in the "grade_edit_tree_table" table: 150 | Name | Max grade | 151 | Test assignment one | A (5) | 152 | Sub category (<aggregation>) total<aggregation>. | | 153 | Course total<aggregation>. | | 154 And I log out 155 And I log in as "student2" 156 And I follow "Grades" in the user menu 157 And I follow "Course 1" 158 And the following should exist in the "user-grade" table: 159 | Grade item | Grade | Range | Percentage | Contribution to course total | 160 | Test assignment one | B | F–A | 75.00 % | <contrib2> | 161 | Sub category (<aggregation>) total<aggregation>. | 4.00 | 1–5 | 75.00 % | - | 162 | Course total<aggregation>. | <coursetotal2> | 0–100 | <courseperc2> | - | 163 164 Examples: 165 | aggregation | coursetotal1 | coursetotal2 | coursetotal3 | coursetotal4 | coursetotal5 |overallavg | courseperc2 | courseperc3 | contrib2 | contrib3 | 166 | Mean of grades | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % | 167 | Weighted mean of grades | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % | 168 | Simple weighted mean of grades | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % | 169 | Mean of grades (with extra credits) | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % | 170 | Median of grades | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % | 171 | Lowest grade | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % | 172 | Highest grade | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % | 173 | Mode of grades | 100.00 | 75.00 | 50.00 | 25.00 | 0.00 | 50.00 | 75.00 % | 50.00 % | 75.00 % | 50.00 % |
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 |