Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@gradingform @gradingform_guide
2
Feature: Teacher can define a marking guide
3
  As a teacher,
4
  I should be able to define a marking guide
5
 
6
  Background:
7
    Given the following "users" exist:
8
      | username | firtname | lastname | email                |
9
      | teacher1 | Teacher  | One      | teacher1@example.com |
10
    And the following "courses" exist:
11
      | fullname | shortname |
12
      | Course 1 | C1        |
13
    And the following "course enrolments" exist:
14
      | user     | course | role           |
15
      | teacher1 | C1     | editingteacher |
16
    And the following "activities" exist:
17
      | activity | course | name     | advancedgradingmethod_submissions |
18
      | assign   | C1     | Assign 1 | guide                             |
19
    And I am on the "Course 1" course page logged in as teacher1
20
    And I go to "Assign 1" advanced grading definition page
21
    And I set the following fields to these values:
22
      | Name | Marking guide 1 |
23
 
24
  Scenario: No criterion added to marking guide
25
    When I press "Save as draft"
26
    # Confirm that criterion parameters are required
27
    Then I should see "Criterion name can not be empty"
28
    And I should see "Criterion max score can not be empty"
29
    # Confirm that marking guide is not saved due to the missing criterion
30
    And I should not see "Marking guide 1 Draft"
31
    And I should not see "Please note: the advanced grading form is not ready at the moment. Simple grading method will be used until the form has a valid status."
32
 
33
  @javascript
34
  Scenario: Marking guide criterion is added to marking guide
35
    Given I define the following marking guide:
36
      | Criterion name | Description for students           | Description for markers           | Maximum score |
37
      | Criteria 1     | Criteria 1 description for student | Criteria 1 description for marker | 70            |
38
      | Criteria 2     | Criteria 2 description for student | Criteria 2 description for marker | 30            |
39
    # Move Criteria 1 below Criteria 2
40
    And I click on "Move down" "button" in the "Criteria 1" "table_row"
41
    When I press "Save as draft"
42
    And I go to "Assign 1" advanced grading definition page
43
    # Confirm that the order of criterion shown matches input -- Criteria 2 is listed before Criteria 1
44
    Then "Move down" "button" in the "Criteria 2" "table_row" should be visible
45
    And "Move up" "button" in the "Criteria 2" "table_row" should not be visible
46
    And "Move up" "button" in the "Criteria 1" "table_row" should be visible
47
    And "Move down" "button" in the "Criteria 1" "table_row" should not be visible
48
    # Confirm the other information entered were saved
49
    And I should see "Criteria 2 description for student" in the "Criteria 2" "table_row"
50
    And I should see "Criteria 2 description for marker" in the "Criteria 2" "table_row"
51
    And I should see "30" in the "Criteria 2" "table_row"
52
    And I should see "Criteria 1 description for student" in the "Criteria 1" "table_row"
53
    And I should see "Criteria 1 description for marker" in the "Criteria 1" "table_row"
54
    And I should see "70" in the "Criteria 1" "table_row"
55
 
56
  Scenario: Marking guide options and frequently used comment are added to marking guide
57
    Given I define the following marking guide:
58
      | Criterion name | Description for students           | Description for markers           | Maximum score |
59
      | Criteria 1     | Criteria 1 description for student | Criteria 1 description for marker | 50            |
60
      | Criteria 2     | Criteria 2 description for student | Criteria 2 description for marker | 50            |
61
    # Add frequently used comments and other marking guide options
62
    And I define the following frequently used comments:
63
      | Comment 1 |
64
      | Comment 2 |
65
    And I set the following fields to these values:
66
      | Show guide definition to students    | 1 |
67
      | Show marks per criterion to students | 0 |
68
    When I press "Save as draft"
69
    And I go to "Assign 1" advanced grading definition page
70
    #  Confirm that frequently used comments and marking guide options specified during registration are retained
71
    Then I should see "Comment 1"
72
    And I should see "Comment 2"
73
    And the field "Show guide definition to students" matches value "1"
74
    And the field "Show marks per criterion to students" matches value "0"