项目作者: rafaelaazevedo

项目描述 :
Artillery script examples for Performance Tests
高级语言: JavaScript
项目地址: git://github.com/rafaelaazevedo/artilleryExamples.git
创建时间: 2019-05-10T15:00:37Z
项目社区:https://github.com/rafaelaazevedo/artilleryExamples

开源协议:MIT License

下载


artilleryExamples

Artillery script examples for Performance Tests

Endurance tests

Run performance tests creating 1 user every 30 seconds for 1 hour

Run the command:

  1. npm run endurance:${ENV}
Name Purpose Type Required Default
ENV Host where the tests are going to run String Yes QA

Load tests

Run performance tests creating 2 users/second for 30 minutes

Run the command:

  1. npm run load:${ENV}
Name Purpose Type Required Default
ENV Host where the tests are going to run String Yes QA

Using docker

Run the command:

  1. docker run --rm --restart=no --name=performance-tests -t rafazzevedo/artilleryexamples:latest endurance:${ENV}
Name Purpose Type Required Default
ENV Host where the tests are going to run String Yes QA

Using kubernetes

Run the command:

  1. kubectl run performance-tests -i --rm --namespace=${ENV} --restart=Never --image=rafazzevedo/artilleryexamples:latest --image-pull-policy=Always -- endurance:jenkins:${ENV}
Name Purpose Type Required Default
ENV Host where the tests are going to run String Yes QA