[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_grades 2 Feature: Average grades are displayed in the gradebook 3 In order to check the expected results are displayed 4 As an admin 5 I need to assign grades and check that they display correctly in the gradebook. 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | format | 10 | Course 1 | C1 | topics | 11 And the following "users" exist: 12 | username | firstname | lastname | email | 13 | teacher1 | Teacher | 1 | teacher1@example.com | 14 | student1 | Student | 1 | student1@example.com | 15 | student2 | Student | 2 | student2@example.com | 16 | student3 | Student | 3 | student3@example.com | 17 And the following "course enrolments" exist: 18 | user | course | role | 19 | teacher1 | C1 | editingteacher | 20 | student1 | C1 | student | 21 | student2 | C1 | student | 22 | student3 | C1 | student | 23 And I log in as "admin" 24 And I am on site homepage 25 And I follow "Course 1" 26 # Enable averages 27 And I navigate to "Grades" node in "Course administration" 28 And I navigate to "Course grade settings" node in "Grade administration > Setup" 29 And I set the following fields to these values: 30 | Show average | Show | 31 And I press "Save changes" 32 # Add a manual grade item 33 And I navigate to "Gradebook setup" node in "Grade administration > Setup" 34 And I press "Add grade item" 35 And I set the following fields to these values: 36 | Item name | Manual item 1 | 37 And I press "Save changes" 38 # Give all student the same grade for the manual grade item 39 And I navigate to "Grader report" node in "Grade administration" 40 And I turn editing mode on 41 And I give the grade "50.00" to the user "Student 1" for the grade item "Manual item 1" 42 And I give the grade "50.00" to the user "Student 2" for the grade item "Manual item 1" 43 And I give the grade "50.00" to the user "Student 3" for the grade item "Manual item 1" 44 And I press "Save changes" 45 And I turn editing mode off 46 # Suspend a user 47 And I navigate to "Enrolled users" node in "Course administration > Users" 48 And I click on "Edit" "link" in the "Student 2" "table_row" 49 And I set the following fields to these values: 50 | Status | Suspended | 51 And I press "Save changes" 52 53 Scenario: Grade a grade item and ensure the results display correctly in the gradebook 54 # Check the admin grade table 55 And I navigate to "Grades" node in "Course administration" 56 Then I should see "50.00" in the ".avg.r0.lastrow .c1" "css_element" 57 Then I should see "50.00" in the ".avg.r0.lastrow .c2" "css_element" 58 And I log out 59 60 # Check the user grade table 61 And I log in as "student1" 62 And I am on site homepage 63 And I follow "Course 1" 64 And I navigate to "Grades" node in "Course administration" 65 Then I should see "50.00" in the ".level2.column-grade" "css_element" 66 Then I should see "50.00" in the ".level2.column-average" "css_element" 67 And I log out
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 |