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 not be input in a wrong format.
3
  In order to ensure that the grade is entered in the right format
4
  As a teacher
5
  I need to grade a student and ensure that the grade should be correctly entered
6
 
7
  @javascript
8
  Scenario: Error in the decimal separator ,
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
    When I am on the "Test assignment name" Activity page logged in as teacher1
31
    And 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,,6"
34
    And I press "Save changes"
35
    Then I should see "The grade provided could not be understood: 50,,6"
36
 
37
  @javascript
38
  Scenario: Error in the decimal separator .
39
    Given the following "courses" exist:
40
      | fullname | shortname | category | groupmode |
41
      | Course 1 | C1 | 0 | 1 |
42
    And the following "users" exist:
43
      | username | firstname | lastname | email |
44
      | teacher1 | Teacher | 1 | teacher1@example.com |
45
      | student1 | Student | 1 | student10@example.com |
46
    And the following "course enrolments" exist:
47
      | user | course | role |
48
      | teacher1 | C1 | editingteacher |
49
      | student1 | C1 | student |
50
    And the following "groups" exist:
51
      | name | course | idnumber |
52
      | Group 1 | C1 | G1 |
53
    And the following "activity" exists:
54
      | activity         | assign                      |
55
      | course           | C1                          |
56
      | name             | Test assignment name        |
57
      | intro            | Test assignment description |
58
      | markingworkflow  | 1                           |
59
      | submissiondrafts | 0                           |
60
    When I am on the "Test assignment name" Activity page logged in as teacher1
61
    And I follow "View all submissions"
62
    And I click on "Grade" "link" in the "Student 1" "table_row"
63
    And I set the field "Grade out of 100" to "50..6"
64
    And I press "Save changes"
65
    Then I should see "The grade provided could not be understood: 50..6"