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