Rev 11 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@mod @mod_quiz @quiz @quiz_reponsesFeature: Basic use of the Responses reportIn order to see how my students are progressingAs a teacherI need to see all their quiz responsesBackground: Using the Responses reportGiven the following "users" exist:| username | firstname | lastname || teacher | The | Teacher || student1 | Student | One || student2 | Student | Two |And the following "courses" exist:| fullname | shortname || Course 1 | C1 |And the following "course enrolments" exist:| user | course | role || teacher | C1 | editingteacher || student1 | C1 | student || student2 | C1 | student |And the following "question categories" exist:| contextlevel | reference | name || Course | C1 | Test questions |And the following "activities" exist:| activity | name | intro | course | idnumber | preferredbehaviour || quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 | interactive |And the following "questions" exist:| questioncategory | qtype | name | template || Test questions | numerical | NQ | pi3tries |And quiz "Quiz 1" contains the following questions:| question | page | maxmark | displaynumber || NQ | 1 | 3.0 | 1a |@javascriptScenario: Report works when there are no attemptsWhen I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacherThen I should see "Attempts: 0"And I should see "Nothing to display"And I set the field "Attempts from" to "enrolled users who have a quiz attempt"@javascriptScenario: Report works when there are attemptsGiven user "student1" has started an attempt at quiz "Quiz 1"And user "student1" has checked answers in their attempt at quiz "Quiz 1":| slot | response || 1 | 1.0 |And user "student1" has checked answers in their attempt at quiz "Quiz 1":| slot | response || 1 | 3.0 |And user "student1" has checked answers in their attempt at quiz "Quiz 1":| slot | response || 1 | 3.14 |And user "student1" has finished an attempt at quiz "Quiz 1"When I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacherThen I should see "Attempts: 1"And I should see "Student One"And I should not see "Student Two"And I set the field "Attempts from" to "enrolled users who have, or do not have, a quiz attempt"And I set the field "Which tries" to "All tries"And I should see "Response 1a"And I press "Show report"And "Student OneReview attempt" row "Response 1a" column of "responses" table should contain "1.0"And "Student OneReview attempt" row "Status" column of "responses" table should contain ""And "Finished" row "Grade/100.00" column of "responses" table should contain "33.33"And "Finished" row "Response 1a" column of "responses" table should contain "3.14"And "Student Two" row "Status" column of "responses" table should contain "-"And "Student Two" row "Response 1a" column of "responses" table should contain "-"@javascriptScenario: Report does not allow strange combinations of optionsGiven I am on the "Quiz 1" "mod_quiz > Responses report" page logged in as teacherAnd the "Which tries" "select" should be enabledWhen I set the field "Attempts from" to "enrolled users who do not have a quiz attempt"Then the "Which tries" "select" should be disabled