Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@report @report_loglive
2
Feature: In a report, admin can see loglive data
3
  In order see loglive data
4
  As an admin
5
  I need to view loglive report and see if the live update feature works
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category | groupmode |
10
      | Course 1 | C1        | 0        | 1         |
11
    And the following "users" exist:
12
      | username | firstname | lastname    | email                | idnumber | middlename | alternatename | firstnamephonetic | lastnamephonetic |
13
      | student1 | Grainne   | Beauchamp   | student1@example.com | s1       | Ann        | Jill          | Gronya            | Beecham          |
14
    And the following "course enrolments" exist:
15
      | user | course | role |
16
      | student1 | C1 | student |
17
    And the following config values are set as admin:
18
      | fullnamedisplay | firstname |
19
      | alternativefullnameformat | middlename, alternatename, firstname, lastname |
20
    And I log in as "admin"
21
    And I add a data activity to course "Course 1" section "3" and I fill the form with:
22
      | Name | Test name |
23
      | Description | Test database description |
24
 
25
  @javascript
26
  Scenario: Check loglive report entries and make sure the report works for standard reader
27
    Given I navigate to "Reports > Live logs" in site administration
28
    When I should see "Course module created"
29
    Then I should see "Test name"
30
 
31
  @javascript @_switch_window
32
  Scenario: Check loglive report entries and make sure the pause/resume button works for standard reader along with ajax calls
33
    Given I am on site homepage
34
    When I navigate to "Reports > Live logs" in site administration
35
    And I should not see "Test name2"
36
    And I press "Pause live updates"
37
    And I follow "Course module created"
38
    And I switch to "action" window
39
    And I am on "Course 1" course homepage
40
    And I change window size to "large"
41
    And I reload the page
42
    And I add a data activity to course "Course 1" section "3" and I fill the form with:
43
      | Name | Test name2 |
44
      | Description | Test database description |
45
    And I switch to the main window
46
    And I wait "8" seconds
47
    Then I should not see "Test name2"
48
    And I press "Resume live updates"
49
    And I wait "8" seconds
50
    And I should see "Test name2"
51
 
52
  @javascript
53
  Scenario: Check course loglive report entries for a user
54
    Given I log out
55
    And I am on the "Test name" "data activity" page logged in as student1
56
    And I log out
57
    And I am on the "Course 1" Course page logged in as admin
58
    When I navigate to "Reports > Live logs" in site administration
59
    Then I should see "Course module viewed"
60
    And I should see "Test name"
61
    And I should see "Ann, Jill, Grainne, Beauchamp"