Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_h5pactivity @core_h5p
2
Feature: Reporting information in the h5p activity
3
  In order to let teachers view a report on the attempts made in the h5p activity
4
  As a teacher
5
  I can access the report page and see the attempts made by the students
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | teacher1 | Teacher   | 1        | teacher1@example.com |
11
      | student1 | Student   | 1        | student1@example.com |
12
      | student2 | Student   | 2        | student2@example.com |
13
    And the following "courses" exist:
14
      | fullname | shortname | category |
15
      | Course 1 | C1        | 0        |
16
    And the following "course enrolments" exist:
17
      | user     | course | role           |
18
      | teacher1 | C1     | editingteacher |
19
      | student1 | C1     | student        |
20
      | student2 | C1     | student        |
21
    # This test is only about reporting, we don't need to specify any valid H5P file for it.
22
    And the following "activity" exists:
23
      | activity | h5pactivity          |
24
      | name     | H5P package          |
25
      | intro    | Test H5P description |
26
      | course   | C1                   |
27
      | idnumber | h5ppackage           |
28
    And the following "mod_h5pactivity > attempts" exist:
29
      | user     | h5pactivity | attempt | interactiontype | rawscore | maxscore | duration | completion | success |
30
      | student1 | H5P package | 1       | compound        | 2        | 2        | 4        | 1          | 1       |
31
      | student2 | H5P package | 1       | choice          | 2        | 2        | 4        | 1          | 1       |
32
      | student1 | H5P package | 2       | compound        | 2        | 2        | 4        | 1          | 1       |
33
 
34
  Scenario: Access the report page and check the label for the attempts and attempt headers
35
    Given I am on the "H5P package" "h5pactivity activity" page logged in as teacher1
36
    When I navigate to "Attempts report" in current page administration
37
    Then I should see "View (2)" in the "Student 1" "table_row"
38
    And I should see "View (1)" in the "Student 2" "table_row"
39
    And I should see "Attempts (3)" in the "table" "table"