[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_assign 2 Feature: Check that the assignment grade can be updated correctly 3 In order to ensure that the grade is shown correctly in the grading table 4 As a teacher 5 I need to grade a student and ensure the grade is shown correctly 6 7 @javascript 8 Scenario: Update the grade for an assignment 9 Given the following "courses" exist: 10 | fullname | shortname | category | groupmode | 11 | Course 1 | C1 | 0 | 1 | 12 And the following "users" exist: 13 | username | firstname | lastname | email | 14 | teacher1 | Teacher | 1 | teacher1@example.com | 15 | student1 | Student | 1 | student10@example.com | 16 And the following "course enrolments" exist: 17 | user | course | role | 18 | teacher1 | C1 | editingteacher | 19 | student1 | C1 | student | 20 And the following "groups" exist: 21 | name | course | idnumber | 22 | Group 1 | C1 | G1 | 23 And I log in as "teacher1" 24 And I follow "Course 1" 25 And I turn editing mode on 26 And I add a "Assignment" to section "1" and I fill the form with: 27 | Assignment name | Test assignment name | 28 | Description | Test assignment description | 29 | Use marking workflow | Yes | 30 When I follow "Test assignment name" 31 Then I follow "View all submissions" 32 And I click on "Grade" "link" in the "Student 1" "table_row" 33 And I set the field "Grade out of 100" to "50" 34 And I press "Save changes" 35 And I press "Ok" 36 And I click on "Edit settings" "link" 37 And I follow "Test assignment name" 38 And I follow "View all submissions" 39 And "Student 1" row "Grade" column of "generaltable" table should contain "50.00" 40 41 @javascript 42 Scenario: Update the grade for a team assignment 43 Given the following "courses" exist: 44 | fullname | shortname | category | groupmode | 45 | Course 1 | C1 | 0 | 1 | 46 And the following "users" exist: 47 | username | firstname | lastname | email | 48 | teacher1 | Teacher | 1 | teacher1@example.com | 49 | student1 | Student | 1 | student10@example.com | 50 And the following "course enrolments" exist: 51 | user | course | role | 52 | teacher1 | C1 | editingteacher | 53 | student1 | C1 | student | 54 And the following "groups" exist: 55 | name | course | idnumber | 56 | Group 1 | C1 | G1 | 57 And I log in as "teacher1" 58 And I follow "Course 1" 59 And I turn editing mode on 60 And I add a "Assignment" to section "1" and I fill the form with: 61 | Assignment name | Test assignment name | 62 | Description | Test assignment description | 63 | Use marking workflow | Yes | 64 | Students submit in groups | Yes | 65 | Group mode | No groups | 66 When I follow "Test assignment name" 67 Then I follow "View all submissions" 68 And I click on "Grade" "link" in the "Student 1" "table_row" 69 And I set the field "Grade out of 100" to "50" 70 And I press "Save changes" 71 And I press "Ok" 72 And I click on "Edit settings" "link" 73 And I follow "Test assignment name" 74 And I follow "View all submissions" 75 And "Student 1" row "Grade" column of "generaltable" table should contain "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 |