Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@gradingform @gradingform_guide @javascript
2
Feature: Display marking guide information to students
3
  In order for students to see the marking guide information
4
  As a teacher
5
  I should be able to change display settings for marking guide information
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname |
10
      | Course 1 | C1        |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email                |
13
      | teacher1 | Teacher   | 1        | teacher1@example.com |
14
      | student1 | Student   | 1        | student1@example.com |
15
    And the following "course enrolments" exist:
16
      | user     | course | role           |
17
      | teacher1 | C1     | editingteacher |
18
      | student1 | C1     | student        |
19
    And the following "activities" exist:
20
      | activity | course | name     | advancedgradingmethod_submissions |
21
      | assign   | C1     | Assign 1 | guide                             |
22
    And I am on the "Course 1" course page logged in as teacher1
23
    And I go to "Assign 1" advanced grading definition page
24
    And I set the following fields to these values:
25
      | Name                                 | Assign 1 marking guide    |
26
      | Description                          | Marking guide description |
27
    And I define the following marking guide:
28
      | Criterion name    | Description for students         | Description for markers         | Maximum score |
29
      | Grade Criteria 1  | Grade 1 description for students | Grade 1 description for markers | 70            |
30
      | Grade Criteria 2  | Grade 2 description for students | Grade 2 description for markers | 30            |
31
    And I press "Save marking guide and make it ready"
32
 
33
  Scenario: Confirm that marking guide information is not displayed after student is graded
34
    # Update the existing marking guide to ensure that marks per criterion is displayed.
35
    Given I click on "Edit the current form definition" "link"
36
    And I set the field "Show marks per criterion to students" to "0"
37
    And I press "Save"
38
    And I am on the "Assign 1" "assign activity" page
39
    And I go to "Student 1" "Assign 1" activity advanced grading page
40
    And I grade by filling the marking guide with:
41
      | Grade Criteria 1 | 50 | Excellent work! |
42
      | Grade Criteria 2 | 20 | Try harder      |
43
    And I press "Save changes"
44
    When I am on the "Assign 1" "assign activity" page logged in as student1
45
    # Confirm the marking guide information display after student is graded when marking per criterion display is disabled.
46
    # Confirm that overall grade is displayed.
47
    Then I should see "70.00 / 100.00"
48
    And I should see the marking guide information displayed as:
49
      | criteria         | description                      | remark          |
50
      | Grade Criteria 1 | Grade 1 description for students | Excellent work! |
51
      | Grade Criteria 2 | Grade 2 description for students | Try harder      |
52
 
53
  Scenario: Confirm that marking guide information is displayed after student is graded
54
    Given I am on the "Assign 1" "assign activity" page logged in as student1
55
    And I should see "Grade 1 description for students" in the "Grade Criteria 1" "table_row"
56
    And I should see "Grade 2 description for students" in the "Grade Criteria 2" "table_row"
57
    # No grade to student1 yet.
58
    And I should not see "70.00 / 100.00"
59
    # No need to update marking guide as marking guide definition is already enabled by default
60
    And I am on the "Assign 1" "assign activity" page logged in as teacher1
61
    And I go to "Student 1" "Assign 1" activity advanced grading page
62
    And I grade by filling the marking guide with:
63
      | Grade Criteria 1 | 50 | Excellent work! |
64
      | Grade Criteria 2 | 20 | Try harder      |
65
    And I press "Save changes"
66
    When I am on the "Assign 1" "assign activity" page logged in as student1
67
    # Student1 grade is now displayed.
68
    Then I should see "70.00 / 100.00"
69
    And I should see the marking guide information displayed as:
70
      | criteria         | description                      | remark          | maxscore | criteriascore |
71
      | Grade Criteria 1 | Grade 1 description for students | Excellent work! | 70       | 50 / 70       |
72
      | Grade Criteria 2 | Grade 2 description for students | Try harder      | 30       | 20 / 30       |
11 efrain 73
 
74
  Scenario: Confirm that marking guide definition is retained when grading method is changed
75
    Given I am on the "Assign 1" "assign activity" page
76
    And I go to "Student 1" "Assign 1" activity advanced grading page
77
    And I grade by filling the marking guide with:
78
      | Grade Criteria 1 | 70 | Well done! |
79
      | Grade Criteria 2 | 20 | Great work |
80
    And I press "Save changes"
81
    And I am on the "Assign 1" "assign activity editing" page
82
    And I set the following fields to these values:
83
      | Grading method | Simple direct grading |
84
    And I press "Save and return to course"
85
    When I go to "Assign 1" advanced grading page
86
    Then I should not see "Assign 1 marking guide Ready for use"
87
    And I should not see "Grade Critera 1"
88
    And I should not see "Grade Critera 2"
89
    And I am on the "Course 1" "grades > Grader report > View" page
90
    And the following should exist in the "user-grades" table:
91
      | -1-       | -2-                  | -3- |
92
      | Student 1 | student1@example.com | 90  |
93
    And I am on the "Assign 1" "assign activity editing" page
94
    And I set the following fields to these values:
95
      | Grading method | Marking guide |
96
    And I press "Save and return to course"
97
    And I go to "Assign 1" advanced grading page
98
    And I should see "Assign 1 marking guide Ready for use"
99
    And I should see "Grade Criteria 1"
100
    And I should see "Grade Criteria 2"