[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/grade/export/txt/tests/behat/ -> export.feature (source)

   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 | [email protected] |
  14        | student1 | Student | 1 | [email protected] |
  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      And I log in as "teacher1"
  23      And I follow "Course 1"
  24      And I follow "Grades"
  25      And I turn editing mode on
  26      And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name"
  27      And I press "Save changes"
  28  
  29    @javascript
  30    Scenario: Export grades as text
  31      When I set the field "Grade report" to "Plain text file"
  32      And I expand all fieldsets
  33      And I click on "Course total" "checkbox"
  34      And I set the field "Grade export decimal points" to "1"
  35      And I press "Download"
  36      Then I should see "Student,1"
  37      And I should see "80.0"
  38      And I should not see "Course total"
  39      And I should not see "80.00"
  40  
  41    @javascript
  42    Scenario: Export grades as text using real
  43      When I set the field "Grade report" to "Plain text file"
  44      And I expand all fieldsets
  45      And  I set the following fields to these values:
  46        | Real        | 1                        |
  47      And I click on "Course total" "checkbox"
  48      And I press "Download"
  49      Then I should see "Student,1"
  50      And I should see "80.00"
  51  
  52    @javascript
  53    Scenario: Export grades as text using percentages and letters
  54      When I set the field "Grade report" to "Plain text file"
  55      And  I set the following fields to these values:
  56        | Percentage   | 1                        |
  57        | Letter       | 1                        |
  58      And I press "Download"
  59      Then I should see "Student,1"
  60      And I should see "80.00 %"
  61      And I should see "B-"
  62  
  63    @javascript
  64    Scenario: Export grades as text using real, percentages and letters
  65      When I set the field "Grade report" to "Plain text file"
  66      And  I set the following fields to these values:
  67        | Real         | 1                        |
  68        | Percentage   | 1                        |
  69        | Letter       | 1                        |
  70      And I press "Download"
  71      Then I should see "Student,1"
  72      And I should see "80.00"
  73      And I should see "80.00 %"
  74      And I should see "B-"


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1