[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/mod/assign/tests/behat/ -> quickgrading.feature (source)

   1  @mod @mod_assign
   2  Feature: In an assignment, teachers grade multiple students on one page
   3    In order to quickly give students grades and feedback
   4    As a teacher
   5    I need to grade multiple students on one page
   6  
   7    @javascript
   8    Scenario: Grade multiple students on one page
   9      Given the following "courses" exist:
  10        | fullname | shortname | category | groupmode |
  11        | Course 1 | C1 | 0 | 1 |
  12      And the following "users" exist:
  13        | username | firstname | lastname | email |
  14        | teacher1 | Teacher | 1 | [email protected] |
  15        | student1 | Student | 1 | [email protected] |
  16        | student2 | Student | 2 | [email protected] |
  17      And the following "course enrolments" exist:
  18        | user | course | role |
  19        | teacher1 | C1 | editingteacher |
  20        | student1 | C1 | student |
  21        | student2 | C1 | student |
  22      When I log in as "admin"
  23      And I set the following administration settings values:
  24        | Enable outcomes | 1 |
  25      And I log out
  26      And I log in as "teacher1"
  27      And I follow "Course 1"
  28      And I follow "Outcomes"
  29      And I follow "Edit outcomes"
  30      And I press "Add a new outcome"
  31      And I press "Continue"
  32      And I set the following fields to these values:
  33        | Name | 1337dom scale |
  34        | Scale | Noob, Nub, 1337, HaXor |
  35      And I press "Save changes"
  36      And I follow "Course 1"
  37      And I follow "Outcomes"
  38      And I follow "Edit outcomes"
  39      And I press "Add a new outcome"
  40      And I set the following fields to these values:
  41        | Full name | M8d skillZ! |
  42        | Short name | skillZ! |
  43        | Scale | 1337dom scale |
  44      And I press "Save changes"
  45      And I follow "Course 1"
  46      And I turn editing mode on
  47      And I add a "Assignment" to section "1" and I fill the form with:
  48        | Assignment name | Test assignment name |
  49        | Description | Submit your online text |
  50        | assignsubmission_onlinetext_enabled | 1 |
  51        | assignsubmission_file_enabled | 0 |
  52        | M8d skillZ! | 1 |
  53      And I log out
  54      And I log in as "student1"
  55      And I follow "Course 1"
  56      And I follow "Test assignment name"
  57      And I press "Add submission"
  58      And I set the following fields to these values:
  59        | Online text | I'm the student1 submission |
  60      And I press "Save changes"
  61      And I log out
  62      And I log in as "student2"
  63      And I follow "Course 1"
  64      And I follow "Test assignment name"
  65      When I press "Add submission"
  66      And I set the following fields to these values:
  67        | Online text | I'm the student2 submission |
  68      And I press "Save changes"
  69      And I log out
  70      And I log in as "teacher1"
  71      And I follow "Course 1"
  72      And I follow "Test assignment name"
  73      And I follow "View/grade all submissions"
  74      And I click on "Grade Student 1" "link" in the "Student 1" "table_row"
  75      And I set the following fields to these values:
  76        | Grade out of 100 | 50.0 |
  77        | M8d skillZ! | 1337 |
  78        | Feedback comments | I'm the teacher first feedback |
  79      And I press "Save changes"
  80      And I press "Continue"
  81      Then I click on "Quick grading" "checkbox"
  82      And I set the field "User grade" to "60.0"
  83      And I press "Save all quick grading changes"
  84      And I should see "The grade changes were saved"
  85      And I press "Continue"
  86      And I log out
  87      And I log in as "student1"
  88      And I follow "Course 1"
  89      And I follow "Test assignment name"
  90      And I should see "I'm the teacher first feedback"
  91      And I should see "60.0"
  92      And I follow "Course 1"
  93      And I follow "Grades"
  94      And I should see "1337"
  95      And I log out
  96      And I log in as "student2"
  97      And I follow "Course 1"
  98      And I follow "Test assignment name"
  99      And I should not see "I'm the teacher first feedback"
 100      And I should not see "60.0"
 101      And I follow "Course 1"
 102      And I follow "Grades"
 103      And I should not see "1337"
 104      And I log out
 105      And I log in as "teacher1"
 106      And I follow "Course 1"
 107      And I follow "Test assignment name"
 108      And I follow "View/grade all submissions"
 109      And I click on "Hide User picture" "link"
 110      And I click on "Hide Full name" "link"
 111      And I click on "Hide Email address" "link"
 112      And I click on "Hide Status" "link"
 113      And I click on "Hide Grade" "link"
 114      And I click on "Hide Edit" "link"
 115      And I click on "Hide Last modified (submission)" "link"
 116      And I click on "Hide Online text" "link"
 117      And I click on "Hide Submission comments" "link"
 118      And I click on "Hide Last modified (grade)" "link"
 119      And I click on "Hide Feedback comments" "link"
 120      And I click on "Hide Final grade" "link"
 121      And I click on "Hide Outcomes" "link"
 122      And I press "Save all quick grading changes"
 123      And I should see "The grade changes were saved"
 124      And I press "Continue"
 125      And I log out
 126      And I log in as "student1"
 127      And I follow "Course 1"
 128      And I follow "Test assignment name"
 129      And I should see "I'm the teacher first feedback"
 130      And I should see "60.0"
 131      And I follow "Course 1"
 132      And I follow "Grades"
 133      And I should see "1337"
 134      And I log out
 135      And I log in as "student2"
 136      And I follow "Course 1"
 137      And I follow "Test assignment name"
 138      And I should not see "I'm the teacher first feedback"
 139      And I should not see "60.0"
 140      And I follow "Course 1"
 141      And I follow "Grades"
 142      And I should not see "1337"


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