[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_lesson 2 Feature: In a lesson activity, if custom scoring is not enabled, student should see 3 some informations at the end of lesson: questions answered, correct answers, grade, score 4 5 Scenario: Informations at end of lesson if custom scoring not enabled 6 Given the following "users" exist: 7 | username | firstname | lastname | email | 8 | teacher1 | Teacher | 1 | teacher1@example.com | 9 | student1 | Student | 1 | student1@example.com | 10 And the following "courses" exist: 11 | fullname | shortname | category | 12 | Course 1 | C1 | 0 | 13 And the following "course enrolments" exist: 14 | user | course | role | 15 | teacher1 | C1 | editingteacher | 16 | student1 | C1 | student | 17 And I log in as "teacher1" 18 And I follow "Course 1" 19 And I turn editing mode on 20 And I add a "Lesson" to section "1" and I fill the form with: 21 | Name | Test lesson name | 22 | Description | Test lesson description | 23 | Custom scoring | No | 24 And I follow "Test lesson name" 25 And I follow "Add a content page" 26 And I set the following fields to these values: 27 | Page title | First page name | 28 | Page contents | First page contents | 29 | id_answer_editor_0 | Next page | 30 | id_jumpto_0 | Next page | 31 And I press "Save page" 32 And I select "Question" from the "qtype" singleselect 33 And I set the field "Select a question type" to "Numerical" 34 And I press "Add a question page" 35 And I set the following fields to these values: 36 | Page title | Hardest question ever | 37 | Page contents | 1 + 1? | 38 | id_answer_editor_0 | 2 | 39 | id_response_editor_0 | Correct answer | 40 | id_jumpto_0 | Next page | 41 | id_answer_editor_1 | 1 | 42 | id_response_editor_1 | Incorrect answer | 43 | id_jumpto_1 | This page | 44 And I press "Save page" 45 And I log out 46 And I log in as "student1" 47 And I follow "Course 1" 48 When I follow "Test lesson name" 49 Then I should see "First page contents" 50 And I press "Next page" 51 And I should see "1 + 1?" 52 And I set the following fields to these values: 53 | Your answer | 1 | 54 And I press "Submit" 55 And I should see "Incorrect answer" 56 And I press "Continue" 57 And I should see "Congratulations - end of lesson reached" 58 And I should see "Number of questions answered: 1" 59 And I should see "Number of correct answers: 0" 60 And I should see "Your score is 0 (out of 1)." 61 And I should see "Your current grade is 0.0 out of 100"
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 |