[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_assign 2 Feature: View the grading status of an assignment 3 In order to test the grading status for assignments is displaying correctly 4 As a student 5 I need to view my grading status 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 | student1@example.com | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 20 @javascript 21 Scenario: View the grading status for an assignment with marking workflow enabled 22 # Add the assignment. 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 | Online text | 1 | 30 | Use marking workflow | Yes | 31 And I log out 32 # Add a submission. 33 And I log in as "student1" 34 And I click on "Dashboard" "link" in the "Navigation" "block" 35 And I click on ".collapsibleregioncaption" "css_element" 36 And I should see "Not marked" 37 And I follow "Course 1" 38 When I follow "Test assignment name" 39 Then I should not see "Feedback" 40 And I should see "Not marked" in the "Grading status" "table_row" 41 And I press "Add submission" 42 And I set the following fields to these values: 43 | Online text | I'm the student's first submission | 44 And I press "Save changes" 45 And I click on "Dashboard" "link" in the "Navigation" "block" 46 And ".collapsibleregioncaption" "css_element" should not exist 47 And I should not see "Not marked" 48 And I log out 49 # Mark the submission. 50 And I log in as "teacher1" 51 And I follow "Course 1" 52 And I follow "Test assignment name" 53 And I follow "View all submissions" 54 And I should see "Not marked" in the "Student 1" "table_row" 55 And I click on "Grade" "link" in the "Student 1" "table_row" 56 And I set the field "Grade out of 100" to "50" 57 And I set the field "Marking workflow state" to "In review" 58 And I set the field "Feedback comments" to "Great job! Lol, not really." 59 And I press "Save changes" 60 And I press "Ok" 61 And I click on "Edit settings" "link" 62 And I follow "Test assignment name" 63 And I follow "View all submissions" 64 And I should see "In review" in the "Student 1" "table_row" 65 And I log out 66 # View the grading status as a student. 67 And I log in as "student1" 68 And I follow "Course 1" 69 And I follow "Test assignment name" 70 And I should see "In review" in the "Grading status" "table_row" 71 And I should not see "Great job! Lol, not really." 72 And I click on "Dashboard" "link" in the "Navigation" "block" 73 And ".collapsibleregioncaption" "css_element" should not exist 74 And I should not see "In review" 75 And I log out 76 # Mark the submission again but set the marking workflow to 'Released'. 77 And I log in as "teacher1" 78 And I follow "Course 1" 79 And I follow "Test assignment name" 80 And I follow "View all submissions" 81 And I should see "In review" in the "Student 1" "table_row" 82 And I click on "Grade" "link" in the "Student 1" "table_row" 83 And I set the field "Marking workflow state" to "Released" 84 And I press "Save changes" 85 And I press "Ok" 86 And I click on "Edit settings" "link" 87 And I follow "Test assignment name" 88 And I follow "View all submissions" 89 And I should see "Released" in the "Student 1" "table_row" 90 And I log out 91 # View the grading status as a student. 92 And I log in as "student1" 93 And I follow "Course 1" 94 And I follow "Test assignment name" 95 And I should see "Released" in the "Grading status" "table_row" 96 And I should see "Great job! Lol, not really." 97 And I click on "Dashboard" "link" in the "Navigation" "block" 98 And ".collapsibleregioncaption" "css_element" should not exist 99 And I should not see "Released" 100 And I log out 101 # Now, change the status from 'Released' to 'In marking' (this will remove the grade from the gradebook). 102 And I log in as "teacher1" 103 And I follow "Course 1" 104 And I follow "Test assignment name" 105 And I follow "View all submissions" 106 And I should see "Released" in the "Student 1" "table_row" 107 And I click on "Grade" "link" in the "Student 1" "table_row" 108 And I set the field "Marking workflow state" to "In marking" 109 And I press "Save changes" 110 And I press "Ok" 111 And I click on "Edit settings" "link" 112 And I follow "Test assignment name" 113 And I follow "View all submissions" 114 And I should see "In marking" in the "Student 1" "table_row" 115 # The grade should also remain displayed as it's stored in the assign DB tables, but the final grade should be empty. 116 And "Student 1" row "Grade" column of "generaltable" table should contain "50.00" 117 And "Student 1" row "Final grade" column of "generaltable" table should contain "-" 118 And I log out 119 120 @javascript 121 Scenario: View the grading status for an assignment with marking workflow disabled 122 # Add the assignment. 123 And I log in as "teacher1" 124 And I follow "Course 1" 125 And I turn editing mode on 126 And I add a "Assignment" to section "1" and I fill the form with: 127 | Assignment name | Test assignment name | 128 | Description | Test assignment description | 129 | Online text | 1 | 130 And I log out 131 # Add a submission. 132 And I log in as "student1" 133 And I click on "Dashboard" "link" in the "Navigation" "block" 134 When I click on ".collapsibleregioncaption" "css_element" 135 Then I should see "Not graded" 136 And I follow "Course 1" 137 And I follow "Test assignment name" 138 And I should not see "Feedback" 139 And I should see "Not graded" in the "Grading status" "table_row" 140 And I press "Add submission" 141 And I set the following fields to these values: 142 | Online text | I'm the student's first submission | 143 And I press "Save changes" 144 And I log out 145 # Mark the submission. 146 And I log in as "teacher1" 147 And I follow "Course 1" 148 And I follow "Test assignment name" 149 And I follow "View all submissions" 150 And I should not see "Graded" in the "Student 1" "table_row" 151 And I click on "Grade" "link" in the "Student 1" "table_row" 152 And I set the field "Grade out of 100" to "50" 153 And I set the field "Feedback comments" to "Great job! Lol, not really." 154 And I press "Save changes" 155 And I press "Ok" 156 And I click on "Edit settings" "link" 157 And I follow "Test assignment name" 158 And I follow "View all submissions" 159 And I should see "Graded" in the "Student 1" "table_row" 160 And I log out 161 # View the grading status as a student. 162 And I log in as "student1" 163 And I follow "Course 1" 164 And I follow "Test assignment name" 165 And I should see "Graded" in the "Grading status" "table_row" 166 And I should see "Great job! Lol, not really." 167 And I click on "Dashboard" "link" in the "Navigation" "block" 168 And ".collapsibleregioncaption" "css_element" should not exist 169 And I should not see "Graded" 170 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 |