Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-13517 Moodle 3.8 QA
  3. MDLQA-14091

CLONE - Users are alerted when their session is about to time out and when it has expired

    XMLWordPrintable

    Details

    • Type: Functional Test
    • Status: Passed
    • Priority: Minor
    • Affects Version/s: Moodle 3.8
    • Fix Version/s: Moodle 3.8
    • Component/s: User
    • Labels:

      Description

      This test requires admin access in order to set sessiontimeout in Site administration / Server / Session handling to 5 minutes.

      If you would like to use the QA testing site for running the test, please see the QA testing guide for details of how to request admin access. Begin just after the hourly reset to give yourself plenty of time to complete the test!

      1. Log in as a student and go to any page on the site.
      2. Wait until just before the session is due to time out - about 4 min 30 seconds.
      3. Verify you see the following warning:

        No recent activity
        Your session is about to time out. Do you want to extend your current session?

      4. Click "Cancel".
      5. Wait another 30 or 40 seconds.
      6. Verify you see an alert saying:

        Session expired
        Your session has timed out. Please log in again.
        

      7. Click OK
      8. Verify that the page is NOT reloaded. (This gives you a chance to copy any data you've not yet saved.)
      9. Log in again as the student and go to any page on the site.
      10. Wait until just before the session is due to time out - about 4 min 30 seconds.
      11. After seeing the 'No recent activity' warning, click "Extend".
      12. Wait another 30 or 40 seconds.
      13. Verify that you can continue to any page on the site (because your session is extended).
      14. Wait for at least 5 minutes so that the session times out.
      15. Verify you see the following warning:

        No recent activity
        Your session is about to timeout. Do you want to extend your current session?

      16. Click "Extend".
      17. Verify you see a session expired alert (because you have waited at least 5 minutes for the session to time out).

        Session expired
        Your session has timed out. Please log in again. 

      18. Click OK.
      19. Verify that the page is NOT reloaded.

        Attachments

          Activity

            People

            Assignee:
            jmeuriss Jean-Roch Meurisse
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: