Socket
Book a DemoInstallSign in
Socket

@loadmill/agent

Package Overview
Dependencies
Maintainers
3
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loadmill/agent

Loadmill agent library

npmnpm
Version
0.1.3
Version published
Maintainers
3
Created
Source

Loadmill Agent

Users of Loadmill can use @loadmill/agent to run API and Load tests locally or on their servers.

Setup

In order to use the Loadmill Agent you will need to generate an API Token.

Installation

Locally

Using npm:

npm i @loadmill/agent --save

Using yarn:

yarn add @loadmill/agent

Globally

Using npm:

npm i @loadmill/agent -g

Using yarn:

yarn add @loadmill/agent -g

API

CLI

Start an agent:

loadmill-agent start -t INSERT_TOKEN_HERE

The start command accepts the following options:

  • --token - (REQUIRED). can be retrieved through the UI, see above.
  • --loads-capacity - (default = 50). Optionally you can supply the number of users this agent can simulate. can be 0 in order to not run load tests.
  • --no-api - Can be supplied in order to prevent the agent from running API tests.
  • --config - Alternatively, you can supply a path to a yaml file that will contain all the options above.

Extended Example

loadmill-agent start -t INSERT_TOKEN_HERE --no-api --loads-capacity 80

loadmill-agent start --config /path/to/config.yml

Programmatically

Start the agent:

const {start} = require('@loadmill/agent');
const stop = start({
  token: 'INSERT_TOKEN_HERE',
  // loadsCapacity: 80,
  // api: false
});

// Stop the agent at a later time

Learn More

FAQs

Package last updated on 25 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts