Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_lesson
2
Feature: In a lesson activity, teachers can view detailed statistics report
3
  To review detailed statistics in a lesson
4
  As a Teacher
5
  I need to ve able to navigate to detailed statistics report page.
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
    And the following "activities" exist:
22
      | activity   | name             | course | idnumber    | retake |
23
      | lesson     | Test lesson name | C1     | lesson1     | 1      |
24
    And I am on the "Test lesson name" "lesson activity" page logged in as teacher1
25
 
26
  Scenario: View detailed statistics in a lesson when empty string is given as answer
27
    Given the following "mod_lesson > page" exist:
28
      | lesson           | qtype   | title              | content          |
29
      | Test lesson name | numeric | Numerical question | What is 1 + 0.5? |
30
    And the following "mod_lesson > answer" exist:
31
      | page               | answer | jumpto          | score |
32
      | Numerical question | 1.5    | End of lesson   | 1     |
33
    When I am on the "Test lesson name" "lesson activity" page logged in as student1
34
    And I press "Submit"
35
    And I log out
36
    And I am on the "Test lesson name" "lesson activity" page logged in as student2
37
    And I set the field "Your answer" to "1.5"
38
    And I press "Submit"
39
    And I am on the "Test lesson name" "lesson activity" page logged in as teacher1
40
    And I navigate to "Reports" in current page administration
41
    And I select "Detailed statistics" from the "jump" singleselect
42
    Then I should see "50% entered this."