Skip to content

Commit

Permalink
Merge branch 'master' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
dbradf authored Feb 9, 2017
2 parents 609ddf3 + e244813 commit e66267e
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,41 +61,16 @@ After, when the synthetics code has been completed, it can be uploaded to New Re
$ synthmanager update --name "New Synthetic Name"
```

## Running Synthetics locally

### Prerequisites

New Relic runs synthetics using the chrome web browser. So that is the recommended way to run them locally. In order to run them, the following need to be setup:

* Chrome Web browser
* Selenium Server (http://www.seleniumhq.org/download/), should be running
* Chrome Driver (https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver), should be in the path

### Running Synthetics

Once the prerequisites are installed and a synthetic is created, it can be run locally. This can be done with an IDE or using node:

```
$ node synthetics/newSyntheticName.js
```

## Command Line Usage

### Global options

These options can be used with any command:

* --apikey - Specify API key to use to access New Relic.
* --verbose - Provide verbose logging output.
* --debug - Provide debug logging output.

### Create a new synthetic

```
synthmanager create
```

Create a synthetic in New Relic and a file to contain the synthetic code. Possible options:

Create a synthetic in New Relic and a file to contain the synthetic code. The local file will be created in the directory the command was run. This is where you will put your test code.

* --name <synthetic_name> - Name of synthetic. This is the name used in New Relic as well as how it should be refered to by other commands
* --filename <filename> - Filename where the synthethics code should go. This file will be created under the 'synthetics' directory. The file should not already exist (required for SCRIPT_BROWSER and SCRIPT_API synthetics).
Expand Down Expand Up @@ -131,6 +106,13 @@ synthmanager import

Import an existing synthetic from New Relic.

### Global options

These options can be used with any command:

* --apikey - Specify API key to use to access New Relic.
* --verbose - Provide verbose logging output.
* --debug - Provide debug logging output.

### See a list of available loctions

Expand Down Expand Up @@ -174,6 +156,24 @@ Available configuration options are:
* syntheticsDirectory - Directory to store synthetics file in (default: './synthetics/').
* syntheticsListFile - File to store information about created synthetics in (default: './synthetics.json').

## Running Synthetics locally

### Prerequisites

New Relic runs synthetics using the chrome web browser. So that is the recommended way to run them locally. In order to run them, the following need to be setup:

* Chrome Web browser
* Selenium Server (http://www.seleniumhq.org/download/), should be running
* Chrome Driver (https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver), should be in the path

### Running Synthetics

Once the prerequisites are installed and a synthetic is created, it can be run locally. This can be done with an IDE or using node:

```
$ node synthetics/newSyntheticName.js
```

## Samples

See the samples directory for an example of what Synthetics look like and a sample of how synthetics might be added to a continuous delivery system.
See the samples directory for an example of what Synthetics look like and a sample of how synthetics might be added to a continuous delivery system.

0 comments on commit e66267e

Please sign in to comment.