[ Index ] |
PHP Cross Reference of moodle-2.8 |
[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 @javascript 8 Scenario: Limit the number of responses allowed for a choice activity and verify the result as students 9 Given the following "users" exist: 10 | username | firstname | lastname | email | 11 | teacher1 | Teacher | 1 | [email protected] | 12 | student1 | Student | 1 | [email protected] | 13 | student2 | Student | 2 | [email protected] | 14 And the following "courses" exist: 15 | fullname | shortname | category | 16 | Course 1 | C1 | 0 | 17 And the following "course enrolments" exist: 18 | user | course | role | 19 | teacher1 | C1 | editingteacher | 20 | student1 | C1 | student | 21 | student2 | C1 | student | 22 And I log in as "teacher1" 23 And I follow "Course 1" 24 And I turn editing mode on 25 And I add a "Choice" to section "1" and I fill the form with: 26 | Choice name | Choice name | 27 | Description | Choice Description | 28 | Limit the number of responses allowed | 1 | 29 | option[0] | Option 1 | 30 | limit[0] | 1 | 31 | option[1] | Option 2 | 32 And I log out 33 When I log in as "student1" 34 And I follow "Course 1" 35 And I choose "Option 1" from "Choice name" choice activity 36 Then I should see "Your selection: Option 1" 37 And I should see "Your choice has been saved" 38 And I log out 39 And I log in as "student2" 40 And I follow "Course 1" 41 And I follow "Choice name" 42 And I should see "Option 1 (Full)" 43 And the "choice_1" "radio" should be disabled
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |