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
@mod @mod_assign @core_outcome
2
Feature: Outcome grading
3
  In order to give an outcome to my student
4
  As a teacher
5
  I need to grade a submission
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | teacher1 | Teacher | 1 | teacher1@example.com |
11
      | student0 | Student | 0 | student0@example.com |
12
      | student1 | Student | 1 | student1@example.com |
13
    And the following "courses" exist:
14
      | fullname | shortname | category | groupmode |
15
      | Course 1 | C1 | 0 | 1 |
16
    And the following "course enrolments" exist:
17
      | user | course | role |
18
      | teacher1 | C1 | editingteacher |
19
      | student0 | C1 | student |
20
      | student1 | C1 | student |
21
    And the following config values are set as admin:
22
      | enableoutcomes | 1 |
23
    And the following "scales" exist:
24
      | name       | scale                                                |
25
      | Test Scale | Disappointing, Excellent, Good, Very good, Excellent |
26
    And the following "grade outcomes" exist:
27
      | fullname        | shortname | scale      |
28
      | Outcome Test    | OT        | Test Scale |
29
    And I am on the "Course 1" "grades > outcomes" page logged in as admin
30
    And I set the field "Available standard outcomes" to "Outcome Test"
31
    And I click on "#add" "css_element"
32
    And I log out
33
 
34
  @javascript
35
  Scenario: Giving an outcome to a student
36
    Given I log in as "teacher1"
37
    And I add a assign activity to course "Course 1" section "1" and I fill the form with:
38
      | Assignment name                     | Test assignment name        |
39
      | ID number                           | Test assignment name        |
40
      | Description                         | Test assignment description |
41
      | assignsubmission_onlinetext_enabled | 1                           |
42
      | Outcome Test                        | 1                           |
43
    And I am on the "Test assignment name" "assign activity" page logged in as student1
44
    And I press "Add submission"
45
    And I set the following fields to these values:
46
      | Online text | My online text |
47
    And I press "Save changes"
48
    When I am on the "Test assignment name" "assign activity" page logged in as teacher1
1441 ariadna 49
    And I go to "Student 0" "Test assignment name" activity advanced grading page
1 efrain 50
    And I set the following fields to these values:
51
      | Outcome Test: | Excellent |
52
    And I press "Save changes"
53
    And I click on "Edit settings" "link"
54
    When I am on the "Test assignment name" "assign activity" page
1441 ariadna 55
    And I navigate to "Submissions" in current page administration
1 efrain 56
    Then I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
57
    And I should not see "Outcome Test: Excellent" in the "Student 1" "table_row"
58
 
59
  @javascript
60
  Scenario: Giving an outcome to a group submission
61
    Given the following "users" exist:
62
      | username | firstname | lastname | email |
63
      | student2 | Student | 2 | student2@example.com |
64
    And the following "course enrolments" exist:
65
      | user | course | role |
66
      | student2 | C1 | student |
67
    And the following "groups" exist:
68
      | name | course | idnumber |
69
      | Group 1 | C1 | G1 |
70
    And the following "group members" exist:
71
      | user     | group |
72
      | student0 | G1    |
73
      | student1 | G1    |
74
    And I log in as "teacher1"
75
    And I add a assign activity to course "Course 1" section "1" and I fill the form with:
76
      | Assignment name                     | Test assignment name        |
77
      | Description                         | Test assignment description |
78
      | ID number                           | Test assignment name        |
79
      | assignsubmission_onlinetext_enabled | 1                           |
80
      | Students submit in groups           | Yes                         |
81
      | Group mode                          | No groups                   |
82
      | Outcome Test                        | 1                           |
83
    And I am on the "Test assignment name" "assign activity" page logged in as student1
84
    And I press "Add submission"
85
    And I set the following fields to these values:
86
      | Online text | My online text |
87
    And I press "Save changes"
88
    When I am on the "Test assignment name" "assign activity" page logged in as teacher1
1441 ariadna 89
    And I go to "Student 0" "Test assignment name" activity advanced grading page
1 efrain 90
    And I set the following fields to these values:
91
      | Outcome Test: | Excellent |
92
      | Apply grades and feedback to entire group | Yes |
93
    And I press "Save changes"
94
    And I am on the "Test assignment name" "assign activity" page
1441 ariadna 95
    And I navigate to "Submissions" in current page administration
1 efrain 96
    Then I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
97
    And I should see "Outcome Test: Excellent" in the "Student 1" "table_row"
98
    And I should not see "Outcome Test: Excellent" in the "Student 2" "table_row"
1441 ariadna 99
    And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row"
100
    And I choose "Grade" in the open action menu
1 efrain 101
    And I set the following fields to these values:
102
      | Outcome Test: | Disappointing |
103
      | Apply grades and feedback to entire group | No |
104
    And I press "Save changes"
105
    And I am on the "Test assignment name" "assign activity" page
1441 ariadna 106
    And I navigate to "Submissions" in current page administration
1 efrain 107
    And I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
108
    And I should see "Outcome Test: Disappointing" in the "Student 1" "table_row"
109
    And I should not see "Outcome Test: Disappointing" in the "Student 0" "table_row"
110
    And I should not see "Outcome Test: Excellent" in the "Student 1" "table_row"
111
    And I should not see "Outcome Test: Disappointing" in the "Student 2" "table_row"
112
    And I should not see "Outcome Test: Excellent" in the "Student 2" "table_row"