Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Headless Browser system properties

Below is a table of the properties you must have as you set up the ServiceNow® Headless Browser for Automated Test Framework.

Property nameTypeDefault valuePurpose
sn_atf.headless.browser_optionsstring"--no-sandbox,--disable-gpu"The CLI options are passed to the browser on startup
sn_atf.headless.default_browserstringChromeDefault browser used when starting up headless requests
sn_atf.headless.default_osstringLinuxOperating system of host machine
sn_atf.headless.docker_image_namestring Name:tag of the Docker image on the host machine
sn_atf.headless.docker_window_secondsint60If the Docker container fails to start up twice in this amount of time, the service will not attempt to restart
sn_atf.headless.enabledtrue/falsefalseDetermines whether the instance attempts to create headless client test runners for scheduled UI test runs
sn_atf.headless.heartbeat_enabledtrue/falsetrueWhen property is true, Docker container sends a REST API request every minute to the instance to check that the sys_atf_agent is still online, and stops the container if the record status is "offline" or the record no longer exists.
sn_atf.headless.heartbeat_uristring/api/now/atf_agent/onlineThe URL of the heartbeat endpoint so container can verify browser is still responsive
sn_atf.headless.images_check.enabledtrue/falsefalseWhen this property is true, the instance verifies that the requested Docker image:tag is present on the host before test execution
sn_atf.headless.login_button_idstringsysverb_loginThe HTML ID of the login page Submit/Login button
sn_atf.headless.login_pagestringlogin.doURL of login page that the browser navigates to
sn_atf.headless.password_field_idstringuser_passwordThe HTML ID of the input field for the password on the Login page
sn_atf.headless.request_timeout_secint200Number of seconds that HTTP requests being sent to the Docker host have until timeout
sn_atf.headless.retry_countint10Number of times the instance checks for agent coming online before cancelling the test run
sn_atf.headless.runner_banner_idstringtest_runner_bannerThe ID of the element verifying that client test runner page loaded correctly
sn_atf.headless.runner_urlstringatf_test_runner.do?sysparm_nostack=true&sysparm_scheduled_tests_only=true&sysparm_headless=trueURL of the scheduled client test runner page and its query parameters
sn_atf.headless.secret_gidstring1000The GID of the Docker container default user
sn_atf.headless.secret_idstring The ID of the Docker secret on host machine
sn_atf.headless.secret_namestring Name of the Docker secret on host machine
sn_atf.headless.secret_pathstring/run/secrets/<secret_name>Path where Docker secret file exists: (Learn more: https://docs.docker.com/engine/swarm/secrets/#how-docker-manages-secrets)
sn_atf.headless.secret_uidstring1000The UID of the Docker container default user
sn_atf.headless.service_clean_exclude_liststring Service ID exceptions that should NOT be deleted during the instance service cleanup job. This job runs every night and deletes any services that are on the host and past their expiration time.
sn_atf.headless.service_stop_deletestrue/falsefalseOn completing of a test execution, if this property is true the instance will NOT send the service delete requests thus keeping the service and containers around on the host. Useful for debugging.
sn_atf.headless.timeout_minsint1440Number of minutes before Docker service automatically shuts down
sn_atf.headless.user_field_idstringuser_nameThe HTML ID of the input field for the username on the Login page
sn_atf.headless.usernamestring Username of user who logs in to the instance
sn_atf.headless.validation_idstringheadless_vp_validationThe ID of the element confirming verification page has loaded
sn_atf.headless.validation_pagestringatf_headless_validation_pageThe URL of the validation page on the instance
sn_atf.headless.vp_has_role_idstringheadless_vp_has_roleThe ID of the element verifying that the user has correct roles
sn_atf.headless.vp_success_idstringheadless_vp_successThe ID of the element signifying entire page loaded correctly

Parent Topic:Headless Browser for Automated Test Framework

Related topics

Headless Browser for Automated Test Framework

Exploring Automated Test Framework