Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_assign
2
Feature: Check that the assignment grade can be updated correctly
3
  In order to ensure that the grade is shown correctly in the grading table
4
  As a teacher
5
  I need to grade a student and ensure the grade is shown correctly
6
 
7
  @javascript
8
  Scenario: Update the grade for an assignment
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 | teacher1@example.com |
15
      | student1 | Student | 1 | student10@example.com |
16
    And the following "course enrolments" exist:
17
      | user | course | role |
18
      | teacher1 | C1 | editingteacher |
19
      | student1 | C1 | student |
20
    And the following "groups" exist:
21
      | name     | course  | idnumber  |
22
      | Group 1  | C1      | G1        |
23
    And the following "activity" exists:
24
      | activity         | assign                      |
25
      | course           | C1                          |
26
      | name             | Test assignment name        |
27
      | intro            | Test assignment description |
28
      | markingworkflow  | 1                           |
29
      | submissiondrafts | 0                           |
30
    And I am on the "Test assignment name" Activity page logged in as teacher1
31
    Then I follow "View all submissions"
32
    And I click on "Grade" "link" in the "Student 1" "table_row"
33
    And I set the field "Grade out of 100" to "50"
34
    And I set the field "Notify student" to "0"
35
    And I press "Save changes"
36
    And I follow "View all submissions"
37
    And "Student 1" row "Grade" column of "generaltable" table should contain "50.00"
38
 
39
  @javascript
40
  Scenario: Update the grade for a team assignment
41
    Given the following "courses" exist:
42
      | fullname | shortname | category | groupmode |
43
      | Course 1 | C1 | 0 | 1 |
44
    And the following "users" exist:
45
      | username | firstname | lastname | email |
46
      | teacher1 | Teacher | 1 | teacher1@example.com |
47
      | student1 | Student | 1 | student10@example.com |
48
    And the following "course enrolments" exist:
49
      | user | course | role |
50
      | teacher1 | C1 | editingteacher |
51
      | student1 | C1 | student |
52
    And the following "groups" exist:
53
      | name | course | idnumber |
54
      | Group 1 | C1 | G1 |
55
    And the following "activity" exists:
56
      | activity         | assign                      |
57
      | course           | C1                          |
58
      | name             | Test assignment name        |
59
      | intro            | Test assignment description |
60
      | markingworkflow  | 1                           |
61
      | submissiondrafts | 0                           |
62
      | teamsubmission   | 1                           |
63
      | groupmode        | 0                           |
64
    And I am on the "Test assignment name" Activity page logged in as teacher1
65
    When I follow "View all submissions"
66
    And I click on "Grade" "link" in the "Student 1" "table_row"
67
    And I set the field "Grade out of 100" to "50"
68
    And I set the field "Notify student" to "0"
69
    And I press "Save changes"
70
    And I follow "View all submissions"
71
    Then "Student 1" row "Grade" column of "generaltable" table should contain "50.00"