[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @report @report_outline 2 Feature: View an outline report 3 In order to ensure the outline report works as expected 4 As a teacher 5 I need to log in as a teacher and view the outline report 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 And the following "course enrolments" exist: 17 | user | course | role | 18 | teacher1 | C1 | editingteacher | 19 | student1 | C1 | student | 20 | student2 | C1 | student | 21 When I log in as "admin" 22 And I am on site homepage 23 And I follow "Course 1" 24 And I turn editing mode on 25 And I add a "Forum" to section "1" and I fill the form with: 26 | Forum name | Forum name | 27 | Description | Forum description | 28 And I add a "Book" to section "1" and I fill the form with: 29 | Name | Book name | 30 | Description | Book description | 31 32 Scenario: View the outline report when only the legacy log reader is enabled 33 Given I navigate to "Manage log stores" node in "Site administration > Plugins > Logging" 34 And I click on "Enable" "link" in the "Legacy log" "table_row" 35 And I click on "Disable" "link" in the "Standard log" "table_row" 36 And the following config values are set as admin: 37 | loglegacy | 1 | logstore_legacy | 38 And I log out 39 And I log in as "student1" 40 And I follow "Course 1" 41 And I follow "Forum name" 42 And I follow "Course 1" 43 And I follow "Book name" 44 And I log out 45 And I log in as "student2" 46 And I follow "Course 1" 47 And I follow "Book name" 48 And I log out 49 And I log in as "teacher1" 50 And I follow "Course 1" 51 When I navigate to "Activity report" node in "Course administration > Reports" 52 Then I should see "2 by 2 users" in the "Book name" "table_row" 53 And I should see "1 by 1 users" in the "Forum name" "table_row" 54 55 Scenario: View the outline report when only the standard log reader is enabled 56 Given I navigate to "Manage log stores" node in "Site administration > Plugins > Logging" 57 And "Enable" "link" should exist in the "Legacy log" "table_row" 58 And "Disable" "link" should exist in the "Standard log" "table_row" 59 And I log out 60 And I log in as "student1" 61 And I follow "Course 1" 62 And I follow "Forum name" 63 And I follow "Course 1" 64 And I follow "Book name" 65 And I log out 66 And I log in as "student2" 67 And I follow "Course 1" 68 And I follow "Book name" 69 And I log out 70 And I log in as "admin" 71 And I am on site homepage 72 And I follow "Course 1" 73 When I navigate to "Activity report" node in "Course administration > Reports" 74 Then I should see "2 by 2 users" in the "Book name" "table_row" 75 And I should see "1 by 1 users" in the "Forum name" "table_row" 76 77 Scenario: View the outline report when both the standard and legacy log readers are enabled 78 Given I navigate to "Manage log stores" node in "Site administration > Plugins > Logging" 79 And I click on "Enable" "link" in the "Legacy log" "table_row" 80 And "Disable" "link" should exist in the "Standard log" "table_row" 81 And the following config values are set as admin: 82 | loglegacy | 1 | logstore_legacy | 83 And I log out 84 And I log in as "student1" 85 And I follow "Course 1" 86 And I follow "Forum name" 87 And I follow "Course 1" 88 And I follow "Book name" 89 And I log out 90 And I log in as "student2" 91 And I follow "Course 1" 92 And I follow "Book name" 93 And I log out 94 And I log in as "teacher1" 95 And I follow "Course 1" 96 When I navigate to "Activity report" node in "Course administration > Reports" 97 Then I should see "2 by 2 users" in the "Book name" "table_row" 98 And I should see "1 by 1 users" in the "Forum name" "table_row" 99 100 Scenario: View the outline report when no log reader is enabled 101 Given I navigate to "Manage log stores" node in "Site administration > Plugins > Logging" 102 And "Enable" "link" should exist in the "Legacy log" "table_row" 103 And I click on "Disable" "link" in the "Standard log" "table_row" 104 And I am on site homepage 105 And I follow "Course 1" 106 When I navigate to "Activity report" node in "Course administration > Reports" 107 Then I should see "No log reader enabled" 108 109 Scenario: Multiple views from a single user are identified as not distinct 110 Given I log out 111 And I log in as "student1" 112 And I follow "Course 1" 113 And I follow "Forum name" 114 And I follow "Course 1" 115 And I follow "Forum name" 116 And I follow "Course 1" 117 And I follow "Forum name" 118 And I am on site homepage 119 And I log out 120 When I log in as "teacher1" 121 And I follow "Course 1" 122 And I navigate to "Activity report" node in "Course administration > Reports" 123 Then I should see "3 by 1 users" in the "Forum name" "table_row" 124 And I should see "-" in the "Book name" "table_row" 125 126 Scenario: Multiple views from multiple users are identified as not distinct 127 Given I log out 128 And I log in as "student1" 129 And I follow "Course 1" 130 And I follow "Forum name" 131 And I follow "Course 1" 132 And I follow "Forum name" 133 And I follow "Course 1" 134 And I follow "Forum name" 135 And I am on site homepage 136 And I log out 137 And I log in as "student2" 138 And I follow "Course 1" 139 And I follow "Forum name" 140 And I follow "Course 1" 141 And I follow "Forum name" 142 And I follow "Course 1" 143 And I follow "Forum name" 144 And I am on site homepage 145 And I log out 146 When I log in as "teacher1" 147 And I follow "Course 1" 148 And I navigate to "Activity report" node in "Course administration > Reports" 149 Then I should see "6 by 2 users" in the "Forum name" "table_row" 150 And I should see "-" in the "Book name" "table_row" 151 152 Scenario: No views from any users 153 Given I log out 154 When I log in as "teacher1" 155 And I follow "Course 1" 156 And I navigate to "Activity report" node in "Course administration > Reports" 157 Then I should see "-" in the "Forum name" "table_row" 158 And I should see "-" in the "Book name" "table_row"
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 |