__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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_choice
Feature: Group choice
  In order to view choice responses for large courses
  As a user
  I need to filter the responses to a choice by group

  Background:
    And the following "courses" exist:
      | fullname      | shortname |
      | Test Course 1 | C1        |
    And the following "groups" exist:
      | name    | course | idnumber | participation |
      | Group 1 | C1     | G1       | 1             |
      | Group 2 | C1     | G2       | 1             |
      | Group 3 | C1     | G3       | 0             |
    And the following "users" exist:
      | username | firstname    | lastname | email                |
      | teacher1 | TeacherG1    | 1        | teacher1@example.com |
      | user1    | User1G1      | 1        | user1@example.com    |
      | user2    | User2G2      | 2        | user2@example.com    |
      | user3    | User3None    | 3        | user3@example.com    |
      | user4    | User4NPgroup | 4        | user4@example.com    |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | teacher1 | C1     | editingteacher |
      | user1    | C1     | student        |
      | user2    | C1     | student        |
      | user3    | C1     | student        |
      | user4    | C1     | student        |
    And the following "group members" exist:
      | user     | group |
      | teacher1 | G1    |
      | user1    | G1    |
      | user2    | G2    |
      | user4    | G3    |
    And the following "activities" exist:
      | activity | name            | intro                       | course | idnumber | showresults | publish | groupmode |
      | choice   | Separate Choice | Choice with separate groups | C1     | choice1  | 3           | 1       | 1         |
      | choice   | Visible Choice  | Choice with visible groups  | C1     | choice2  | 3           | 1       | 2         |

  Scenario Outline: Users should see their own participation groups in "separate groups" mode, and all
  participation groups in "visible groups" mode.
    Given I am on the "<choice>" "choice activity" page logged in as "<user>"
    Then I <all> "All participants"
    And I <G1> "Group 1"
    And I <G2> "Group 2"
    And I should not see "Group 3"

    Examples:
      | choice  | user     | all            | G1             | G2             |
      | choice1 | teacher1 | should see     | should see     | should see     |
      | choice1 | user1    | should not see | should see     | should not see |
      | choice1 | user2    | should not see | should not see | should see     |
      | choice1 | user3    | should see     | should not see | should not see |
      | choice1 | user4    | should see     | should not see | should not see |
      | choice2 | teacher1 | should see     | should see     | should see     |
      | choice2 | user1    | should see     | should see     | should see     |
      | choice2 | user2    | should see     | should see     | should see     |
      | choice2 | user3    | should see     | should see     | should see     |
      | choice2 | user4    | should see     | should see     | should see     |

Filemanager

Name Type Size Permission Actions
activity_info_completion_automatic.feature File 2.86 KB 0777
activity_info_completion_manual.feature File 4.08 KB 0777
add_choice.feature File 1.17 KB 0777
allow_preview.feature File 2 KB 0777
behat_mod_choice.php File 3.22 KB 0777
block_editing.feature File 4.71 KB 0777
change_response.feature File 2.34 KB 0777
choice_availability.feature File 4.49 KB 0777
choice_no_calendar_capabilities.feature File 2.05 KB 0777
group_mode.feature File 3.07 KB 0777
include_inactive.feature File 5.7 KB 0777
limit_responses.feature File 2.54 KB 0777
modify_choice.feature File 5.85 KB 0777
multiple_options.feature File 3.93 KB 0777
my_home.feature File 2.16 KB 0777
publish_info.feature File 6.03 KB 0777
publish_results.feature File 5.13 KB 0777
publish_results_anonymously.feature File 2.86 KB 0777
remove_choice_options.feature File 1.94 KB 0777
Filemanager