1.0.19 • Published 5 years ago

tank-loader-js v1.0.19

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

tank-loader-js

Script that runs yandex-tank with node.js with given params. It works only on linux systems

Install

Using npm npm install
By the way, the project contains shrinkwrap.yaml file that is for pnpm package manager. Using pnpm allows to decrease space usage.

Schema

--property=<value> --property.any.number.of.nested.props=<value>

There are basic properties which are not included in any section in .yaml config.
These are url and headers.
The url property must be the full url with query params if needed.
The headers can be repeated with different values.
Substitute prefix before any params for each predefined yandex-tank config section.

Preflight authorization

You can request authorization before tank will start shooting. You have to provide url, headers, data, tokenName and authHeader(if differs from tokenName) in auth section. Data must contain valid JSON or a String. tokenName is a token that will be returned from the auth request. authHeader is a header for request credentials token. If not provided the tokenName will be used.

Basic example

--url=http://localhost:9516/rest/account/devices
--headers="session-id":"138ff074-6775-4e10-bf8a-ca8318ff3a54"
--phantom.load_profile.schedule="const(200,1m)"
--phantom.threads=4
--auth.url="http://localhost:9516/rest/auth"
--auth.tokenName="session-id"
--auth.data={{\"user_email\":\"test@test.com\",\"user_password\":\"test\"}
--auth.headers.content-type="application/json"
1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago