Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 50... Línea 50...
50
  Scenario: View the report as the teacher themselves
50
  Scenario: View the report as the teacher themselves
51
    Given the following "activities" exist:
51
    Given the following "activities" exist:
52
      | activity | course | idnumber | name          | intro             | grade |
52
      | activity | course | idnumber | name          | intro             | grade |
53
      | quiz     | C1     | q1       | Test quiz one | Submit something! | 100   |
53
      | quiz     | C1     | q1       | Test quiz one | Submit something! | 100   |
54
    When I navigate to "View > User report" in the course gradebook
54
    When I navigate to "View > User report" in the course gradebook
55
    And I click on "Student 1" in the "user" search widget
55
    And I click on "Student 1" in the "Search users" search combo box
56
    And I should see "Course 1 & '\""
56
    And I should see "Course 1 & '\""
57
    And I should not see "Course 1 & '\""
57
    And I should not see "Course 1 & '\""
58
    And I set the field "View report as" to "Myself"
58
    And I set the field "View report as" to "Myself"
59
    Then the following should exist in the "user-grade" table:
59
    Then the following should exist in the "user-grade" table:
60
      | Grade item              | Calculated weight | Grade  | Range | Percentage | Contribution to course total |
60
      | Grade item              | Calculated weight | Grade  | Range | Percentage | Contribution to course total |
Línea 75... Línea 75...
75
  Scenario: View the report as the student from both the teachers and students perspective
75
  Scenario: View the report as the student from both the teachers and students perspective
76
    Given the following "activities" exist:
76
    Given the following "activities" exist:
77
      | activity | course | idnumber | name          | intro             | grade |
77
      | activity | course | idnumber | name          | intro             | grade |
78
      | quiz     | C1     | q1       | Test quiz one | Submit something! | 100   |
78
      | quiz     | C1     | q1       | Test quiz one | Submit something! | 100   |
79
    When I navigate to "View > User report" in the course gradebook
79
    When I navigate to "View > User report" in the course gradebook
80
    And I click on "Student 1" in the "user" search widget
80
    And I click on "Student 1" in the "Search users" search combo box
81
    And I set the field "View report as" to "User"
81
    And I set the field "View report as" to "User"
82
    Then the following should exist in the "user-grade" table:
82
    Then the following should exist in the "user-grade" table:
83
      | Grade item              | Calculated weight | Grade  | Range | Percentage | Contribution to course total |
83
      | Grade item              | Calculated weight | Grade  | Range | Percentage | Contribution to course total |
84
      | Test assignment one     | -                 | 80.00  | 0–100 | 80.00 %    | -                            |
84
      | Test assignment one     | -                 | 80.00  | 0–100 | 80.00 %    | -                            |
85
      | Test assignment two     | -                 | 35.00  | 0–100 | 35.00 %    | -                            |
85
      | Test assignment two     | -                 | 35.00  | 0–100 | 35.00 %    | -                            |
Línea 124... Línea 124...
124
  Scenario: View the report as the student from both the teachers and students perspective with totals excluding hidden
124
  Scenario: View the report as the student from both the teachers and students perspective with totals excluding hidden
125
    Given I navigate to "Setup > Course grade settings" in the course gradebook
125
    Given I navigate to "Setup > Course grade settings" in the course gradebook
126
    And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals excluding hidden items"
126
    And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals excluding hidden items"
127
    And I press "Save changes"
127
    And I press "Save changes"
128
    And I navigate to "View > User report" in the course gradebook
128
    And I navigate to "View > User report" in the course gradebook
129
    When I click on "Student 1" in the "user" search widget
129
    When I click on "Student 1" in the "Search users" search combo box
130
    And I set the field "View report as" to "User"
130
    And I set the field "View report as" to "User"
131
    Then the following should exist in the "user-grade" table:
131
    Then the following should exist in the "user-grade" table:
132
      | Grade item              | Calculated weight | Grade  | Range | Percentage | Contribution to course total |
132
      | Grade item              | Calculated weight | Grade  | Range | Percentage | Contribution to course total |
133
      | Test assignment one     | 50.00 %           | 80.00  | 0–100 | 80.00 %    | 26.67 %                      |
133
      | Test assignment one     | 50.00 %           | 80.00  | 0–100 | 80.00 %    | 26.67 %                      |
134
      | Test assignment two     | 50.00 %           | 35.00  | 0–100 | 35.00 %    | 11.67 %                      |
134
      | Test assignment two     | 50.00 %           | 35.00  | 0–100 | 35.00 %    | 11.67 %                      |
Línea 161... Línea 161...
161
  Scenario: View the report as the student from both the teachers and students perspective with totals including hidden
161
  Scenario: View the report as the student from both the teachers and students perspective with totals including hidden
162
    Given I navigate to "Setup > Course grade settings" in the course gradebook
162
    Given I navigate to "Setup > Course grade settings" in the course gradebook
163
    And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals including hidden items"
163
    And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals including hidden items"
164
    And I press "Save changes"
164
    And I press "Save changes"
165
    And I navigate to "View > User report" in the course gradebook
165
    And I navigate to "View > User report" in the course gradebook
166
    When I click on "Student 1" in the "user" search widget
166
    When I click on "Student 1" in the "Search users" search combo box
167
    And I set the field "View report as" to "User"
167
    And I set the field "View report as" to "User"
168
    Then the following should exist in the "user-grade" table:
168
    Then the following should exist in the "user-grade" table:
169
      | Grade item              | Calculated weight | Grade  | Range | Percentage | Contribution to course total |
169
      | Grade item              | Calculated weight | Grade  | Range | Percentage | Contribution to course total |
170
      | Test assignment one     | 50.00 %           | 80.00  | 0–100 | 80.00 %    | 13.33 %                      |
170
      | Test assignment one     | 50.00 %           | 80.00  | 0–100 | 80.00 %    | 13.33 %                      |
171
      | Test assignment two     | 50.00 %           | 35.00  | 0–100 | 35.00 %    | 5.83 %                       |
171
      | Test assignment two     | 50.00 %           | 35.00  | 0–100 | 35.00 %    | 5.83 %                       |
Línea 202... Línea 202...
202
    And I am on the "C1" "Course" page logged in as "teacher1"
202
    And I am on the "C1" "Course" page logged in as "teacher1"
203
    And I navigate to "Setup > Course grade settings" in the course gradebook
203
    And I navigate to "Setup > Course grade settings" in the course gradebook
204
    And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals excluding hidden items"
204
    And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals excluding hidden items"
205
    And I press "Save changes"
205
    And I press "Save changes"
206
    And I navigate to "View > User report" in the course gradebook
206
    And I navigate to "View > User report" in the course gradebook
207
    When I click on "Student 1" in the "user" search widget
207
    When I click on "Student 1" in the "Search users" search combo box
208
    And I set the field "View report as" to "User"
208
    And I set the field "View report as" to "User"
209
    Then the following should exist in the "user-grade" table:
209
    Then the following should exist in the "user-grade" table:
210
      | Grade item              | Calculated weight | Grade  | Range | Percentage | Contribution to course total |
210
      | Grade item              | Calculated weight | Grade  | Range | Percentage | Contribution to course total |
211
      | Test assignment one     | 50.00 %           | 80.00  | 0–100 | 80.00 %    | 13.33 %                      |
211
      | Test assignment one     | 50.00 %           | 80.00  | 0–100 | 80.00 %    | 13.33 %                      |
212
      | Test assignment two     | 50.00 %           | 35.00  | 0–100 | 35.00 %    | 5.83 %                       |
212
      | Test assignment two     | 50.00 %           | 35.00  | 0–100 | 35.00 %    | 5.83 %                       |