artillery-engine-meteor
Artillery loading testing for MeteorJS applications
Last updated 4 months ago by kschingiz .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install artillery-engine-meteor 
SYNC missed versions from official npm registry.

MeteorJS Artillery engine

Artillery loading testing for MeteorJS applications

Features

Engine supports meteor features:

  1. Meteor call
  2. Meteor subscribe
  3. Login

Installation and usage

Install Artillery and Meteor engine

npm i -g artillery
npm i -g artillery-engine-meteor

Create artillery config file:

config:
  target: "ws://localhost:3000/websocket" # your app url
  phases:
    - duration: 60
      arrivalRate: 20
  engines:
    meteor: {} # include meteor engine
scenarios:
  - engine: "meteor" # meteor scenario
    flow: # scenario flow
      - login: # login first
          username: USERNAME
          password: PASSWORD
      - call: # then Meteor.call
          name: "method name"
          payload: # make sure payload is Array type
            - _id: "Payload"
      - subscribe: # subscribe to publication
          name: "pub name"
          payload: # make sure payload is Array type
            - "Payload"

Run config:

artillery run config.yml

TODO:

  1. Tests
  2. Add logout and unsubscribe functions

Current Tags

  • 1.0.1                                ...           latest (4 months ago)

2 Versions

  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |