Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_group
2
Feature: Backup and restore a course containing groups
3
  In order to transfer groups to another course
4
  As a teacher
5
  I want to backup and restore a course retaining the groups
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | format | enablecompletion | numsections |
10
      | Course 1 | C1        | topics | 1                | 3           |
11
    And the following "users" exist:
12
      | username | firstname | lastname |
13
      | teacher1 | Teacher   | Teacher  |
14
    And the following "course enrolments" exist:
15
      | user     | course | role           |
16
      | teacher1 | C1     | editingteacher |
17
    And the following "groups" exist:
18
      | name                                      | course | idnumber | visibility | participation |
19
      | Visible/Participation                     | C1     | VP       | 0          | 1             |
20
      | Only visible to members/Participation     | C1     | MP       | 1          | 1             |
21
      | Only see own membership                   | C1     | O        | 2          | 0             |
22
      | Not visible                               | C1     | N        | 3          | 0             |
23
      | Visible/Non-Participation                 | C1     | VN       | 0          | 0             |
24
      | Only visible to members/Non-Participation | C1     | MN       | 1          | 0             |
25
    And the following config values are set as admin:
26
      | enableasyncbackup | 0 |
27
    And I log in as "admin"
28
    And I backup "Course 1" course using this options:
29
      | Confirmation | Filename | test_backup.mbz |
30
    And I restore "test_backup.mbz" backup into a new course using this options:
31
      | Schema | Course name | Restored course |
32
 
33
  @javascript
34
  Scenario Outline: Check restored groups
35
    Given I am on the "Restored course copy 1" "groups" page logged in as teacher1
36
    When I set the field "Groups" to "<group>"
37
    And I press "Edit group settings"
38
    Then the following fields match these values:
39
      | Group ID number              | <idnumber>      |
40
      | Group membership visibility             | <visibility>    |
41
      | Show group in dropdown menu for activities in group mode | <participation> |
42
 
43
    Examples:
44
      | group                                     | idnumber | visibility | participation |
45
      | Visible/Participation                     | VP       | 0          | 1             |
46
      | Only visible to members/Participation     | MP       | 1          | 1             |
47
      | Only see own membership                   | O        | 2          | 0             |
48
      | Not visible                               | N        | 3          | 0             |
49
      | Visible/Non-Participation                 | VN       | 0          | 0             |
50
      | Only visible to members/Non-Participation | MN       | 1          | 0             |