1.0.3 • Published 2 years ago

newrelic-scripted-browser v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Scripted Browser

A local runner for the New Relic Synthetics Scripted Browser

New Relic came up with a solution for running Selenium on a scheduled frequency. It also features a performance dashboard and a data-driven SLA. This is a new feature offered under their Synthecits monitoring suite called Scripting Monitors. The Selenium runner monitor type is called a “Scripted Browser.”

Scripted Browser uses a syntax for the runner that is unique to New Relic.

//Visit https://docs.newrelic.com
$browser.get("https://docs.newrelic.com");

Since Selenium testing is difficult locally, it’s 100X that as a website. I needed a local runner for their syntax, so it could be a copy-paste implementation.

Usage

npm install scripted-browser

This project has a detailed example in ./example. To run the example, cd into that directory, npm_install, and run commands from there.

Run

To run a test out of the ./spec folder

node node_modules/scripted-browser --run=search-a-website

Running with proxy

To run a test out of the ./spec folder

node node_modules/scripted-browser --run=search-a-website --proxy=localhost:8888
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago