[ Index ]

PHP Cross Reference of moodle-2.8

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


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1