[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_lesson 2 Feature: Practice mode in a lesson activity 3 In order to improve my students understanding of a subject 4 As a teacher 5 I need to be able to set ungraded practice lesson activites 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 # Setup a basic lesson, we'll adjust it in the scenarios later. 23 And I add a "Lesson" to section "1" and I fill the form with: 24 | Name | Test lesson name | 25 | Description | Lesson description | 26 And I follow "Test lesson name" 27 And I follow "Add a question page" 28 And I set the field "Select a question type" to "True/false" 29 And I press "Add a question page" 30 And I set the following fields to these values: 31 | Page title | True or False | 32 | Page contents | Paper is made from trees. | 33 | id_answer_editor_0 | True | 34 | id_answer_editor_1 | False | 35 And I press "Save page" 36 37 Scenario: Non-practice lesson records grades in the gradebook 38 Given I follow "Test lesson name" 39 And I navigate to "Edit settings" node in "Lesson administration" 40 And I set the following fields to these values: 41 | Name | Non-practice lesson | 42 | Description | This lesson will affect your course grade | 43 | Practice lesson | No | 44 And I press "Save and display" 45 And I log out 46 When I log in as "student1" 47 And I follow "Course 1" 48 And I follow "Non-practice lesson" 49 And I set the following fields to these values: 50 | True | 1 | 51 And I press "Submit" 52 Then I should see "View grades" 53 And I follow "Grades" in the user menu 54 And I follow "Course 1" 55 And I should see "Non-practice lesson" 56 57 Scenario: Practice lesson doesn't record grades in the gradebook 58 Given I follow "Test lesson name" 59 And I navigate to "Edit settings" node in "Lesson administration" 60 And I set the following fields to these values: 61 | Name | Practice lesson | 62 | Description | This lesson will NOT affect your course grade | 63 | Practice lesson | Yes | 64 And I press "Save and display" 65 And I log out 66 When I log in as "student1" 67 And I follow "Course 1" 68 And I follow "Practice lesson" 69 And I set the following fields to these values: 70 | True | 1 | 71 And I press "Submit" 72 Then I should not see "View grades" 73 And I follow "Grades" in the user menu 74 And I follow "Course 1" 75 And I should not see "Practice lesson" 76 77 Scenario: Practice lesson with scale doesn't record grades in the gradebook 78 Given I follow "Test lesson name" 79 And I navigate to "Edit settings" node in "Lesson administration" 80 And I set the following fields to these values: 81 | Name | Practice lesson with scale | 82 | Description | This lesson will NOT affect your course grade | 83 | Practice lesson | Yes | 84 | Type | Scale | 85 And I press "Save and display" 86 And I log out 87 When I log in as "student1" 88 And I follow "Course 1" 89 And I follow "Practice lesson with scale" 90 And I set the following fields to these values: 91 | True | 1 | 92 And I press "Submit" 93 Then I should not see "View grades" 94 And I follow "Grades" in the user menu 95 And I follow "Course 1" 96 And I should not see "Practice lesson with scale"
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 |