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: Teachers can review student progress on all lessons in a course by viewing the overview report
3
  As a Teacher
4
  I need to view the overview report for one of my students.
5
 
6
  Background:
7
    Given the following "users" exist:
8
      | username | firstname | lastname | email |
9
      | teacher1 | Teacher | 1 | teacher1@example.com |
10
      | student1 | Student | 1 | student1@example.com |
11
    And the following "courses" exist:
12
      | fullname | shortname | category |
13
      | Course 1 | C1 | 0 |
14
    And the following "course enrolments" exist:
15
      | user | course | role |
16
      | teacher1 | C1 | editingteacher |
17
      | student1 | C1 | student |
18
    And the following "activity" exists:
19
      | activity      | lesson                  |
20
      | course        | C1                      |
21
      | idnumber      | 0001                    |
22
      | name          | Test lesson name        |
23
      | retake        | 1                       |
24
    And I am on the "Test lesson name" "lesson activity" page logged in as teacher1
25
 
26
  Scenario: View student progress for lesson that was never attempted
27
    Given the following "mod_lesson > pages" exist:
28
      | lesson           | qtype     | title                 | content                   |
29
      | Test lesson name | content   | First page name       | First page contents       |
30
      | Test lesson name | truefalse | True/false question 1 | Paper is made from trees. |
31
    And the following "mod_lesson > answers" exist:
32
      | page                  | answer    | response | jumpto    | score |
33
      | First page name       | Next page |          | Next page | 0     |
34
      | True/false question 1 | True      | Correct  | Next page | 1     |
35
      | True/false question 1 | False     | Wrong    | This page | 0     |
36
    When I log in as "teacher1"
37
    And I am on "Course 1" course homepage
38
    And I navigate to course participants
39
    And I follow "Student 1"
40
    And I follow "Outline report"
41
    Then I should see "No attempts have been made on this lesson"
42
 
43
  Scenario: View student progress for an incomplete lesson containing both content and question pages
44
    Given the following "mod_lesson > pages" exist:
45
      | lesson           | qtype     | title                 | content                   |
46
      | Test lesson name | content   | First page name       | First page contents       |
47
      | Test lesson name | content   | Second page name      | Second page contents      |
48
      | Test lesson name | truefalse | True/false question 1 | Paper is made from trees. |
49
    And the following "mod_lesson > answers" exist:
50
      | page                  | answer        | response | jumpto        | score |
51
      | First page name       | Next page     |          | Next page     | 0     |
52
      | Second page name      | Previous page |          | Previous page | 0     |
53
      | Second page name      | Next page     |          | Next page     | 0     |
54
      | True/false question 1 | True          | Correct  | Next page     | 1     |
55
      | True/false question 1 | False         | Wrong    | This page     | 0     |
56
    When I am on the "Test lesson name" "lesson activity" page logged in as student1
57
    And I should see "First page contents"
58
    And I press "Next page"
59
    Then I am on the "Course 1" course page logged in as teacher1
60
    And I navigate to course participants
61
    And I follow "Student 1"
62
    And I follow "Outline report"
63
    And I should see "Lesson has been started, but not yet completed"
64
 
65
  Scenario: View student progress for a lesson containing both content and question pages
66
    Given the following "mod_lesson > pages" exist:
67
      | lesson           | qtype     | title                 | content                   |
68
      | Test lesson name | content   | First page name       | First page contents       |
69
      | Test lesson name | content   | Second page name      | Second page contents      |
70
      | Test lesson name | truefalse | True/false question 1 | Paper is made from trees. |
71
    And the following "mod_lesson > answers" exist:
72
      | page                  | answer        | response | jumpto        | score |
73
      | First page name       | Next page     |          | Next page     | 0     |
74
      | Second page name      | Previous page |          | Previous page | 0     |
75
      | Second page name      | Next page     |          | Next page     | 0     |
76
      | True/false question 1 | True          | Correct  | Next page     | 1     |
77
      | True/false question 1 | False         | Wrong    | This page     | 0     |
78
    When I am on the "Test lesson name" "lesson activity" page logged in as student1
79
    And I should see "First page contents"
80
    And I press "Next page"
81
    And I should see "Second page contents"
82
    And I press "Next page"
83
    And I should see "Paper is made from trees."
84
    And I set the following fields to these values:
85
      | True | 1 |
86
    And I press "Submit"
87
    And I press "Continue"
88
    And I should see "Congratulations - end of lesson reached"
89
    Then I am on the "Course 1" course page logged in as teacher1
90
    And I navigate to course participants
91
    And I follow "Student 1"
92
    And I follow "Outline report"
93
    And I should see "Grade: 100.00 / 100.00"
94
 
95
  Scenario: View student attempts in a lesson containing only content pages
96
    Given the following "mod_lesson > pages" exist:
97
      | lesson           | qtype     | title            | content                   |
98
      | Test lesson name | content   | First page name  | First page contents       |
99
      | Test lesson name | content   | Second page name | Second page contents      |
100
    And the following "mod_lesson > answers" exist:
101
      | page                  | answer        | jumpto        | score |
102
      | First page name       | Next page     | Next page     | 0     |
103
      | Second page name      | Previous page | Previous page | 0     |
104
      | Second page name      | End of lesson | End of lesson | 0     |
105
    When I am on the "Test lesson name" "lesson activity" page logged in as student1
106
    And I should see "First page contents"
107
    And I press "Next page"
108
    And I should see "Second page contents"
109
    And I press "End of lesson"
110
    Then I am on the "Course 1" course page logged in as teacher1
111
    And I navigate to course participants
112
    And I follow "Student 1"
113
    And I follow "Outline report"
114
    And I should see "Completed"