Headless Browser setup for Microsoft Windows
Summarize
Summary of Headless Browser setup for Microsoft Windows
The ServiceNow® Headless Browser for Automated Test Framework (ATF) allows for automated testing without manual browser intervention. This setup guide focuses on the installation process for Microsoft Windows, emphasizing that it is a legacy feature, with recommendations to use the ATF Test Generator and Cloud Runner for those on Cloud instances.
Show less
Prerequisites
- Multi-Factor Authentication (MFA) must be disabled in your instance.
- Required roles: Admin on the ServiceNow instance and local administrator on the host machine.
- Supported operating system: Windows Server 2019 v10.0.17763.737. Other versions are not supported; a Linux host is recommended if requirements are not met.
- Necessary software installations: Docker, Java keytool, and OpenSSL via Chocolatey.
- Ensure two-way communication between the instance URL and the server, with appropriate firewall settings.
Steps to Set Up the Headless Browser for Windows
Follow these steps for the one-time setup:
- Install Docker on your Windows server.
- Generate TLS/SSL certificates to secure the Docker REST API.
- Configure Docker to authenticate all requests.
- Pull the Docker image from the Public Registry.
- Create a Docker secret for the ServiceNow user’s password.
- Set up your instance to support the Headless Browser.
- Configure ATF with the necessary properties.
- Verify the setup procedures to ensure successful implementation.
Key Outcomes
By completing this setup, ServiceNow customers will enable automated testing through the Headless Browser on Windows, streamlining their testing processes. However, for enhanced functionality and ease of use, transitioning to Cloud Runner is recommended for those eligible.
The ServiceNow® Headless Browser for Automated Test Framework (ATF) provides automation so you can skip having to manually open a browser during testing. The Headless Browser setup is available in both Linux and Microsoft Windows. This topic covers the setup for Windows.
There are several sequential procedures to follow in the one-time setup. Below are the instructions for the Microsoft Windows setup.
Prerequisites
- Make sure that the following programs are installed on your Windows server:
- Docker: Install Docker for Headless Browser setup for Microsoft Windows
- Java keytool: Chocolatey tool for javaruntime
- OpenSSL: Chocolatey tool for openssl
- Two-way communication
- There must be two-way communication between the instance URL and your server.
- Find the IP address of your server and get your hostname. You can use one or both of them, but you need at least one. Make sure the address or hostname are visible from your ServiceNow instance.
- See My IP Address to find the IP address ranges of your instance. You can then configure your server to allow inbound access to all of the indicated IP addresses/ranges.
- Use Port 2376 or your own default port for this procedure. Make sure your server's firewall rules allow inbound requests on this port from the IP addresses you get from the instance.
Note:If you don't have a hostname and are connecting via the IP address, you can enter the IP address and put "localhost" in the Hostname environment variable. - To learn more, see Use TLS (HTTPS) to protect the Docker daemon socket.
Steps to set up the Headless Browser for Windows
Follow these seven steps (plus verification) to set up the Headless Browser for Windows.