[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_grades @javascript 2 Feature: Extra credit contributions are normalised when going out of bounds 3 In order to use extra credit 4 As a teacher 5 I need to add some extra credit items. 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | category | groupmode | 10 | Course 1 | C1 | 0 | 1 | 11 And the following "users" exist: 12 | username | firstname | lastname | email | idnumber | 13 | teacher1 | Teacher | 1 | teacher1@example.com | t1 | 14 | student1 | Student | 1 | student1@example.com | s1 | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 And I log in as "admin" 20 And I set the following administration settings values: 21 | grade_aggregations_visible | Simple weighted mean of grades,Mean of grades (with extra credits),Natural | 22 And I am on site homepage 23 And I follow "Course 1" 24 And I navigate to "Grades" node in "Course administration" 25 And I navigate to "Gradebook setup" node in "Grade administration > Setup" 26 And I press "Add grade item" 27 And I set the following fields to these values: 28 | Item name | Manual item 1 | 29 | Maximum grade | 150 | 30 And I press "Save changes" 31 And I press "Add grade item" 32 And I set the following fields to these values: 33 | Item name | Manual item 2 | 34 And I press "Save changes" 35 And I press "Add grade item" 36 And I set the following fields to these values: 37 | Item name | Manual item 3 | 38 And I press "Save changes" 39 And I press "Add grade item" 40 And I set the following fields to these values: 41 | Item name | Manual item 4 | 42 And I press "Save changes" 43 And I navigate to "Course grade settings" node in "Grade administration > Setup" 44 And I set the field "Show weighting" to "Show" 45 And I set the field "Show contribution to course total" to "Show" 46 And I press "Save changes" 47 And I log out 48 And I log in as "teacher1" 49 And I follow "Course 1" 50 And I navigate to "Grades" node in "Course administration" 51 And I turn editing mode on 52 And I give the grade "80.00" to the user "Student 1" for the grade item "Manual item 1" 53 And I give the grade "10.00" to the user "Student 1" for the grade item "Manual item 2" 54 And I give the grade "70.00" to the user "Student 1" for the grade item "Manual item 3" 55 And I give the grade "90.00" to the user "Student 1" for the grade item "Manual item 4" 56 And I press "Save changes" 57 58 Scenario Outline: The contribution of extra credit items is normalised 59 Given I set the field "Grade report" to "Gradebook setup" 60 When I set the following settings for grade item "Course 1": 61 | Aggregation | <aggregation> | 62 And I set the following settings for grade item "Manual item 2": 63 | Extra credit | 1 | 64 And I set the following settings for grade item "Manual item 3": 65 | Extra credit | 1 | 66 And I set the following settings for grade item "Manual item 4": 67 | Extra credit | 1 | 68 And I set the field "Grade report" to "User report" 69 And I set the field "Select all or one user" to "Student 1" 70 Then the following should exist in the "user-grade" table: 71 | Grade item | Calculated weight | Grade | Contribution to course total | 72 | Manual item 1 | <m1w> | 80.00 | <m1c> | 73 | Manual item 2 | <m2w> | 10.00 | <m2c> | 74 | Manual item 3 | <m3w> | 70.00 | <m3c> | 75 | Manual item 4 | 0.00 % | 90.00 | 0.00 % | 76 77 Examples: 78 | aggregation | m1w | m1c | m2w | m2c | m3w | m3c | 79 | Natural | 100.00 % | 53.33 % | 66.67 % | 6.67 % | 57.14 % | 40.00 % | 80 | Simple weighted mean of grades | 100.00 % | 53.33 % | 66.67 % | 6.67 % | 57.14 % | 40.00 % | 81 | Mean of grades (with extra credits) | 100.00 % | 53.33 % | 100.00 % | 10.00 % | 52.38 % | 36.67 % |
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 |