[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/grade/tests/behat/ -> grade_letter_boundary_20160518.feature (source)

   1  @core @core_grades
   2  Feature: We can customise the letter boundary of a course.
   3    In order to change the letter boundary of a course
   4    As a teacher
   5    I need to add assessments to the gradebook.
   6  
   7    @javascript
   8    Scenario: I edit the letter boundaries of a course and grade a student.
   9      Given the following "courses" exist:
  10        | fullname | shortname | category |
  11        | Course 1 | C1 | 0 |
  12      And gradebook calculations for the course "C1" are frozen at version "20160518"
  13      And the following "users" exist:
  14        | username | firstname | lastname | email | idnumber | alternatename |
  15        | teacher1 | Teacher | 1 | teacher1@example.com | t1 | Terry         |
  16        | student1 | Student | 1 | student1@example.com | s1 | Sally         |
  17      And the following "course enrolments" exist:
  18        | user | course | role |
  19        | teacher1 | C1 | editingteacher |
  20        | student1 | C1 | student |
  21      And the following "activities" exist:
  22        | activity | course | idnumber | name | intro | grade |
  23        | assign | C1 | a1 | Test assignment one | Submit something! | 100 |
  24      And I log in as "teacher1"
  25      And I follow "Course 1"
  26      And I navigate to "Grades" node in "Course administration"
  27      And I select "Course grade settings" from the "Grade report" singleselect
  28      And I set the following fields to these values:
  29        | Grade display type | Letter |
  30      And I press "Save changes"
  31      And I navigate to "Letters" node in "Grade administration"
  32      And I follow "Edit grade letters"
  33      And I set the following fields to these values:
  34        | id_override | 1 |
  35        | id_gradeboundary10 | 57 |
  36      And I press "Save changes"
  37      And I select "Grader report" from the "Grade report" singleselect
  38      And I press "Turn editing on"
  39      And I give the grade "57" to the user "Student 1" for the grade item "Test assignment one"
  40      And I press "Save changes"
  41      And I press "Turn editing off"
  42      Then the following should exist in the "user-grades" table:
  43        | -1-       | -4- | -5- |
  44        | Student 1 | F   | F   |


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1