Feature: student gets only one attempt for each quiz As a lecturer So that I can provide the online student with a realistic learning environment I want to give the student only one attempt for each quiz Background: Given each quiz is 40 minutes long And I am on the Quizzes page Scenario: student allowed to attempt quiz When I press the Attempt Quiz button And I have never pressed the Submit button for the same quiz And the same quiz had not been attempted more than 40 minutes ago Then I should see the quiz Scenario: allowed time limit has elapsed When the Attempt Quiz button for this quiz has previously been pressed And the Attempt Quiz button was pressed more than 40 minutes ago Then I should not see the Attempt Quiz button Scenario: quiz had previously been attempted When answers for this quiz have previously been submitted Then I should not see the Attempt Quiz button
Feature: student should get the full 40 minutes for each attempt As a student So that I can complete each quiz without worrying about things beyond my control I want unexpected disruptions such as network problems to not affect my grades Background Given I am on the Quizzes page Scenario: Internet stops working When I press the Attempt Quiz button And I start doing the quiz And the Internet connection goes down And the Internet connection comes back up after a few hours And I go back to the Quizzes page Then I should see the quiz And I should be able to continue with the quiz Scenario: browser crashes When I press the Attempt Quiz button And I start doing the quiz And the browser crashes And I restart the browser And I go back to the Quizzes page Then I should see the quiz And I should be able to continue with the quiz Scenario: closed browser tab by mistake When I press the Attempt Quiz button And I start doing the quiz And I press the close button by mistake And I open a new tab And I go back to the Quizzes page Then I should see the quiz And I should be able to continue with the quiz
Of course, these are probably not well-formed user stories, and I do have utmost respect for our professors (who are volunteering their time to do this); but I think the above do sum up our feelings regarding quizzes pretty accurately.