Skip to content

Instantly share code, notes, and snippets.

@vigneshshanmugam
Last active May 11, 2021 18:16
Show Gist options
  • Save vigneshshanmugam/1b4ebc7b9248747e4d5b9483d14260d9 to your computer and use it in GitHub Desktop.
Save vigneshshanmugam/1b4ebc7b9248747e4d5b9483d14260d9 to your computer and use it in GitHub Desktop.

It is recommended to run Synthetics tests using the official Heartbeat docker image which contains all the required dependencies and also the chomium browser which is required for running tests.

Prerequisites:
  • Have Node.js installed on the system which comes along with Node Package Manager(NPM).

For running Synthetics outside of docker environment, we need the follow the below steps.

  1. Install playwright chromium NPM library which will install the necessary playwright dependency and also download the chromium browser required for running the synthetics tests.

    npm install -g playwright-chromium
  2. Install @elastic/synthetics NPM library globally which heartbeat requires for running all inline journeys

    npm install -g @elastic/synthetics
  3. Download and install Heartbeat based on the platform and run heartbeat with configured monitors via heartbeat.yml. To run synthetic monitors outside of the docker environment, we would need to set the environment variable ELASTIC_SYNTHETICS_CAPABLE to true.

    env ELASTIC_SYNTHETICS_CAPABLE=true ./heartbeat -e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment