[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_choice 2 Feature: Limit choice responses 3 In order to restrict students from selecting a response more than a specified number of times 4 As a teacher 5 I need to limit the choice responses 6 7 Scenario: Limit the number of responses allowed for a choice activity and verify the result as students 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 | student2 | Student | 2 | student2@example.com | 13 And the following "courses" exist: 14 | fullname | shortname | category | 15 | Course 1 | C1 | 0 | 16 And the following "course enrolments" exist: 17 | user | course | role | 18 | teacher1 | C1 | editingteacher | 19 | student1 | C1 | student | 20 | student2 | C1 | student | 21 And I log in as "teacher1" 22 And I follow "Course 1" 23 And I turn editing mode on 24 And I add a "Choice" to section "1" and I fill the form with: 25 | Choice name | Choice name | 26 | Description | Choice Description | 27 | Limit the number of responses allowed | 1 | 28 | option[0] | Option 1 | 29 | limit[0] | 1 | 30 | option[1] | Option 2 | 31 And I log out 32 When I log in as "student1" 33 And I follow "Course 1" 34 And I choose "Option 1" from "Choice name" choice activity 35 Then I should see "Your selection: Option 1" 36 And I should see "Your choice has been saved" 37 And I log out 38 And I log in as "student2" 39 And I follow "Course 1" 40 And I follow "Choice name" 41 And I should see "Option 1 (Full)" 42 And the "choice_1" "radio" should be disabled
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 |