[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
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 I log in as "teacher1" 24 And I follow "Course 1" 25 And I navigate to "Grades" node in "Course administration" 26 And I turn editing mode on 27 And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name" 28 And I press "Save changes" 29 30 @javascript 31 Scenario: Export grades as text 32 When I set the field "Grade report" to "Plain text file" 33 And I expand all fieldsets 34 And I click on "Course total" "checkbox" 35 And I set the field "Grade export decimal points" to "1" 36 And I press "Download" 37 Then I should see "Student,1" 38 And I should see "80.0" 39 And I should not see "Course total" 40 And I should not see "80.00" 41 42 @javascript 43 Scenario: Export grades as text using real 44 When I set the field "Grade report" to "Plain text file" 45 And I expand all fieldsets 46 And I set the following fields to these values: 47 | Real | 1 | 48 And I click on "Course total" "checkbox" 49 And I press "Download" 50 Then I should see "Student,1" 51 And I should see "80.00" 52 53 @javascript 54 Scenario: Export grades as text using percentages and letters 55 When I set the field "Grade report" to "Plain text file" 56 And I set the following fields to these values: 57 | Percentage | 1 | 58 | Letter | 1 | 59 And I press "Download" 60 Then I should see "Student,1" 61 And I should see "80.00 %" 62 And I should see "B-" 63 And I should not see "40.00 %" 64 And I should not see ",F," 65 66 @javascript 67 Scenario: Export grades as text using real, percentages and letters 68 When I set the field "Grade report" to "Plain text file" 69 And I set the following fields to these values: 70 | Real | 1 | 71 | Percentage | 1 | 72 | Letter | 1 | 73 And I press "Download" 74 Then I should see "Student,1" 75 And I should see "80.00" 76 And I should see "80.00 %" 77 And I should see "B-" 78 And I should not see "40.00 %" 79 And I should not see ",F,"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |