Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_bigbluebuttonbn
2
Feature: Test the ability to start a meeting
3
  In order to ensure that start meeting capabilities are respected
4
  As a teacher
5
  I need to control who can start a meeting
6
 
7
  Background:
8
    Given a BigBlueButton mock server is configured
9
    And I enable "bigbluebuttonbn" "mod" plugin
10
 
11
  Scenario Outline: Users should be able to join a session depending on the Wait for moderator to join setting
12
    Given the following course exists:
13
      | name      | Test course |
14
      | shortname | C1          |
15
    And the following "users" exist:
16
      | username | firstname | lastname | email                 |
17
      | traverst | Terry     | Travers  | t.travers@example.com |
18
    And the following "course enrolments" exist:
19
      | user     | course | role   |
20
      | traverst | C1     | <role> |
21
    And the following "activity" exists:
22
      | course     | C1                  |
23
      | activity   | bigbluebuttonbn     |
24
      | name       | Room recordings     |
25
      | idnumber   | Room recordings     |
26
      | moderators | role:editingteacher |
27
      | wait       | <wait>              |
28
    When I am on the "Room recordings" Activity page logged in as traverst
29
    Then "Join session" "link" <existence> exist
30
 
31
    Examples:
32
      | wait | role           | existence  |
33
      | 0    | student        | should     |
34
      | 0    | teacher        | should     |
35
      | 0    | editingteacher | should     |
36
      | 1    | student        | should not |
37
      | 1    | teacher        | should not |
38
      | 1    | editingteacher | should     |
39
 
40
  Scenario Outline: Users should be able to join a session if a moderator has already joined
41
    Given the following course exists:
42
      | name      | Test course |
43
      | shortname | C1          |
44
    And the following "users" exist:
45
      | username | firstname | lastname | email                 |
46
      | traverst | Terry     | Travers  | t.travers@example.com |
47
    And the following "course enrolments" exist:
48
      | user     | course | role   |
49
      | traverst | C1     | <role> |
50
    And the following "activity" exists:
51
      | course     | C1                  |
52
      | activity   | bigbluebuttonbn     |
53
      | name       | Room recordings     |
54
      | idnumber   | Room recordings     |
55
      | moderators | role:editingteacher |
56
      | wait       | <wait>              |
57
    And the following "mod_bigbluebuttonbn > meeting" exists:
58
      | activity         | Room recordings |
59
      | moderatorCount   | 1               |
60
    When I am on the "Room recordings" Activity page logged in as traverst
61
    Then "Join session" "link" should exist
62
 
63
    Examples:
64
      | wait | role           |
65
      | 0    | student        |
66
      | 0    | editingteacher |
67
      | 1    | student        |
68
      | 1    | editingteacher |
69
 
70
  Scenario Outline: An administrator should always be allowed to join a meeting
71
    Given the following course exists:
72
      | name      | Test course |
73
      | shortname | C1          |
74
    And the following "activity" exists:
75
      | course     | C1                  |
76
      | activity   | bigbluebuttonbn     |
77
      | name       | Room recordings     |
78
      | idnumber   | Room recordings     |
79
      | moderators | role:editingteacher |
80
      | wait       | <wait>              |
81
    When I am on the "Room recordings" Activity page logged in as admin
82
    Then "Join session" "link" should exist
83
 
84
    Examples:
85
      | wait |
86
      | 0    |
87
      | 1    |
88
 
89
  Scenario Outline: A student moderator should be able to start a meeting
90
    Given the following course exists:
91
      | name      | Test course |
92
      | shortname | C1          |
93
    And the following "users" exist:
94
      | username | firstname | lastname | email                 |
95
      | traverst | Terry     | Travers  | t.travers@example.com |
96
    And the following "course enrolments" exist:
97
      | user     | course | role     |
98
      | traverst | C1     | student  |
99
    And the following "activity" exists:
100
      | course     | C1              |
101
      | activity   | bigbluebuttonbn |
102
      | name       | Room recordings |
103
      | idnumber   | Room recordings |
104
      | moderators | <moderators>    |
105
      | wait       | <wait>          |
106
    When I am on the "Room recordings" Activity page logged in as traverst
107
    Then "Join session" "link" should exist
108
 
109
    Examples:
110
      | wait | moderators    |
111
      | 0    | user:traverst |
112
      | 1    | user:traverst |
113
      | 0    | role:student  |
114
      | 1    | role:student  |