0.0.4 • Published 8 years ago

scripted-browser v0.0.4

Weekly downloads
679
License
ISC
Repository
github
Last release
8 years ago

Scripted Browser

A local runner for the New Relic Synthetics Scripted Browser

Circle CI

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