1 |
efrain |
1 |
@mod @mod_scorm
|
|
|
2 |
Feature: Viewing scorm reports in separate and visible groups mode
|
|
|
3 |
In order to view reports for large courses
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to filter the users on the reports page by group
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
And the following "courses" exist:
|
|
|
9 |
| fullname | shortname |
|
|
|
10 |
| Test Course 1 | C1 |
|
|
|
11 |
And the following "groups" exist:
|
|
|
12 |
| name | course | idnumber | participation |
|
|
|
13 |
| Group 1 | C1 | G1 | 1 |
|
|
|
14 |
| Group 2 | C1 | G2 | 1 |
|
|
|
15 |
| Group 3 | C1 | G3 | 0 |
|
|
|
16 |
And the following "users" exist:
|
|
|
17 |
| username | firstname | lastname | email |
|
|
|
18 |
| teacher1 | TeacherG1 | 1 | teacher1@example.com |
|
|
|
19 |
| noneditor1 | NoneditorG1 | 1 | noneditor1@example.com |
|
|
|
20 |
| noneditor2 | NoneditorNone | 2 | noneditor2@example.com |
|
|
|
21 |
| user1 | User1G1 | 1 | user1@example.com |
|
|
|
22 |
| user2 | User2G2 | 2 | user2@example.com |
|
|
|
23 |
| user3 | User3None | 3 | user3@example.com |
|
|
|
24 |
| user4 | User4NPgroup | 4 | user4@example.com |
|
|
|
25 |
And the following "course enrolments" exist:
|
|
|
26 |
| user | course | role |
|
|
|
27 |
| teacher1 | C1 | editingteacher |
|
|
|
28 |
| noneditor1 | C1 | teacher |
|
|
|
29 |
| noneditor2 | C1 | teacher |
|
|
|
30 |
| user1 | C1 | student |
|
|
|
31 |
| user2 | C1 | student |
|
|
|
32 |
| user3 | C1 | student |
|
|
|
33 |
| user4 | C1 | student |
|
|
|
34 |
And the following "group members" exist:
|
|
|
35 |
| user | group |
|
|
|
36 |
| teacher1 | G1 |
|
|
|
37 |
| noneditor1 | G1 |
|
|
|
38 |
| user1 | G1 |
|
|
|
39 |
| user2 | G2 |
|
|
|
40 |
| user4 | G3 |
|
|
|
41 |
And the following "activities" exist:
|
|
|
42 |
| activity | course | name | packagefilepath | forcenewattempt | idnumber | groupmode |
|
|
|
43 |
| scorm | C1 | Separate scorm | mod/scorm/tests/packages/singlescobasic.zip | 0 | scorm1 | 1 |
|
|
|
44 |
| scorm | C1 | Visible scorm | mod/scorm/tests/packages/singlescobasic.zip | 0 | scorm2 | 2 |
|
|
|
45 |
|
|
|
46 |
Scenario Outline: Editing teachers should see all groups on the Reports page. Non-editing teachers should see just their own
|
|
|
47 |
groups in Separate groups mode, all groups in Visible groups mode.
|
|
|
48 |
Given I am on the "<scorm>" "scorm activity" page logged in as "<user>"
|
|
|
49 |
And I navigate to "Reports" in current page administration
|
|
|
50 |
Then I <all> see "All participants"
|
|
|
51 |
And I <G1> see "Group 1"
|
|
|
52 |
And I <G2> see "Group 2"
|
|
|
53 |
And I should not see "Group 3"
|
|
|
54 |
And I <user1> see "User1G1"
|
|
|
55 |
And I <user2> see "User2G2"
|
|
|
56 |
And I <user3> see "User3None"
|
|
|
57 |
And I <user4> see "User4NPgroup"
|
|
|
58 |
|
|
|
59 |
Examples:
|
|
|
60 |
| scorm | user | all | G1 | G2 | user1 | user2 | user3 | user4 |
|
|
|
61 |
| scorm1 | teacher1 | should | should | should | should | should | should | should |
|
|
|
62 |
| scorm1 | noneditor1 | should not | should | should not | should | should not | should not | should not |
|
|
|
63 |
| scorm1 | noneditor2 | should | should not | should not | should | should | should | should |
|
|
|
64 |
| scorm2 | teacher1 | should | should | should | should | should | should | should |
|
|
|
65 |
| scorm2 | noneditor1 | should | should | should | should | should not | should not | should not |
|
|
|
66 |
| scorm2 | noneditor2 | should | should | should | should | should not | should not | should not |
|