[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_lesson @_file_upload 2 Feature: In a lesson activity, teacher can add an essay question 3 As a teacher 4 I need to add an essay question in a lesson and grade student attempts 5 6 Scenario: questions with essay question 7 Given the following "users" exist: 8 | username | firstname | lastname | email | 9 | teacher1 | Teacher | 1 | teacher1@example.com | 10 | student1 | Student | 1 | student1@example.com | 11 And the following "courses" exist: 12 | fullname | shortname | category | 13 | Course 1 | C1 | 0 | 14 And the following "course enrolments" exist: 15 | user | course | role | 16 | teacher1 | C1 | editingteacher | 17 | student1 | C1 | student | 18 And I log in as "teacher1" 19 And I follow "Course 1" 20 And I turn editing mode on 21 And I add a "Lesson" to section "1" and I fill the form with: 22 | Name | Test lesson name | 23 | Description | Test lesson description | 24 | Use default feedback | Yes | 25 And I follow "Test lesson name" 26 And I follow "Add a question page" 27 And I set the field "Select a question type" to "Essay" 28 And I press "Add a question page" 29 And I set the following fields to these values: 30 | Page title | Essay question | 31 | Page contents | <p>Please write a story about a <b>frog</b>.</p> | 32 And I press "Save page" 33 And I log out 34 And I log in as "student1" 35 And I follow "Course 1" 36 When I follow "Test lesson name" 37 Then I should see "Please write a story about a frog." 38 And I set the field "Your answer" to "<p>Once upon a time there was a little <b>green</b> frog." 39 And I press "Submit" 40 And I should see "Your answer" 41 And I should see "Once upon a time there was a little green frog." 42 And I should not see "<b>" 43 And I press "Continue" 44 And I should see "Congratulations - end of lesson reached" 45 And I should see "You earned 0 out of 0 for the automatically graded questions." 46 And I should see "Your 1 essay question(s) will be graded and added into your final score at a later date." 47 And I should see "Your current grade without the essay question(s) is 0 out of 1." 48 And I log out 49 And I log in as "teacher1" 50 And I follow "Course 1" 51 And I follow "Test lesson name" 52 And I follow "Grade essays" 53 And I should see "Student 1" 54 And I should see "Essay question" 55 And I follow "Essay question" 56 And I should see "Student 1's response" 57 And I should see "Once upon a time there was a little green frog." 58 And I set the following fields to these values: 59 | Your comments | <p>Well <b>done</b>.</p> | 60 | Essay score | 1 | 61 And I press "Save changes" 62 And I should see "Changes saved" 63 And I follow "Reports" 64 And I should see "Student 1" 65 And I click on ".lesson-attempt-link" "css_element" in the "Student 1" "table_row" 66 And I should see "Essay: Essay question" 67 And I should see "Please write a story about a frog." 68 And I should see "Once upon a time there was a little green frog." 69 And I should see "Well done." 70 And I should not see "<b>"
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 |