Standard Proctoring

The .setup() method accepts a proctoringOptions object that controls what AutoProctor monitors and how the proctoring UI behaves.

await apInst.setup(proctoringOptions)

Every key is optional. To use a default, leave the key out: unknown keys, wrong types and null (for most keys) make .setup() throw, after showing the error in a browser alert.

Tracking Options

The trackingOptions key defines which monitoring features are active during a test.

const proctoringOptions = {
  trackingOptions: {
    audio: true,
    numHumans: true,
    tabSwitch: true,
    // ... see full list below
  }
}
OptionTypeDefaultDescription
audiobooltrueDetect sound above a minimum threshold. Learn more
numHumansbooltrueDetect zero or multiple faces in the camera feed. Learn more
tabSwitchbooltrueDetect when the candidate switches to another tab or window. Learn more
captureSwitchedTabbooltrueWhen tabSwitch is on, take a screenshot of what the candidate switched to. The candidate is asked to share their entire screen at the start. Set to false to skip the screen-share prompt. Learn more
photosAtRandombooltrueCapture photos of the candidate at random intervals. If testDuration is provided, captures are distributed evenly across the test duration.
numPhotosAtRandomint50Number of random photos to capture (max 100). SDK 4.x defaults to 25.
preventMultipleMonitorsboolfalseBlock the test while a second monitor, TV or projector is connected. Without it, monitors are not tracked at all.
detectSuspiciousObjectsboolfalseFlag a mobile phone in the camera view. Learn more
recordSessionboolfalseRecord what the candidate does on your page for playback. Learn more. Costs extra
recordTestTakerboolfalseRecord a continuous camera and microphone video of the candidate. Learn more. Costs extra
showCamPreviewboolfalseShow the candidate a small live preview of their camera during the test. It does not affect what is recorded or detected.
testTakerPhotoboolfalseCapture a photo of the candidate at the start of the test.
forceFullScreenboolfalseRequire the candidate to take the test in full-screen mode. Requires testContainerId to be set.
forceDesktopboolfalseRequire the candidate to use a desktop or laptop. Phones and tablets are blocked; SDK 5.0 also fires error 4001.
auxiliaryDeviceboolfalseRequire the candidate to pair their phone for 360-degree proctoring. Learn more. Costs extra
idCardVerificationobjectall checks offVerify candidate identity against a photo ID. Learn more. Costs extra
multiSessionAttemptboolfalseDetect when the same test attempt is opened from another device, browser, tab or IP address. Learn more
impersonationboolfalseCompare random photos with the initial candidate photo to detect if a different person is taking the test. Turns on testTakerPhoto and photosAtRandom. Learn more. Costs extra
disableCopyPasteboolfalseBlock copy (Ctrl+C / Cmd+C) and paste (Ctrl+V / Cmd+V) keyboard shortcuts during the test.
detectMultipleScreensboolfalseDeprecated. In SDK 5.0 it is an alias for preventMultipleMonitors: passing true blocks the test while a second monitor is connected. In 4.x, true only logs it. Use preventMultipleMonitors instead.

General Options

These options are set at the top level of the proctoringOptions object, alongside trackingOptions.

OptionTypeDefaultDescription
testDurationintnot setExpected test duration in minutes. Used to spread random photos across the test. If you leave it out, random photos are spread over the first 1000 seconds.
showHowToVideobooltrueShow the how-to video before the test begins.
lookupKeystrnot setAn arbitrary string for grouping test attempts. See Lookup Key.
userDetails.namestrnot setCandidate name, displayed in the proctoring report.
userDetails.emailstrnot setCandidate email, displayed in the proctoring report.
testContainerIdstrnot setDOM element ID wrapping the test content. Required when forceFullScreen is true.
informUser.testAdminbooltrueCollect evidence for the proctoring report. If you pass informUser, pass both keys.
informUser.testTakerbooltrueShow real-time violation notifications to the candidate during the test.
alertBeforeUnloadbooltrueAsk the browser to confirm before the candidate leaves or reloads the page during the test.
sessionRecordingSelectorsToMaskarray[]CSS selectors whose text is masked in the session recording. Learn more
sessionRecordingSelectorsToBlockarray[]CSS selectors left out of the session recording. Learn more

Options for the auxiliary device (auxDeviceContainerId and auxDevicePath) are on the Auxiliary Device page.

Advanced Options

You rarely need these.

OptionTypeDefaultDescription
brandstrAutoProctorProduct name used in some candidate-facing messages.
capturePhotoModalTitlestrbuilt-in textTitle of the dialog that takes the candidate's photo.
capturePhotoModalTextstrbuilt-in textBody text of that dialog.
grantMediaAccessUrlstrAutoProctor's help pageLink shown to candidates who have blocked camera or microphone access.
assetsBaseUrlstrAutoProctor's CDNLoad the SDK's models and recording libraries from your own server (SDK 5.0). See Self-hosting assets.

The candidate-facing text is in English. The options above are the only text you can override.

Lookup Key

AutoProctor identifies test attempts by testAttemptId, not by any test or quiz identifier from your system. If you want to group and filter test attempts later — for example, by quiz ID or course ID — pass a lookupKey when initializing the test. It can be any string meaningful to your application.