[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/grade/grading/form/guide/tests/behat/ -> edit_guide.feature (source)

   1  @gradingform @gradingform_guide
   2  Feature: Marking guides can be created and edited
   3    In order to use and refine marking guide to grade students
   4    As a teacher
   5    I need to edit previously used marking guides
   6  
   7    Background:
   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      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  | Marking guide               |
  26      # Defining a marking guide
  27      When I go to "Test assignment 1 name" advanced grading definition page
  28      And I set the following fields to these values:
  29        | Name        | Assignment 1 marking guide     |
  30        | Description | Marking guide test description |
  31      And I define the following marking guide:
  32        | Criterion name    | Description for students         | Description for markers         | Maximum score |
  33        | Guide criterion A | Guide A description for students | Guide A description for markers | 30            |
  34        | Guide criterion B | Guide B description for students | Guide B description for markers | 30            |
  35        | Guide criterion C | Guide C description for students | Guide C description for markers | 40            |
  36      And I define the following frequently used comments:
  37        | Comment 1 |
  38        | Comment 2 |
  39        | Comment 3 |
  40        | Comment 4 |
  41      And I press "Save marking guide and make it ready"
  42      Then I should see "Ready for use"
  43      And I should see "Guide criterion A"
  44      And I should see "Guide criterion B"
  45      And I should see "Guide criterion C"
  46      And I should see "Comment 1"
  47      And I should see "Comment 2"
  48      And I should see "Comment 3"
  49      And I should see "Comment 4"
  50  
  51    @javascript
  52    Scenario: Deleting criterion and comment
  53      # Deleting criterion
  54      When I go to "Test assignment 1 name" advanced grading definition page
  55      And I click on "Delete criterion" "button" in the "Guide criterion B" "table_row"
  56      And I press "Yes"
  57      And I press "Save"
  58      Then I should see "Guide criterion A"
  59      And I should see "Guide criterion C"
  60      And I should see "WARNING: Your marking guide has a maximum grade of 70 points"
  61      But I should not see "Guide criterion B"
  62      # Deleting a frequently used comment
  63      When I go to "Test assignment 1 name" advanced grading definition page
  64      And I click on "Delete comment" "button" in the "Comment 3" "table_row"
  65      And I press "Yes"
  66      And I press "Save"
  67      Then I should see "Comment 1"
  68      And I should see "Comment 2"
  69      And I should see "Comment 4"
  70      But I should not see "Comment 3"
  71  
  72    @javascript
  73    Scenario: Grading and viewing graded marking guide
  74      # Grading a student.
  75      When I go to "Student 1" "Test assignment 1 name" activity advanced grading page
  76      And I grade by filling the marking guide with:
  77        | Guide criterion A | 25 | Very good  |
  78        | Guide criterion B | 20 |            |
  79        | Guide criterion C | 35 | Nice!      |
  80      # Inserting frequently used comment.
  81      And I click on "Insert frequently used comment" "button" in the "Guide criterion B" "table_row"
  82      And I wait "1" seconds
  83      And I press "Comment 4"
  84      And I wait "1" seconds
  85      Then the field "Guide criterion B criterion remark" matches value "Comment 4"
  86      When I press "Save changes"
  87      And I press "Ok"
  88      And I follow "Edit settings"
  89      And I follow "Test assignment 1 name"
  90      And I follow "View all submissions"
  91      # Checking that the user grade is correct.
  92      Then I should see "80" in the "Student 1" "table_row"
  93      And I log out
  94      # Viewing it as a student.
  95      And I log in as "student1"
  96      And I follow "Course 1"
  97      And I follow "Test assignment 1 name"
  98      And I should see "80" in the ".feedback" "css_element"
  99      And I should see "Marking guide test description" in the ".feedback" "css_element"
 100      And I should see "Very good"
 101      And I should see "Comment 4"
 102      And I should see "Nice!"
 103  
 104    Scenario: I can use marking guides to grade and edit them later updating students grades with Javascript disabled


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