Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garethr/gatling-demo
Simple demo of using Gatling assertions
https://github.com/garethr/gatling-demo
Last synced: 10 days ago
JSON representation
Simple demo of using Gatling assertions
- Host: GitHub
- URL: https://github.com/garethr/gatling-demo
- Owner: garethr
- Created: 2014-03-15T13:42:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-15T13:58:16.000Z (almost 11 years ago)
- Last Synced: 2024-12-11T15:56:13.645Z (12 days ago)
- Language: Scala
- Size: 117 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Example of uisng [Gatling](http://gatling-tool.org/) for simple load
testing. In particular focused on making assertions against the results
in a manner useful during continuous integration.[![wercker
status](https://app.wercker.com/status/7e1aaeb43b0c231f46d4725bac3230ae/s/
"wercker
status")](https://app.wercker.com/project/bykey/7e1aaeb43b0c231f46d4725bac3230ae)## Usage
To run the test you'll need Maven installed and then run:
mvn gatling:execute -Dgatling.simulationClass=ExampleSimulation
Note that will make a small number of requests of garethrushgrove.com.
You'll probably want to change the target in the code.## Why
All the interesting bits are in
`src/test/scala/ExampleSimulation.scala`, in particular the assertions.Gatling appears to be the best load testing tool for making rolled up
assertions like the following, which are nice to have if adding load
testing to a continuous integation pipeline.```scala
global.successfulRequests.percent.is(100),
global.responseTime.max.lessThan(1000),
global.responseTime.mean.lessThan(750),
global.requestsPerSec.lessThan(10)
```## Thanks
Most of this is based on the [official maven plugin example](https://github.com/excilys/gatling-maven-plugin-demo).