[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_choice 2 Feature: A teacher can choose one of 4 options for publishing choice results 3 In order to display choice activities outcomes 4 As a teacher 5 I need to publish the choice activity results in different ways 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 23 Scenario: Do not publish results to students 24 Given I add a "Choice" to section "1" and I fill the form with: 25 | Choice name | Choice 1 | 26 | Description | Choice Description | 27 | Publish results | Do not publish results to students | 28 | option[0] | Option 1 | 29 | option[1] | Option 2 | 30 And I log out 31 And I log in as "student1" 32 And I follow "Course 1" 33 When I choose "Option 1" from "Choice 1" choice activity 34 Then I should see "Your selection: Option 1" 35 And I should not see "Responses" 36 And I should not see "Graph display" 37 38 Scenario: Show results to students after they answer 39 Given I add a "Choice" to section "1" and I fill the form with: 40 | Choice name | Choice 1 | 41 | Description | Choice Description | 42 | option[0] | Option 1 | 43 | option[1] | Option 2 | 44 | Publish results | Show results to students after they answer | 45 And I log out 46 And I log in as "student1" 47 And I follow "Course 1" 48 When I follow "Choice 1" 49 Then I should not see "Responses" 50 And I follow "Course 1" 51 And I choose "Option 1" from "Choice 1" choice activity 52 And I should see "Your selection: Option 1" 53 And I should see "Responses" 54 55 Scenario: Show results to students only after the choice is closed 56 Given I add a "Choice" to section "1" and I fill the form with: 57 | Choice name | Choice 1 | 58 | Description | Choice Description | 59 | Publish results | Show results to students only after the choice is closed | 60 | option[0] | Option 1 | 61 | option[1] | Option 2 | 62 And I log out 63 And I log in as "student1" 64 And I follow "Course 1" 65 When I follow "Choice 1" 66 Then I should not see "Responses" 67 And I choose "Option 1" from "Choice 1" choice activity 68 And I log out 69 And I log in as "teacher1" 70 And I follow "Course 1" 71 And I follow "Choice 1" 72 And I follow "Edit settings" 73 And I expand all fieldsets 74 And I set the following fields to these values: 75 | timeopen[enabled] | 1 | 76 | timeopen[day] | 1 | 77 | timeopen[month] | January | 78 | timeopen[year] | 2010 | 79 | timeclose[enabled] | 1 | 80 | timeclose[day] | 2 | 81 | timeclose[month] | January | 82 | timeclose[year] | 2010 | 83 And I press "Save and return to course" 84 And I log out 85 And I log in as "student1" 86 And I follow "Course 1" 87 And I follow "Choice 1" 88 And I should see "Responses" 89 90 Scenario: Always show results to students 91 Given I add a "Choice" to section "1" and I fill the form with: 92 | Choice name | Choice 1 | 93 | Description | Choice Description | 94 | option[0] | Option 1 | 95 | option[1] | Option 2 | 96 | Publish results | Always show results to students | 97 And I log out 98 And I log in as "student1" 99 And I follow "Course 1" 100 When I follow "Choice 1" 101 And I should see "Responses"
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 |