[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_assign @javascript 2 Feature: Check that the assignment grade can be rescaled when the max grade is changed 3 In order to ensure that the percentages are not affected by changes to the max grade 4 As a teacher 5 I need to rescale all grades when updating the max grade 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 | 13 | teacher1 | Teacher | 1 | teacher1@example.com | 14 | student1 | Student | 1 | student10@example.com | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 And the following "groups" exist: 20 | name | course | idnumber | 21 | Group 1 | C1 | G1 | 22 And I log in as "teacher1" 23 And I follow "Course 1" 24 And I turn editing mode on 25 And I add a "Assignment" to section "1" and I fill the form with: 26 | Assignment name | Test assignment name | 27 | Description | Test assignment description | 28 And I follow "Test assignment name" 29 And I follow "View all submissions" 30 And I click on "Grade" "link" in the "Student 1" "table_row" 31 And I set the field "Grade out of 100" to "40" 32 And I press "Save changes" 33 And I press "Ok" 34 And I click on "Edit settings" "link" 35 And I follow "Test assignment name" 36 And I follow "View all submissions" 37 And "Student 1" row "Grade" column of "generaltable" table should contain "40.00" 38 39 Scenario: Update the max grade for an assignment without rescaling existing grades 40 Given I follow "Edit settings" 41 And I expand all fieldsets 42 And I set the field "Rescale existing grades" to "No" 43 And I set the field "Maximum grade" to "80" 44 When I press "Save and display" 45 And I follow "View all submissions" 46 Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00" 47 48 Scenario: Update the max grade for an assignment rescaling existing grades 49 Given I follow "Edit settings" 50 And I expand all fieldsets 51 And I set the field "Rescale existing grades" to "Yes" 52 And I set the field "Maximum grade" to "50" 53 When I press "Save and display" 54 And I follow "View all submissions" 55 Then "Student 1" row "Grade" column of "generaltable" table should contain "20.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 |