__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@mod @mod_forum @forumreport @forumreport_summary
Feature: Message users in the summary report
  In order to encourage users to participate
  As a teacher
  I should be able to send messages to those who are not taking part

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email                |
      | teacher1 | Teacher   | 1        | teacher1@example.com |
      | student1 | Student   | 1        | student1@example.com |
      | student2 | Student   | 2        | student1@example.com |
    And the following "courses" exist:
      | fullname | shortname |
      | Course 1 | C1        |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | teacher1 | C1     | editingteacher |
      | student1 | C1     | student        |
      | student2 | C1     | student        |
    And the following "activities" exist:
      | activity | name   | course | idnumber |
      | forum    | forum1 | C1     | forum1   |
    And the following forum discussions exist in course "Course 1":
      | user     | forum  | name        | message         |
      | teacher1 | forum1 | discussion1 | t1 earliest     |
      | teacher1 | forum1 | discussion2 | t1 between      |
      | student1 | forum1 | discussion3 | s1 latest       |
    And the following forum replies exist in course "Course 1":
      | user     | forum  | discussion  | message         |
      | teacher1 | forum1 | discussion1 | t1 between      |
      | teacher1 | forum1 | discussion2 | t1 latest       |
      | student1 | forum1 | discussion1 | s1 earliest     |

  @javascript
  Scenario: Message some users
    Given the following "users" exist:
      | username | firstname | lastname | email                |
      | student3 | Student   | 3        | student3@example.com |
    And the following "course enrolments" exist:
      | user     | course | role    |
      | student3 | C1     | student |
    When I am on the forum1 "forum activity" page logged in as teacher1
    And I navigate to "Reports" in current page administration
    And I click on "Select 'Student 1'" "checkbox"
    And I click on "Select 'Student 3'" "checkbox"
    And I set the field "With selected users..." to "Send a message"
    And I set the field "bulk-message" to "blah blah"
    And I click on "Send message to 2 people" "button"
    Then I should see "Message sent to 2 people"
    And I log out
    And I log in as "student1"
    And I should see "1" in the "//*[@title='Toggle messaging drawer']/../*[@data-region='count-container']" "xpath_element"
    And I log out
    And I log in as "student3"
    And I should see "1" in the "//*[@title='Toggle messaging drawer']/../*[@data-region='count-container']" "xpath_element"
    And I log out
    And I log in as "student2"
    And I should not see "1" in the "//*[@title='Toggle messaging drawer']/../*[@data-region='count-container']" "xpath_element"

  @javascript
  Scenario: Message all users
    When I am on the forum1 "forum activity" page logged in as teacher1
    And I navigate to "Reports" in current page administration
    And I click on "Select all" "checkbox"
    And I set the field "With selected users..." to "Send a message"
    Then I should see "Send message to 3 people"

  @javascript
  Scenario: Ensure no message options when messaging is disabled
    Given the following config values are set as admin:
      | messaging | 0 |
    When I am on the forum1 "forum activity" page logged in as teacher1
    And I navigate to "Reports" in current page administration
    Then I should not see "With selected users..."
    And I should not see "Select all"

Filemanager

Name Type Size Permission Actions
bulk_message.feature File 3.59 KB 0777
course_summary.feature File 8.34 KB 0777
double_enrolments_summary_data.feature File 4.25 KB 0777
private_replies.feature File 2.79 KB 0777
summary_data_access.feature File 4.5 KB 0777
summary_data_attachments.feature File 3.1 KB 0777
summary_data_post_dates.feature File 3.56 KB 0777
summary_filter_groups.feature File 12.76 KB 0777
summary_filter_no_groups.feature File 3.28 KB 0777
Filemanager