Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-1 Moodle QA testing
  3. MDLQA-17382

As admin I can configure Safe Exam Browser on Windows

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Major Major
    • None
    • Original - DO NOT REPORT TEST RESULTS HERE
    • Quiz

      Notes

      • The following tests should be run on Windows.
      • SEB == Safe Exam Browser, going forward.
      • By default SEB requires the application to be run on a computer with a single built-in screen. This is configurable, but there is currently a bug in the Windows version that does not allow a computer with external screens only (i.e. a Tower), so it's recommended to test on a laptop without any other screens plugged in.
      • Note: On Windows, the SEB reloads after logging in and you will have to log in again.
      • This test was formerly known as Test SEB Javascript API query of Browser Exam Key (BEK) and Config Key (CK) keys if you need to search on Tracker.

      Site setup

      • Download and install SEB Windows 3.3.2 or up
      • As admin go to Site administration → Plugins → Activity modules → Safe Exam Browser templates.
      • Add a new template, name it "Test template" and upload an unencrypted SEB config file (use the provided file or create one with the SEB config tool).
      • Set Enabled to Yes and Save changes.
      • Create a test user and test course, and enroll the user as a student.
        Next, create three versions of a quiz in the test course:
      1. Create the first quiz named SEB quiz - Manual:
        1. In the Safe Exam Browser section of the quiz settings, set Require the use of Safe Exam Browser to Yes - Configure manually.
        2. Save the settings and add a question.
      2. Duplicate this quiz and rename it SEB quiz - Template:
        1. In the Safe Exam Browser section, set Require the use of Safe Exam Browser to Yes - Use an existing template, select Test template and save the settings.
      3. Duplicate the quiz again, rename it SEB quiz - Upload config:
        1. In the Safe Exam Browser section, set Require the use of Safe Exam Browser to Yes - Upload my own config, upload an unencrypted SEB config file and save the settings.

      Test 1 - Quiz access with 'Configure manually' SEB settings

      1. Open Moodle in a regular web browser (E.g. Firefox, Chrome)
      2. Log in as the test user and go to test course
      3. Go to test quiz: 'SEB quiz - Manual'
      4. You should see a button with the label: "Launch Safe Exam Browser"
      5. Click on "Launch Safe Exam Browser"
      6. Confirm to open the link via Safe Exam Browser
      7. On the SEB window, log in as a test user.
      8. You should see the quiz landing page and a button with the label: 'Attempt quiz'
      9. Click on 'Attempt quiz'
      10. You should see the first question on the quiz.
      11. Close the SEB window via the power button icon on the lower right-hand corner of the window.

      Test 2 - Quiz access with 'Use an existing template' SEB settings

      1. Go back to the regular web browser window. You may need to reload the page.
      2. Go to test quiz: 'SEB quiz - Template'
      3. You should see a button with the label: "Launch Safe Exam Browser"
      4. Click on "Launch Safe Exam Browser"
      5. Confirm to open the link via Safe Exam Browser
      6. Log in as a test user.
      7. You should see the quiz landing page and a button with the label: 'Attempt quiz'
      8. Click on 'Attempt quiz'
      9. You should see the first question on the quiz.
      10. Close the SEB window

      Test 3 - Quiz access with 'Upload my own config' SEB settings

      1. Go back to the regular web browser window. You may need to reload the page.
      2. Go to test quiz: 'SEB quiz - Upload config'
      3. You should see a button with the label: "Launch Safe Exam Browser"
      4. Click on "Launch Safe Exam Browser"
      5. Confirm to open the link via Safe Exam Browser
      6. Log in as a test user.
      7. You should see the quiz landing page and a button with the label: 'Attempt quiz'
      8. Click on 'Attempt quiz'
      9. You should see the first question on the quiz.
      10. Close the SEB window

      Test 4 - Quiz access with 'Use SEB client config' SEB settings

      1. Go back to the regular web browser window. You may need to reload the page.
      2. Go to test quiz: 'SEB quiz - Client config'
      3. You should see the message: "This quiz has been configured to use the Safe Exam Browser with client configuration."
      4. You should NOT see a button with the label: "Launch Safe Exam Browser"
      5. Windows client configuration:
        1. Open the start menu
        2. Open the SEB Configuration Utility
        3. On the General tab:
          • Set the Start URL to the quiz's URL
          • Set a quit password (e.g. just use 'quit')
        4. On Config File tab:
          • "Use config file for..." to "configuring clients"
          • Press "Configure Client"
        5. Launch the Safe Exam Browser
      6. Log in as a test user, you should see the quiz landing page
      7. You should no longer see the message: "This quiz has been configured to use the Safe Exam Browser with client configuration."
      8. You should see a button with the label: 'Attempt quiz'
      9. Click on 'Attempt quiz'
      10. You should see the first question on the quiz.
      11. Close the SEB window

      Test 5 - Quiz access denied with 'Upload my own config'

      1. Go back to the regular web browser window. You may need to reload the page.
      2. Go to test quiz: 'SEB quiz - Upload config invalid key'.
      3. You should see a button with the label: "Launch Safe Exam Browser"
      4. Click on "Launch Safe Exam Browser"
      5. Confirm to open the link via Safe Exam Browser
      6. Log in as a test user, you should see the quiz landing page
      7. You should see an alert with the message: "Checking access to Safe Exam Browser..."
      8. After a short delay, the page should reload.
      9. You should see a modal pop-up message: "The Safe Exam Browser keys could not be validated. Check that you're using Safe Exam Browser with the correct configuration file."
      10. Once you close the modal, you should NOT see a button with the label: 'Attempt quiz'
      11. Close the SEB window

      Test 6 - Quiz with an old version of SEB that doesn't support JS API

      1. Install a Safe Exam Browser application that supports config keys but not the JS API.
      2. Go back to the regular web browser window. You may need to reload the page.
      3. Go to test quiz: 'SEB quiz - Upload config'
      4. You should see a button with the label: "Launch Safe Exam Browser"
      5. Click on "Launch Safe Exam Browser"
      6. Log in as a test user, you should see the quiz landing page
      7. You should see a button with the label: 'Attempt quiz' (or continue attempt)
      8. Click on 'Attempt quiz' (or continue attempt)
      9. You should see the first question of the quiz.

            Unassigned Unassigned
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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