Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@gradingform @gradingform_rubric @javascript
2
Feature: Rubrics can have levels with negative scores
3
  In order to use and refine rubrics to grade students
4
  As a teacher
5
  I need to be able to penalise for very wrong submissions
6
 
7
  Scenario: Using negative levels in rubrics
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
      | student2 | Student | 2 | student2@example.com |
13
      | student3 | Student | 3 | student3@example.com |
14
    And the following "courses" exist:
15
      | fullname | shortname | format |
16
      | Course 1 | C1 | topics |
17
    And the following "course enrolments" exist:
18
      | user | course | role |
19
      | teacher1 | C1 | editingteacher |
20
      | student1 | C1 | student |
21
      | student2 | C1 | student |
22
      | student3 | C1 | student |
23
    And the following "scales" exist:
24
      | name         | scale                                     |
25
      | Test scale 1 | Disappointing, Good, Very good, Excellent |
26
    And the following "activities" exist:
27
      | activity   | name              | intro | course | idnumber    | grade   | advancedgradingmethod_submissions |
28
      | assign     | Test assignment 1 | Test  | C1     | assign1     | 100     | rubric                            |
29
    And I change window size to "large"
30
    When I log in as "teacher1"
31
    And I am on "Course 1" course homepage with editing mode on
32
    And I go to "Test assignment 1" advanced grading definition page
33
    And I set the following fields to these values:
34
      | Name | Assignment 1 rubric |
35
      | Description | Rubric test description |
36
    And I define the following rubric:
37
      | Criterion 1 | Did not try | -11 | Level 12 | 25 | Level 13 | 40 | Level 14  | 50  |
38
      | Criterion 2 | Very bad    | -20 | Level 22 | 25 | Level 23 | 30 |           |     |
39
      | Criterion 3 | Level 31    | 10  | Level 32 | 20 |          |    |           |     |
40
    And I press "Save rubric and make it ready"
41
    # Grading a student.
42
    And I navigate to "Assignment" in current page administration
43
    And I go to "Student 1" "Test assignment 1" activity advanced grading page
44
    And I grade by filling the rubric with:
45
      | Criterion 1 | 25 |  |
46
      | Criterion 2 | 30 |  |
47
      | Criterion 3 | 10 |  |
48
    And I save the advanced grading form
49
    And I am on the "Test assignment 1" "assign activity" page
50
    And I go to "Student 2" "Test assignment 1" activity advanced grading page
51
    And I grade by filling the rubric with:
52
      | Criterion 1 | 25 |  |
53
      | Criterion 2 | -20 |  |
54
      | Criterion 3 | 10 |  |
55
    And I save the advanced grading form
56
    And I am on the "Test assignment 1" "assign activity" page
57
    And I go to "Student 3" "Test assignment 1" activity advanced grading page
58
    And I grade by filling the rubric with:
59
      | Criterion 1 | -11 |  |
60
      | Criterion 2 | -20 |  |
61
      | Criterion 3 | 10 |  |
62
    And I save the advanced grading form
63
    # Checking that the user grade is correct.
64
    And I should see "65.00" in the "student1@example.com" "table_row"
65
    And I should see "15.00" in the "student2@example.com" "table_row"
66
    And I should see "0.00" in the "student3@example.com" "table_row"
67
    And I should not see "-" in the "student3@example.com" "table_row"
68
    And I log out