Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@gradeexport @gradeexport_txt
2
Feature: I need to export grades as text
3
  In order to easily review marks
4
  As a teacher
5
  I need to have a export grades as text
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category | groupmode |
10
      | Course 1 | C1 | 0 | 1 |
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 | idnumber | name | intro | assignsubmission_onlinetext_enabled |
21
      | assign | C1 | a1 | Test assignment name | Submit your online text | 1 |
22
      | assign | C1 | a2 | Test assignment name 2 | Submit your online text | 1 |
23
    And the following "grade grades" exist:
24
      | gradeitem            | user     | grade |
25
      | Test assignment name | student1 | 80.00 |
26
    And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
27
 
28
  @javascript
29
  Scenario: Export grades as text
30
    When I navigate to "Plain text file" export page in the course gradebook
31
    And I expand all fieldsets
32
    And I click on "Course total" "checkbox"
33
    And I set the field "Grade export decimal places" to "1"
34
    And I press "Download"
35
    Then I should see "Student,1"
36
    And I should see "80.0"
37
    And I should not see "Course total"
38
    And I should not see "80.00"
39
 
40
  @javascript
41
  Scenario: Export grades as text using real
42
    When I navigate to "Plain text file" export page in the course gradebook
43
    And I expand all fieldsets
44
    And  I set the following fields to these values:
45
      | Real        | 1                        |
46
    And I click on "Course total" "checkbox"
47
    And I press "Download"
48
    Then I should see "Student,1"
49
    And I should see "80.00"
50
 
51
  @javascript
52
  Scenario: Export grades as text using percentages and letters
53
    When I navigate to "Plain text file" export page in the course gradebook
54
    And  I set the following fields to these values:
55
      | Percentage   | 1                        |
56
      | Letter       | 1                        |
57
    And I press "Download"
58
    Then I should see "Student,1"
59
    And I should see "80.00 %"
60
    And I should see "B-"
61
    And I should not see "40.00 %"
62
    And I should not see ",F,"
63
 
64
  @javascript
65
  Scenario: Export grades as text using real, percentages and letters
66
    When I navigate to "Plain text file" export page in the course gradebook
67
    And  I set the following fields to these values:
68
      | Real         | 1                        |
69
      | Percentage   | 1                        |
70
      | Letter       | 1                        |
71
    And I press "Download"
72
    Then I should see "Student,1"
73
    And I should see "80.00"
74
    And I should see "80.00 %"
75
    And I should see "B-"
76
    And I should not see "40.00 %"
77
    And I should not see ",F,"