[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_forum 2 Feature: Set a certain number of discussions as a completion condition for a forum 3 In order to ensure students are participating on forums 4 As a teacher 5 I need to set a minimum number of discussions to mark the forum activity as completed 6 7 Scenario: Set X number of discussions as a condition 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | student1 | Student | 1 | student1@example.com | 11 | teacher1 | Teacher | 1 | teacher1@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 And I click on "Edit settings" "link" in the "Administration" "block" 23 And I set the following fields to these values: 24 | Enable completion tracking | Yes | 25 And I press "Save and display" 26 When I add a "Forum" to section "1" and I fill the form with: 27 | Forum name | Test forum name | 28 | Description | Test forum description | 29 | Completion tracking | Show activity as complete when conditions are met | 30 | completiondiscussionsenabled | 1 | 31 | completiondiscussions | 2 | 32 And I log out 33 And I log in as "student1" 34 And I follow "Course 1" 35 Then the "Test forum name" "forum" activity with "auto" completion should be marked as not complete 36 And I add a new discussion to "Test forum name" forum with: 37 | Subject | Post 1 subject | 38 | Message | Body 1 content | 39 And I add a new discussion to "Test forum name" forum with: 40 | Subject | Post 2 subject | 41 | Message | Body 2 content | 42 And I follow "Course 1" 43 Then the "Test forum name" "forum" activity with "auto" completion should be marked as complete 44 And I log out 45 And I log in as "teacher1" 46 And I follow "Course 1" 47 And "Student 1" user has completed "Test forum name" activity
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 |