[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_lesson 2 Feature: Teachers can review student progress on all lessons in a course by viewing the overview report 3 As a Teacher 4 I need to view the overview report for one of my students. 5 6 Background: 7 Given the following "users" exist: 8 | username | firstname | lastname | email | 9 | teacher1 | Teacher | 1 | teacher1@example.com | 10 | student1 | Student | 1 | student1@example.com | 11 And the following "courses" exist: 12 | fullname | shortname | category | 13 | Course 1 | C1 | 0 | 14 And the following "course enrolments" exist: 15 | user | course | role | 16 | teacher1 | C1 | editingteacher | 17 | student1 | C1 | student | 18 And I log in as "teacher1" 19 And I follow "Course 1" 20 And I turn editing mode on 21 And I add a "Lesson" to section "1" 22 And I set the following fields to these values: 23 | Name | Test lesson name | 24 | Description | Test lesson description | 25 | Re-takes allowed | Yes | 26 And I press "Save and return to course" 27 And I follow "Test lesson name" 28 29 Scenario: View student progress for lesson that was never attempted 30 Given I follow "Add a content page" 31 And I set the following fields to these values: 32 | Page title | First page name | 33 | Page contents | First page contents | 34 | id_answer_editor_0 | Next page | 35 | id_jumpto_0 | Next page | 36 And I press "Save page" 37 And I select "Question" from the "qtype" singleselect 38 And I set the field "Select a question type" to "True/false" 39 And I press "Add a question page" 40 And I set the following fields to these values: 41 | Page title | True/false question 1 | 42 | Page contents | Paper is made from trees. | 43 | id_answer_editor_0 | True | 44 | id_response_editor_0 | Correct | 45 | id_jumpto_0 | Next page | 46 | id_answer_editor_1 | False | 47 | id_response_editor_1 | Wrong | 48 | id_jumpto_1 | This page | 49 And I press "Save page" 50 When I follow "Course 1" 51 And I follow "Participants" 52 And I follow "Student 1" 53 And I follow "Outline report" 54 Then I should see "No attempts have been made on this lesson" 55 56 Scenario: View student progress for an incomplete lesson containing both content and question pages 57 Given I follow "Add a content page" 58 And I set the following fields to these values: 59 | Page title | First page name | 60 | Page contents | First page contents | 61 | id_answer_editor_0 | Next page | 62 | id_jumpto_0 | Next page | 63 And I press "Save page" 64 And I select "Question" from the "qtype" singleselect 65 And I set the field "Select a question type" to "True/false" 66 And I press "Add a question page" 67 And I set the following fields to these values: 68 | Page title | True/false question 1 | 69 | Page contents | Paper is made from trees. | 70 | id_answer_editor_0 | True | 71 | id_response_editor_0 | Correct | 72 | id_jumpto_0 | Next page | 73 | id_answer_editor_1 | False | 74 | id_response_editor_1 | Wrong | 75 | id_jumpto_1 | This page | 76 And I press "Save page" 77 And I select "Add a content page" from the "qtype" singleselect 78 And I set the following fields to these values: 79 | Page title | Second page name | 80 | Page contents | Second page contents | 81 | id_answer_editor_0 | Previous page | 82 | id_jumpto_0 | Previous page | 83 | id_answer_editor_1 | Next page | 84 | id_jumpto_1 | Next page | 85 And I press "Save page" 86 And I log out 87 When I log in as "student1" 88 And I follow "Course 1" 89 And I follow "Test lesson name" 90 And I should see "First page contents" 91 And I press "Next page" 92 And I log out 93 Then I log in as "teacher1" 94 And I follow "Course 1" 95 And I follow "Participants" 96 And I follow "Student 1" 97 And I follow "Outline report" 98 And I should see "Lesson has been started, but not yet completed" 99 100 Scenario: View student progress for a lesson containing both content and question pages 101 Given I follow "Add a content page" 102 And I set the following fields to these values: 103 | Page title | First page name | 104 | Page contents | First page contents | 105 | id_answer_editor_0 | Next page | 106 | id_jumpto_0 | Next page | 107 And I press "Save page" 108 And I select "Question" from the "qtype" singleselect 109 And I set the field "Select a question type" to "True/false" 110 And I press "Add a question page" 111 And I set the following fields to these values: 112 | Page title | True/false question 1 | 113 | Page contents | Paper is made from trees. | 114 | id_answer_editor_0 | True | 115 | id_response_editor_0 | Correct | 116 | id_jumpto_0 | Next page | 117 | id_answer_editor_1 | False | 118 | id_response_editor_1 | Wrong | 119 | id_jumpto_1 | This page | 120 And I press "Save page" 121 And I select "Add a content page" from the "qtype" singleselect 122 And I set the following fields to these values: 123 | Page title | Second page name | 124 | Page contents | Second page contents | 125 | id_answer_editor_0 | Previous page | 126 | id_jumpto_0 | Previous page | 127 | id_answer_editor_1 | Next page | 128 | id_jumpto_1 | Next page | 129 And I press "Save page" 130 And I log out 131 When I log in as "student1" 132 And I follow "Course 1" 133 And I follow "Test lesson name" 134 And I should see "First page contents" 135 And I press "Next page" 136 And I should see "Second page contents" 137 And I press "Next page" 138 And I should see "Paper is made from trees." 139 And I set the following fields to these values: 140 | True | 1 | 141 And I press "Submit" 142 And I press "Continue" 143 And I should see "Congratulations - end of lesson reached" 144 And I log out 145 Then I log in as "teacher1" 146 And I follow "Course 1" 147 And I follow "Participants" 148 And I follow "Student 1" 149 And I follow "Outline report" 150 And I should see "Grade: 100.00 / 100.00" 151 152 Scenario: View student attempts in a lesson containing only content pages 153 Given I follow "Add a content page" 154 And I set the following fields to these values: 155 | Page title | First page name | 156 | Page contents | First page contents | 157 | id_answer_editor_0 | Next page | 158 | id_jumpto_0 | Next page | 159 And I press "Save page" 160 And I select "Add a content page" from the "qtype" singleselect 161 And I set the following fields to these values: 162 | Page title | Second page name | 163 | Page contents | Second page contents | 164 | id_answer_editor_0 | Previous page | 165 | id_jumpto_0 | Previous page | 166 | id_answer_editor_1 | End of lesson | 167 | id_jumpto_1 | End of lesson | 168 And I press "Save page" 169 And I log out 170 When I log in as "student1" 171 And I follow "Course 1" 172 And I follow "Test lesson name" 173 And I should see "First page contents" 174 And I press "Next page" 175 And I should see "Second page contents" 176 And I press "End of lesson" 177 And I log out 178 Then I log in as "teacher1" 179 And I follow "Course 1" 180 And I follow "Participants" 181 And I follow "Student 1" 182 And I follow "Outline report" 183 And I should see "Completed"
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 |