Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/grade/tests/behat/grade_scales.feature

    r136 r1331  
    2222    And the following "users" exist:
    2323      | username | firstname | lastname | email            | idnumber |
    24       | teacher1 | Teacher   | 1        | teacher1@asd.com | t1       |
    25       | student1 | Student   | 1        | student1@asd.com | s1       |
    26       | student2 | Student   | 2        | student2@asd.com | s2       |
    27       | student3 | Student   | 3        | student3@asd.com | s3       |
    28       | student4 | Student   | 4        | student4@asd.com | s4       |
    29       | student5 | Student   | 5        | student5@asd.com | s5       |
     24      | teacher1 | Teacher   | 1        | teacher1@example.com | t1       |
     25      | student1 | Student   | 1        | student1@example.com | s1       |
     26      | student2 | Student   | 2        | student2@example.com | s2       |
     27      | student3 | Student   | 3        | student3@example.com | s3       |
     28      | student4 | Student   | 4        | student4@example.com | s4       |
     29      | student5 | Student   | 5        | student5@example.com | s5       |
    3030    And the following "course enrolments" exist:
    3131      | user     | course | role           |
     
    6363    And I press "Save changes"
    6464    And I follow "Course 1"
    65     And I follow "Grades"
     65    And I navigate to "Grades" node in "Course administration"
    6666    And I navigate to "Course grade settings" node in "Grade administration > Setup"
    6767    And I set the field "Show weightings" to "Show"
     
    7171    And I turn editing mode on
    7272
    73   @javascript
    7473  Scenario: Test displaying scales in gradebook in aggregation method Natural
    7574    When I turn editing mode off
     
    8685      | Overall average    | C        | 3.00           | 3.00         |
    8786    And I follow "User report"
    88     And I set the field "Select all or one user" to "Student 3"
    89     And I click on "Select all or one user" "select"
     87    And I select "Student 3" from the "Select all or one user" singleselect
    9088    And the following should exist in the "user-grade" table:
    9189      | Grade item          | Grade | Range | Percentage | Contribution to course total |
     
    9391      | Sub category 1 total      | 3.00  | 0–5   | 60.00 %    | -                            |
    9492      | Course total        | 3.00  | 0–5   | 60.00 %    | -                            |
    95     And I set the field "jump" to "Categories and items"
     93    And I select "Gradebook setup" from the "Grade report" singleselect
    9694    And the following should exist in the "grade_edit_tree_table" table:
    9795      | Name                | Max grade |
     
    10199    And I log out
    102100    And I log in as "student2"
     101    And I follow "Grades" in the user menu
    103102    And I follow "Course 1"
    104     And I follow "Grades"
    105103    And the following should exist in the "user-grade" table:
    106104      | Grade item          | Grade | Range | Percentage | Contribution to course total |
     
    109107      | Course total        | 4.00  | 0–5   | 80.00 %    | -                            |
    110108
    111   @javascript
    112109  Scenario Outline: Test displaying scales in gradebook in all other aggregation methods
    113110    When I follow "Edit   Course 1"
     
    134131      | Overall average    | C        | 3.00           | <overallavg>   |
    135132    And I follow "User report"
    136     And I set the field "Select all or one user" to "Student 3"
    137     And I click on "Select all or one user" "select"
     133    And I select "Student 3" from the "Select all or one user" singleselect
    138134    And the following should exist in the "user-grade" table:
    139135      | Grade item                   | Grade          | Range | Percentage    | Contribution to course total |
     
    141137      | Sub category (<aggregation>) total<aggregation>. | 3.00           | 1–5   | 50.00 %       | -                            |
    142138      | Course total<aggregation>.   | <coursetotal3> | 0–100 | <courseperc3> | -                            |
    143     And I set the field "jump" to "Categories and items"
     139    And I select "Gradebook setup" from the "Grade report" singleselect
    144140    And the following should exist in the "grade_edit_tree_table" table:
    145141      | Name                | Max grade |
     
    149145    And I log out
    150146    And I log in as "student2"
     147    And I follow "Grades" in the user menu
    151148    And I follow "Course 1"
    152     And I follow "Grades"
    153149    And the following should exist in the "user-grade" table:
    154150      | Grade item                   | Grade          | Range | Percentage    | Contribution to course total |
     
    160156      | aggregation                         | coursetotal1 | coursetotal2 | coursetotal3 | coursetotal4 | coursetotal5 |overallavg | courseperc2 | courseperc3 | contrib2 | contrib3 |
    161157      | Mean of grades                      | 100.00       | 75.00        | 50.00        | 25.00        | 0.00         | 50.00     | 75.00 %     | 50.00 %     | 75.00 %  | 50.00 %  |
    162       | Weighted mean of grades             | -            | -            | -            | -            | -            | -         | -           | -           | 0.00 %   | 0.00 %   |
     158      | Weighted mean of grades             | 100.00       | 75.00        | 50.00        | 25.00        | 0.00         | 50.00     | 75.00 %     | 50.00 %     | 75.00 %  | 50.00 %  |
    163159      | Simple weighted mean of grades      | 100.00       | 75.00        | 50.00        | 25.00        | 0.00         | 50.00     | 75.00 %     | 50.00 %     | 75.00 %  | 50.00 %  |
    164160      | Mean of grades (with extra credits) | 100.00       | 75.00        | 50.00        | 25.00        | 0.00         | 50.00     | 75.00 %     | 50.00 %     | 75.00 %  | 50.00 %  |
Note: See TracChangeset for help on using the changeset viewer.