Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-15457 Moodle 3.11 QA
  3. MDLQA-15967

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

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • Moodle 3.11
    • Moodle 3.11
    • User

      This test requires admin access. 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!

      Test preparation:

      1. Log in as admin and go to Site administration / Server / Session handling.
      2. Set sessiontimeout to 60 seconds and sessiontimeoutwarning to 40 seconds and save changes.

      Note: There is not much time between the steps in this test and if you wait too long before extending the session, you may be logged out!

      Case 1

      This test requires you to wait 20 seconds which is the value of the first warning time (sessiontimeout - sessiontimeoutwarning).

      The idea is to test that you are shown the extend session dialogue after 20 seconds, and that you extend the session. Waiting a further 10-15 seconds confirms that the session was extended but without causing the extend dialogue to be shown for a second time.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Click on the "Extend session" button
      5. Confirm that the modal closes
      6. Wait a further ~10 seconds
      7. Navigate to another page in Moodle
      8. Confirm that you had not been logged out

      Case 2

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the extend session dialogue after 20 seconds, and you cancel the warning. Session expired dialogue is shown after ~40 seconds of extend dialogue.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Click on the "Cancel" button
      5. Confirm that the modal closes*
      6. Wait further ~40 seconds
      7. Confirm that the "Session expired" modal appears

      Case 3

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the extend dialogue after 20 seconds, and there are no interactions. Session expired dialogue is shown after ~40 seconds of extend dialogue.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. Confirm that the "Session expired" modal appears

      Case 4

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the Session expired dialogue, and you are redirected to the login page.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. Confirm that the "Session expired" modal appears
      7. Click on the "Log in again" button
      8. Confirm that you are redirected to login page

      Case 5

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the Session expired dialogue, and you are redirected to the login page automatically by navigating to another page in Moodle.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. Confirm that the "Session expired" modal appears
      7. Navigate to page within Moodle
      8. Confirm that you are redirected to login page

        1. case1.1.png
          578 kB
          Chen Levy
        2. case1.2.png
          547 kB
          Chen Levy
        3. case1.3.png
          200 kB
          Chen Levy
        4. case2.1.png
          598 kB
          Chen Levy
        5. case2.2.png
          547 kB
          Chen Levy
        6. case2.3.png
          547 kB
          Chen Levy
        7. case3.1.png
          600 kB
          Chen Levy
        8. case3.2.png
          550 kB
          Chen Levy
        9. case3.3.png
          549 kB
          Chen Levy
        10. case4.1.png
          600 kB
          Chen Levy
        11. case4.2.png
          549 kB
          Chen Levy
        12. case4.3.png
          549 kB
          Chen Levy
        13. case4.4.png
          91 kB
          Chen Levy
        14. case5.1.png
          597 kB
          Chen Levy
        15. case5.2.png
          547 kB
          Chen Levy
        16. case5.3.png
          547 kB
          Chen Levy
        17. case5.4.png
          165 kB
          Chen Levy
        18. Screenshot from 2021-04-22 09-31-18.png
          180 kB
          Chen Levy
        19. Screenshot from 2021-04-22 09-31-49.png
          178 kB
          Chen Levy
        20. Screenshot from 2021-04-22 09-36-21.png
          185 kB
          Chen Levy
        21. Screenshot from 2021-04-22 09-36-49.png
          183 kB
          Chen Levy
        22. Selection_063.png
          27 kB
          Ilya Tregubov

            chenlevy Chen Levy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.