__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@core @core_group
Feature: Backup and restore a course containing groups
In order to transfer groups to another course
As a teacher
I want to backup and restore a course retaining the groups
Background:
Given the following "courses" exist:
| fullname | shortname | format | enablecompletion | numsections |
| Course 1 | C1 | topics | 1 | 3 |
And the following "users" exist:
| username | firstname | lastname |
| teacher1 | Teacher | Teacher |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
And the following "groups" exist:
| name | course | idnumber | visibility | participation |
| Visible/Participation | C1 | VP | 0 | 1 |
| Only visible to members/Participation | C1 | MP | 1 | 1 |
| Only see own membership | C1 | O | 2 | 0 |
| Not visible | C1 | N | 3 | 0 |
| Visible/Non-Participation | C1 | VN | 0 | 0 |
| Only visible to members/Non-Participation | C1 | MN | 1 | 0 |
And the following config values are set as admin:
| enableasyncbackup | 0 |
And I log in as "admin"
And I backup "Course 1" course using this options:
| Confirmation | Filename | test_backup.mbz |
And I restore "test_backup.mbz" backup into a new course using this options:
| Schema | Course name | Restored course |
@javascript
Scenario Outline: Check restored groups
Given I am on the "Restored course copy 1" "groups" page logged in as teacher1
When I set the field "Groups" to "<group>"
And I press "Edit group settings"
Then the following fields match these values:
| Group ID number | <idnumber> |
| Group membership visibility | <visibility> |
| Show group in dropdown menu for activities in group mode | <participation> |
Examples:
| group | idnumber | visibility | participation |
| Visible/Participation | VP | 0 | 1 |
| Only visible to members/Participation | MP | 1 | 1 |
| Only see own membership | O | 2 | 0 |
| Not visible | N | 3 | 0 |
| Visible/Non-Participation | VN | 0 | 0 |
| Only visible to members/Non-Participation | MN | 1 | 0 |
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| auto_creation.feature | File | 8.52 KB | 0777 |
|
| backup_restore_groups.feature | File | 2.83 KB | 0777 |
|
| behat_groups.php | File | 3.66 KB | 0777 |
|
| bulk_messaging.feature | File | 2.45 KB | 0777 |
|
| create_groups.feature | File | 6.97 KB | 0777 |
|
| custom_fields.feature | File | 3 KB | 0777 |
|
| delete_groups.feature | File | 2.88 KB | 0777 |
|
| group_customfields.feature | File | 3.35 KB | 0777 |
|
| group_description_picture.feature | File | 5.84 KB | 0777 |
|
| groups_import.feature | File | 7.75 KB | 0777 |
|
| id_uniqueness.feature | File | 2.36 KB | 0777 |
|
| overview.feature | File | 9.26 KB | 0777 |
|
| private_groups.feature | File | 11.63 KB | 0777 |
|
| role_visibility.feature | File | 2.32 KB | 0777 |
|
| update_groups.feature | File | 7.15 KB | 0777 |
|