Created
September 24, 2014 06:08
-
-
Save marinaglancy/00c8c25a26c0d45693fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @core @core_grades | |
| Feature: Test all aggregation methods in one course | |
| In order to review all aggregation methods | |
| As an teacher | |
| I need to be able to view a course with all aggregation methods | |
| Background: | |
| Given I log in as "admin" | |
| And I set the following administration settings values: | |
| | grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural | | |
| And I log out | |
| And the following "courses" exist: | |
| | fullname | shortname | category | groupmode | | |
| | Course 1 | C1 | 0 | 1 | | |
| And the following "users" exist: | |
| | username | firstname | lastname | email | idnumber | | |
| | teacher1 | Teacher | 1 | teacher1@asd.com | t1 | | |
| | student1 | Student | 1 | student1@asd.com | s1 | | |
| And the following "course enrolments" exist: | |
| | user | course | role | | |
| | teacher1 | C1 | editingteacher | | |
| | student1 | C1 | student | | |
| And the following "grade categories" exist: | |
| | fullname | aggregation | course | | |
| | one GRADE_AGGREGATE_MEAN | 0 | C1 | | |
| | two GRADE_AGGREGATE_WEIGHTED_MEAN | 10 | C1 | | |
| | three GRADE_AGGREGATE_WEIGHTED_MEAN2 | 11 | C1 | | |
| | four GRADE_AGGREGATE_EXTRACREDIT_MEAN | 12 | C1 | | |
| | five GRADE_AGGREGATE_MEDIAN | 2 | C1 | | |
| | six GRADE_AGGREGATE_MIN | 4 | C1 | | |
| | seven GRADE_AGGREGATE_MAX | 6 | C1 | | |
| | eight GRADE_AGGREGATE_MODE | 8 | C1 | | |
| | nine GRADE_AGGREGATE_SUM | 13 | C1 | | |
| And the following "activities" exist: | |
| | activity | course | idnumber | name | intro | gradecategory | grade | | |
| | assign | C1 | a11 | Test assignment one one | Intro | one GRADE_AGGREGATE_MEAN | 200 | | |
| | assign | C1 | a12 | Test assignment one two | Intro | one GRADE_AGGREGATE_MEAN | 100 | | |
| | assign | C1 | a13 | Test assignment one three | Into | one GRADE_AGGREGATE_MEAN | 150 | | |
| | assign | C1 | a21 | Test assignment two one | Intro | two GRADE_AGGREGATE_WEIGHTED_MEAN | 200 | | |
| | assign | C1 | a22 | Test assignment two two | Intro | two GRADE_AGGREGATE_WEIGHTED_MEAN | 100 | | |
| | assign | C1 | a23 | Test assignment two three | Into | two GRADE_AGGREGATE_WEIGHTED_MEAN | 150 | | |
| | assign | C1 | a31 | Test assignment three one | Intro | three GRADE_AGGREGATE_WEIGHTED_MEAN2 | 200 | | |
| | assign | C1 | a32 | Test assignment three two | Intro | three GRADE_AGGREGATE_WEIGHTED_MEAN2 | 100 | | |
| | assign | C1 | a33 | Test assignment three three | Into | three GRADE_AGGREGATE_WEIGHTED_MEAN2 | 150 | | |
| | assign | C1 | a41 | Test assignment four one | Intro | four GRADE_AGGREGATE_EXTRACREDIT_MEAN | 200 | | |
| | assign | C1 | a42 | Test assignment four two | Intro | four GRADE_AGGREGATE_EXTRACREDIT_MEAN | 100 | | |
| | assign | C1 | a43 | Test assignment four three | Into | four GRADE_AGGREGATE_EXTRACREDIT_MEAN | 150 | | |
| | assign | C1 | a51 | Test assignment five one | Intro | five GRADE_AGGREGATE_MEDIAN | 200 | | |
| | assign | C1 | a52 | Test assignment five two | Intro | five GRADE_AGGREGATE_MEDIAN | 100 | | |
| | assign | C1 | a53 | Test assignment five three | Into | five GRADE_AGGREGATE_MEDIAN | 150 | | |
| | assign | C1 | a61 | Test assignment six one | Intro | six GRADE_AGGREGATE_MIN | 200 | | |
| | assign | C1 | a62 | Test assignment six two | Intro | six GRADE_AGGREGATE_MIN | 100 | | |
| | assign | C1 | a63 | Test assignment six three | Into | six GRADE_AGGREGATE_MIN | 150 | | |
| | assign | C1 | a71 | Test assignment seven one | Intro | seven GRADE_AGGREGATE_MAX | 200 | | |
| | assign | C1 | a72 | Test assignment seven two | Intro | seven GRADE_AGGREGATE_MAX | 100 | | |
| | assign | C1 | a73 | Test assignment seven three | Into | seven GRADE_AGGREGATE_MAX | 150 | | |
| | assign | C1 | a81 | Test assignment eight one | Intro | eight GRADE_AGGREGATE_MODE | 200 | | |
| | assign | C1 | a82 | Test assignment eight two | Intro | eight GRADE_AGGREGATE_MODE | 100 | | |
| | assign | C1 | a83 | Test assignment eight three | Into | eight GRADE_AGGREGATE_MODE | 150 | | |
| | assign | C1 | a91 | Test assignment nine one | Intro | nine GRADE_AGGREGATE_SUM | 200 | | |
| | assign | C1 | a92 | Test assignment nine two | Intro | nine GRADE_AGGREGATE_SUM | 100 | | |
| | assign | C1 | a93 | Test assignment nine three | Into | nine GRADE_AGGREGATE_SUM | 150 | | |
| @javascript | |
| Scenario: | |
| When I log in as "teacher1" | |
| And I follow "Course 1" | |
| And I navigate to "Grades" node in "Course administration" | |
| And I wait "10" seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment