artillery-engine-cothority
Cothority engine for Artillery
Last updated 2 years ago by gnarula .
AGPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install artillery-engine-cothority 
SYNC missed versions from official npm registry.

Artillery Cothority Engine

About

This engine allows using Artillery.io to load test Cothority using the NPM library @dedis/cothority

Usage

Installation

# Assumes artillery is already installed
npm install -g artillery-engine-cothority

Script Params

  1. config.target is ignored by the engine
  2. Specify the rosterFile location in config.cothority.rosterToml and service in config.cothority.service
  3. Add cothority to cothority.engines
  4. Use engine: "cothority" in your scenario

Example Script

config:
  target: "http://localhost:7003"
  # Authentication Server Host
  authHost: "http://localhost:3000"
  # External javascript file
  processor: "./processor.js"
  phases:
  # 10 users per second linearly ramped up to 50 users per second within 120s
    - duration: 120
      arrivalRate: 10
      rampTo: 50
      name: "Warm up"
  # Stress stest with 50 users per second for 300s
    - duration: 300
      arrivalRate: 50
      name: "Under load"
  cothority:
    service: "evoting"
    rosterToml: "/path/to/public.toml"
  engines:
    cothority: {}
scenarios:
  - engine: "cothority"
    name: "Ping"
    beforeScenario: "somefunction"
    flow:
      - send:
          request: "Ping"
          response: "Ping"
		  beforeRequest: "somefunction2"
          data:
            nonce: "{{ $randomNumber(1, 1000) }}"
          capture:
            - nonce
      - log: "{{ nonce }}"

Run the script

artillery run script.yml

License

AGPL-3.0

Current Tags

  • 1.0.3                                ...           latest (2 years ago)

4 Versions

  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 3
Dependencies (6)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |