Proyectos de Subversion Moodle

Rev

Rev 11 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_grades
2
Feature: Regrading grades does not unnecessarily mark some as overriden
3
  In order to regrade a grade item
4
  As an admin
5
  I need to keep the overridden status of all grades
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category | format |
10
      | Course 1 | C1 | 0 | topics |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email | idnumber |
13
      | student1 | Student | 1 | student1@example.com | s1 |
14
      | student2 | Student | 2 | student2@example.com | s2 |
15
    And the following "course enrolments" exist:
16
      | user | course | role |
17
      | student1 | C1 | student |
18
      | student2 | C1 | student |
19
    And the following "activities" exist:
20
      | activity | course | idnumber | name | intro |
21
      | assign | C1 | assign1 | Assignment 1 | Assignment 1 intro |
22
    And I log in as "admin"
23
    And I navigate to "Grades > Grade category settings" in site administration
24
    And I set the field "Available aggregation types" to "Weighted mean of grades"
25
    And I press "Save changes"
26
    And I am on the "Assignment 1" "assign activity" page
1441 ariadna 27
    And I go to "Student 1" "Assignment 1" activity advanced grading page
1 efrain 28
    And I set the field "Grade out of 100" to "80"
29
    And I press "Save and show next"
30
    And I set the field "Grade out of 100" to "60"
31
    And I press "Save changes"
32
    And I am on the "Course 1" "grades > Grader report > View" page
33
    And the following should exist in the "gradereport-grader-table" table:
11 efrain 34
      | -1-                  | -3-          | -4-          |
35
      | First name           | Assignment 1 | Course total |
1 efrain 36
      | Student 1            | 80.00        | 80.00        |
37
      | Student 2            | 60.00        | 60.00        |
38
    And I turn editing mode on
39
    And I give the grade "80.00" to the user "Student 2" for the grade item "Course total"
40
    And I press "Save changes"
41
    And I navigate to "Setup > Gradebook setup" in the course gradebook
42
    And I set the following settings for grade item "Course 1" of type "course" on "setup" page:
43
      | Aggregation               | Weighted mean of grades |
44
      | Rescale overridden grades | Yes                     |
45
      | Maximum grade             | 200                     |
46
    And I press "Save changes"
47
 
48
  @javascript
49
  Scenario: Confirm regrading did not overwrite overridden status
50
    Given I navigate to "View > Grader report" in the course gradebook
51
    Then "td.overridden" "css_element" should not exist in the "Student 1" "table_row"
52
    And "td.overridden" "css_element" should exist in the "Student 2" "table_row"
53
 
54
  @javascript
55
  Scenario: Confirm overridden course total does not get regraded when activity grade is changed
56
    Given I am on the "Assignment 1" "assign activity" page
1441 ariadna 57
    And I go to "Student 1" "Assignment 1" activity advanced grading page
1 efrain 58
    And I set the field "Grade out of 100" to "90"
59
    And I press "Save and show next"
60
    And I set the field "Grade out of 100" to "70"
61
    And I press "Save changes"
62
    When I am on the "Course 1" "grades > Grader report > View" page
63
    And I turn editing mode off
64
    Then the following should exist in the "gradereport-grader-table" table:
11 efrain 65
      | -1-                  | -3-          | -4-          |
66
      | First name           | Assignment 1 | Course total |
1 efrain 67
      | Student 1            | 90.00        | 180.00       |
68
      | Student 2            | 70.00        | 160.00       |