[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_question 2 Feature: A teacher can preview questions in the question bank 3 In order to ensure the questions are properly created 4 As a teacher 5 I need to preview the questions 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Teacher | 1 | teacher1@example.com | 11 And the following "courses" exist: 12 | fullname | shortname | format | 13 | Course 1 | C1 | weeks | 14 And the following "course enrolments" exist: 15 | user | course | role | 16 | teacher1 | C1 | editingteacher | 17 And the following "question categories" exist: 18 | contextlevel | reference | name | 19 | Course | C1 | Test questions | 20 And the following "questions" exist: 21 | questioncategory | qtype | name | 22 | Test questions | numerical | Test question to be previewed | 23 And I log in as "teacher1" 24 And I follow "Course 1" 25 And I navigate to "Questions" node in "Course administration > Question bank" 26 When I click on "Preview" "link" in the "Test question to be previewed" "table_row" 27 And I switch to "questionpreview" window 28 29 @javascript @_switch_window 30 Scenario: Question preview shows the question and other information 31 Then the state of "What is pi to two d.p.?" question is shown as "Not yet answered" 32 And I should see "Marked out of 1.00" 33 And I should see "Technical information" 34 And I should see "Attempt options" 35 And I should see "Display options" 36 37 @javascript @_switch_window 38 Scenario: Preview lets the teacher see what happens when an answer is saved 39 When I set the field "Answer:" to "1" 40 And I press "Save" 41 Then the state of "What is pi to two d.p.?" question is shown as "Answer saved" 42 43 @javascript @_switch_window 44 Scenario: Preview lets the teacher see what happens when an answer is submitted 45 When I set the field "Answer:" to "3.14" 46 And I press "Submit and finish" 47 Then the state of "What is pi to two d.p.?" question is shown as "Correct" 48 49 @javascript @_switch_window 50 Scenario: Preview lets the teacher see what happens with different review options 51 Given I set the field "Answer:" to "3.14" 52 And I press "Submit and finish" 53 When I set the field "Whether correct" to "Not shown" 54 And I set the field "Decimal places in grades" to "5" 55 And I press "Update display options" 56 Then the state of "What is pi to two d.p.?" question is shown as "Complete" 57 And I should see "1.00000" 58 59 @javascript @_switch_window 60 Scenario: Preview lets the teacher see what happens with different behaviours 61 When I set the field "How questions behave" to "Immediate feedback" 62 And I set the field "Marked out of" to "3" 63 And I press "Start again with these options" 64 And I set the field "Answer:" to "3.1" 65 And I press "Check" 66 Then the state of "What is pi to two d.p.?" question is shown as "Incorrect" 67 And I should see "Mark 0.00 out of 3.00" 68 And I should see "Not accurate enough." 69 70 @javascript @_switch_window 71 Scenario: Preview lets the teacher "Start again" while previewing 72 Given I set the field "Answer:" to "1" 73 And I press "Submit and finish" 74 When I press "Start again" 75 Then the state of "What is pi to two d.p.?" question is shown as "Not yet answered" 76 77 @javascript @_switch_window 78 Scenario: Preview lets the teacher "Fill in correct response" while previewing 79 When I press "Fill in correct responses" 80 Then the field "Answer:" matches value "3.14"
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 |