[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_lesson 2 Feature: In a lesson activity, a non editing teacher can grade essay questions 3 As a non editing teacher 4 I need to grade student answers to essay questions in lesson 5 6 Scenario: non editing teacher grade essay questions 7 Given the following "users" exist: 8 | username | firstname | lastname | email | 9 | teacher1 | Teacher | 1 | teacher1@example.com | 10 | teacher2 | Teacher | 2 | teacher2@example.com | 11 | student1 | Student | 1 | student1@example.com | 12 | student2 | Student | 2 | student2@example.com | 13 | student3 | Student | 3 | student3@example.com | 14 And the following "courses" exist: 15 | fullname | shortname | category | 16 | Course 1 | C1 | 0 | 17 And the following "course enrolments" exist: 18 | user | course | role | 19 | teacher1 | C1 | editingteacher | 20 | teacher2 | C1 | teacher | 21 | student1 | C1 | student | 22 | student2 | C1 | student | 23 | student3 | C1 | student | 24 And the following "groups" exist: 25 | name | course | idnumber | 26 | Group A | C1 | G1 | 27 | Group B | C1 | G2 | 28 | Group C | C1 | G3 | 29 And the following "group members" exist: 30 | user | group | 31 | teacher1 | G1 | 32 | teacher2 | G2 | 33 | student1 | G1 | 34 | student2 | G2 | 35 | student3 | G3 | 36 And I log in as "teacher1" 37 And I am on homepage 38 And I follow "Course 1" 39 And I turn editing mode on 40 And I add a "Lesson" to section "1" and I fill the form with: 41 | Name | Test lesson name | 42 | Description | Test lesson description | 43 | Group mode | Separate groups | 44 And I follow "Test lesson name" 45 And I follow "Add a question page" 46 And I set the field "Select a question type" to "Essay" 47 And I press "Add a question page" 48 And I set the following fields to these values: 49 | Page title | Essay question | 50 | Page contents | <p>Please write a story about a frog.</p> | 51 And I press "Save page" 52 And I log out 53 And I log in as "student1" 54 And I follow "Course 1" 55 And I follow "Test lesson name" 56 And I set the field "Your answer" to "<p>Once upon a time there was a little green frog." 57 And I press "Submit" 58 And I log out 59 And I log in as "student2" 60 And I follow "Course 1" 61 And I follow "Test lesson name" 62 And I set the field "Your answer" to "<p>Once upon a time there were two little green frogs." 63 And I press "Submit" 64 And I log out 65 When I log in as "teacher2" 66 And I follow "Course 1" 67 And I follow "Test lesson name" 68 Then I should see "Grade essays" 69 And I follow "Grade essays" 70 And I should see "Student 1" 71 And I should see "Student 2" 72 And I should see "Essay question" 73 And I click on "Essay question" "link" in the "Student 1" "table_row" 74 And I should see "Student 1's response" 75 And I should see "Once upon a time there was a little green frog." 76 And I set the following fields to these values: 77 | Your comments | Well done. | 78 | Essay score | 1 | 79 And I press "Save changes" 80 And I should see "Changes saved" 81 And I select "Group A" from the "Separate groups" singleselect 82 And I should see "Student 1" 83 And I should not see "Student 2" 84 And I select "Group B" from the "Separate groups" singleselect 85 And I should see "Student 2" 86 And I should not see "Student 1" 87 And I select "Group C" from the "Separate groups" singleselect 88 And I should see "No one in Group C has answered an essay question yet."
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 |