"Fossies" - the Fresh Open Source Software Archive

Member "moodle/grade/grading/form/rubric/tests/behat/negative_points.feature" (6 Sep 2019, 3215 Bytes) of package /linux/www/moodle-3.6.6.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "negative_points.feature": 3.6.5_vs_3.6.6.

    1 @gradingform @gradingform_rubric @javascript
    2 Feature: Rubrics can have levels with negative scores
    3   In order to use and refine rubrics to grade students
    4   As a teacher
    5   I need to be able to penalise for very wrong submissions
    6 
    7   Scenario: Using negative levels in rubrics
    8     Given the following "users" exist:
    9       | username | firstname | lastname | email |
   10       | teacher1 | Teacher | 1 | teacher1@example.com |
   11       | student1 | Student | 1 | student1@example.com |
   12       | student2 | Student | 2 | student2@example.com |
   13       | student3 | Student | 3 | student3@example.com |
   14     And the following "courses" exist:
   15       | fullname | shortname | format |
   16       | Course 1 | C1 | topics |
   17     And the following "course enrolments" exist:
   18       | user | course | role |
   19       | teacher1 | C1 | editingteacher |
   20       | student1 | C1 | student |
   21       | student2 | C1 | student |
   22       | student3 | C1 | student |
   23     And the following "scales" exist:
   24       | name         | scale                                     |
   25       | Test scale 1 | Disappointing, Good, Very good, Excellent |
   26     And the following "activities" exist:
   27       | activity   | name              | intro | course | idnumber    | grade   | advancedgradingmethod_submissions |
   28       | assign     | Test assignment 1 | Test  | C1     | assign1     | 100     | rubric                            |
   29     And I change window size to "large"
   30     When I log in as "teacher1"
   31     And I am on "Course 1" course homepage with editing mode on
   32     And I go to "Test assignment 1" advanced grading definition page
   33     And I set the following fields to these values:
   34       | Name | Assignment 1 rubric |
   35       | Description | Rubric test description |
   36     And I define the following rubric:
   37       | Criterion 1 | Did not try | -11 | Level 12 | 25 | Level 13 | 40 | Level 14  | 50  |
   38       | Criterion 2 | Very bad    | -20 | Level 22 | 25 | Level 23 | 30 |           |     |
   39       | Criterion 3 | Level 31    | 10  | Level 32 | 20 |          |    |           |     |
   40     And I press "Save rubric and make it ready"
   41     # Grading a student.
   42     And I go to "Student 1" "Test assignment 1" activity advanced grading page
   43     And I grade by filling the rubric with:
   44       | Criterion 1 | 25 |  |
   45       | Criterion 2 | 30 |  |
   46       | Criterion 3 | 10 |  |
   47     And I save the advanced grading form
   48     And I go to "Student 2" "Test assignment 1" activity advanced grading page
   49     And I grade by filling the rubric with:
   50       | Criterion 1 | 25 |  |
   51       | Criterion 2 | -20 |  |
   52       | Criterion 3 | 10 |  |
   53     And I save the advanced grading form
   54     And I go to "Student 3" "Test assignment 1" activity advanced grading page
   55     And I grade by filling the rubric with:
   56       | Criterion 1 | -11 |  |
   57       | Criterion 2 | -20 |  |
   58       | Criterion 3 | 10 |  |
   59     And I save the advanced grading form
   60     # Checking that the user grade is correct.
   61     And I should see "65.00" in the "student1@example.com" "table_row"
   62     And I should see "15.00" in the "student2@example.com" "table_row"
   63     And I should see "0.00" in the "student3@example.com" "table_row"
   64     And I should not see "-" in the "student3@example.com" "table_row"
   65     And I log out