1 |
efrain |
1 |
@mod @mod_quiz
|
|
|
2 |
Feature: Allow settings to show Max marks and Marks, Max marks only, or hide the grade information completely.
|
|
|
3 |
As a teacher
|
|
|
4 |
In order to decide how grade review options are displayed on questions in a quiz review page
|
|
|
5 |
I need to be able to set the grade review options for a quiz to to show Max and Marks, Max only, or hide the grade information.
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| student1 | Student | One | student1@example.com |
|
|
|
11 |
| teacher | Teacher | One | teacher@example.com |
|
|
|
12 |
And the following "courses" exist:
|
|
|
13 |
| fullname | shortname | category |
|
|
|
14 |
| Course 1 | C1 | 0 |
|
|
|
15 |
And the following "course enrolments" exist:
|
|
|
16 |
| user | course | role |
|
|
|
17 |
| teacher | C1 | editingteacher |
|
|
|
18 |
| student1 | C1 | student |
|
|
|
19 |
And the following "question categories" exist:
|
|
|
20 |
| contextlevel | reference | name |
|
|
|
21 |
| Course | C1 | Test questions |
|
|
|
22 |
And the following "questions" exist:
|
|
|
23 |
| questioncategory | qtype | name | questiontext |
|
|
|
24 |
| Test questions | truefalse | TF1 | First question |
|
|
|
25 |
And the following "activities" exist:
|
|
|
26 |
| activity | name | intro | course | idnumber | maxmarksduring | marksduring | maxmarksimmediately | marksimmediately | preferredbehaviour |
|
|
|
27 |
| quiz | Quiz 1 | Quiz 1 test | C1 | quiz1 | 1 | 1 | 1 | 1 | immediatefeedback |
|
|
|
28 |
| quiz | Quiz 2 | Quiz 2 test | C1 | quiz2 | 0 | 0 | 1 | 1 | immediatefeedback |
|
|
|
29 |
And quiz "Quiz 1" contains the following questions:
|
|
|
30 |
| question | page | maxmark |
|
|
|
31 |
| TF1 | 1 | 2.00 |
|
|
|
32 |
And quiz "Quiz 2" contains the following questions:
|
|
|
33 |
| question | page | maxmark |
|
|
|
34 |
| TF1 | 1 | 2.00 |
|
|
|
35 |
|
|
|
36 |
@javascript
|
|
|
37 |
Scenario: Show max marks and marks during and immediately after the attempt.
|
|
|
38 |
Given I am on the "Quiz 1" "quiz activity" page logged in as "student1"
|
|
|
39 |
And I click on "Attempt quiz" "button"
|
|
|
40 |
And I should see "Question 1" in the ".info" "css_element"
|
|
|
41 |
And I should see "Not complete" in the ".info" "css_element"
|
|
|
42 |
And I should see "Marked out of 2.00" in the ".info" "css_element"
|
|
|
43 |
And I set the field "True" to "1"
|
|
|
44 |
And I press "Finish attempt ..."
|
|
|
45 |
And I press "Submit all and finish"
|
|
|
46 |
And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
|
|
|
47 |
Then I should see "Finished" in the "Status" "table_row"
|
|
|
48 |
And I should see "Question 1" in the ".info" "css_element"
|
|
|
49 |
And I should see "Correct" in the ".info" "css_element"
|
|
|
50 |
And I should see "Mark 2.00 out of 2.00" in the ".info" "css_element"
|
|
|
51 |
|
|
|
52 |
And I am on the "Quiz 2" "quiz activity" page
|
|
|
53 |
And I click on "Attempt quiz" "button"
|
|
|
54 |
And I should see "Question 1" in the ".info" "css_element"
|
|
|
55 |
And I should see "Not complete" in the ".info" "css_element"
|
|
|
56 |
And I should not see "Marked out of 2.00" in the ".info" "css_element"
|
|
|
57 |
And I set the field "True" to "1"
|
|
|
58 |
And I press "Finish attempt ..."
|
|
|
59 |
And I press "Submit all and finish"
|
|
|
60 |
And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
|
|
|
61 |
And I should see "Finished" in the "Status" "table_row"
|
|
|
62 |
And I should see "Question 1" in the ".info" "css_element"
|
|
|
63 |
And I should see "Correct" in the ".info" "css_element"
|
|
|
64 |
And I should see "Mark 2.00 out of 2.00" in the ".info" "css_element"
|