[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/grade/grading/form/rubric/tests/behat/ -> edit_rubric.feature (source)

   1  @gradingform @gradingform_rubric
   2  Feature: Rubrics can be created and edited
   3    In order to use and refine rubrics to grade students
   4    As a teacher
   5    I need to edit previously used rubrics
   6  
   7    @javascript
   8    Scenario: I can use rubrics to grade and edit them later updating students grades
   9      Given the following "users" exist:
  10        | username | firstname | lastname | email |
  11        | teacher1 | Teacher | 1 | teacher1@example.com |
  12        | student1 | Student | 1 | student1@example.com |
  13      And the following "courses" exist:
  14        | fullname | shortname | format |
  15        | Course 1 | C1 | topics |
  16      And the following "course enrolments" exist:
  17        | user | course | role |
  18        | teacher1 | C1 | editingteacher |
  19        | student1 | C1 | student |
  20      And I log in as "teacher1"
  21      And I follow "Course 1"
  22      And I turn editing mode on
  23      And I add a "Assignment" to section "1" and I fill the form with:
  24        | Assignment name | Test assignment 1 name |
  25        | Description | Test assignment description |
  26        | Grading method | Rubric |
  27      When I go to "Test assignment 1 name" advanced grading definition page
  28      # Defining a rubric.
  29      And I set the following fields to these values:
  30        | Name | Assignment 1 rubric |
  31        | Description | Rubric test description |
  32      And I define the following rubric:
  33        | TMP Criterion 1 | TMP Level 11 | 11 | TMP Level 12 | 12 |
  34        | TMP Criterion 2 | TMP Level 21 | 21 | TMP Level 22 | 22 |
  35        | TMP Criterion 3 | TMP Level 31 | 31 | TMP Level 32 | 32 |
  36        | TMP Criterion 4 | TMP Level 41 | 41 | TMP Level 42 | 42 |
  37      # Checking that only the last ones are saved.
  38      And I define the following rubric:
  39        | Criterion 1 | Level 11 | 1  | Level 12 | 20 | Level 13 | 40 | Level 14  | 50  |
  40        | Criterion 2 | Level 21 | 10 | Level 22 | 20 | Level 23 | 30 |           |     |
  41        | Criterion 3 | Level 31 | 5  | Level 32 | 20 |          |    |           |     |
  42      And I press "Save as draft"
  43      And I go to "Test assignment 1 name" advanced grading definition page
  44      And I click on "Move down" "button" in the "Criterion 1" "table_row"
  45      And I press "Save rubric and make it ready"
  46      Then I should see "Ready for use"
  47      # Grading two students.
  48      And I go to "Student 1" "Test assignment 1 name" activity advanced grading page
  49      And I grade by filling the rubric with:
  50        | Criterion 1 | 50 | Very good |
  51      And I press "Save changes"
  52      # Checking that it complains if you don't select a level for each criterion.
  53      And I should see "Please choose something for each criterion"
  54      And I grade by filling the rubric with:
  55        | Criterion 1 | 50 | Very good |
  56        | Criterion 2 | 10 | Mmmm, you can do it better |
  57        | Criterion 3 | 5 | Not good |
  58      And I complete the advanced grading form with these values:
  59        | Feedback comments | In general... work harder... |
  60      # Checking that the user grade is correct.
  61      And I should see "58.33" in the "Student 1" "table_row"
  62      # Updating the user grade.
  63      And I go to "Student 1" "Test assignment 1 name" activity advanced grading page
  64      And I grade by filling the rubric with:
  65        | Criterion 1 | 20 | Bad, I changed my mind |
  66        | Criterion 2 | 10 | Mmmm, you can do it better |
  67        | Criterion 3 | 5 | Not good |
  68      #And the level with "50" points was previously selected for the rubric criterion "Criterion 1"
  69      #And the level with "20" points is selected for the rubric criterion "Criterion 1"
  70      And I save the advanced grading form
  71      And I should see "22.62" in the "Student 1" "table_row"
  72      And I log out
  73      # Viewing it as a student.
  74      And I log in as "student1"
  75      And I follow "Course 1"
  76      And I follow "Test assignment 1 name"
  77      And I should see "22.62" in the ".feedback" "css_element"
  78      And I should see "Rubric test description" in the ".feedback" "css_element"
  79      And I should see "In general... work harder..."
  80      And the level with "10" points is selected for the rubric criterion "Criterion 2"
  81      And the level with "20" points is selected for the rubric criterion "Criterion 1"
  82      And the level with "5" points is selected for the rubric criterion "Criterion 3"
  83      And I log out
  84      And I log in as "teacher1"
  85      And I follow "Course 1"
  86      # Editing a rubric definition without regrading students.
  87      And I go to "Test assignment 1 name" advanced grading definition page
  88      And "Save as draft" "button" should not exist
  89      And I click on "Move up" "button" in the "Criterion 1" "table_row"
  90      And I replace "Level 11" rubric level with "Level 11 edited" in "Criterion 1" criterion
  91      And I press "Save"
  92      And I should see "You are about to save changes to a rubric that has already been used for grading."
  93      And I set the field "menurubricregrade" to "Do not mark for regrade"
  94      And I press "Continue"
  95      And I log out
  96      # Check that the student still sees the grade.
  97      And I log in as "student1"
  98      And I follow "Course 1"
  99      And I follow "Test assignment 1 name"
 100      And I should see "22.62" in the ".feedback" "css_element"
 101      And the level with "20" points is selected for the rubric criterion "Criterion 1"
 102      And I log out
 103      # Editing a rubric with significant changes.
 104      And I log in as "teacher1"
 105      And I follow "Course 1"
 106      And I go to "Test assignment 1 name" advanced grading definition page
 107      And I click on "Move down" "button" in the "Criterion 2" "table_row"
 108      And I replace "1" rubric level with "11" in "Criterion 1" criterion
 109      And I press "Save"
 110      And I should see "You are about to save significant changes to a rubric that has already been used for grading. The gradebook value will be unchanged, but the rubric will be hidden from students until their item is regraded."
 111      And I press "Continue"
 112      And I log out
 113      # Check that the student doesn't see the grade.
 114      And I log in as "student1"
 115      And I follow "Course 1"
 116      And I follow "Test assignment 1 name"
 117      And I should see "22.62" in the ".feedback" "css_element"
 118      And the level with "20" points is not selected for the rubric criterion "Criterion 1"
 119      And I log out
 120      # Regrade student.
 121      And I log in as "teacher1"
 122      And I follow "Course 1"
 123      And I follow "Test assignment 1 name"
 124      And I go to "Student 1" "Test assignment 1 name" activity advanced grading page
 125      And I should see "The rubric definition was changed after this student had been graded. The student can not see this rubric until you check the rubric and update the grade."
 126      And I save the advanced grading form
 127      And I log out
 128      # Check that the student sees the grade again.
 129      And I log in as "student1"
 130      And I follow "Course 1"
 131      And I follow "Test assignment 1 name"
 132      And I should see "12.16" in the ".feedback" "css_element"
 133      And the level with "20" points is not selected for the rubric criterion "Criterion 1"
 134      # Hide all rubric info for students
 135      And I log out
 136      And I log in as "teacher1"
 137      And I follow "Course 1"
 138      And I go to "Test assignment 1 name" advanced grading definition page
 139      And I set the field "Allow users to preview rubric used in the module (otherwise rubric will only become visible after grading)" to ""
 140      And I set the field "Display rubric description during evaluation" to ""
 141      And I set the field "Display rubric description to those being graded" to ""
 142      And I set the field "Display points for each level during evaluation" to ""
 143      And I set the field "Display points for each level to those being graded" to ""
 144      And I press "Save"
 145      And I set the field "menurubricregrade" to "Do not mark for regrade"
 146      And I press "Continue"
 147      And I log out
 148      # Students should not see anything.
 149      And I log in as "student1"
 150      And I follow "Course 1"
 151      And I follow "Test assignment 1 name"
 152      And I should not see "Criterion 1" in the ".submissionstatustable" "css_element"
 153      And I should not see "Criterion 2" in the ".submissionstatustable" "css_element"
 154      And I should not see "Criterion 3" in the ".submissionstatustable" "css_element"
 155      And I should not see "Rubric test description" in the ".feedback" "css_element"


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