Giter Club home page Giter Club logo

google-gatling's Introduction

google-gatling

Getting Started with Gatling

Gatling is a high performance load testing tool which uses asynchronous event-driven IO. This makes it very efficient for high concurrency scenarios, allowing you to get many thousands of simulated users from a single machine. Simulation scripts are written in Scala with a user friendly DSL that is easily version controlled.

SUMMARY

We have seen Gatling in action with its compact and elegant DSL where you can understand a load test script by just reading the script, without looking at the documentation first!

It also provides us with very useful test reports where we can see important characteristics of the test results such as requests/sec and response times.

We also used Gatling to point out a sever scalability issue with the REST service that we used in the test.

Quick Start

Simple showcase of a maven project using the google-gatling

To test it out, simply execute the following command :

mvn gatling:execute -Dgatling.simulationClass=GoogleSimulation -Dusers=<no-of-concurrent-users> -Drest_api_url=<rest_api_url-name>

For running google simulation:

mvn gatling:execute -Dgatling.simulationClass=GoogleSimulation -Dusers=1 -Drest_api_url=www.google.com

For running supermanorder simulation:

mvn gatling:execute -Dgatling.simulationClass=SupoermaOrderScenario -Dusers=1 -Drest_api_url=localhost:4242

Gatling shell command line

./gatling.sh -sf ./src/test/scala/ -rf ~/results/ -s GoogleSimulation
./run_gatling.sh

Jenkins CI job directory

${JENKINS_HOME} + '/jobs/' + ${JOB_NAME} + '/builds/' + ${BUILD_NUMBER} + '/results/'

loading the Gatling program onto Jenkins and running it with a bash shell script

#!/bin/bash -x
JAVA_OPTS="-Drest_api_url=www.google.com"
export JAVA_OPTS

./gatling.sh -sf ./src/test/scala/ -rf ./results/ -s GoogleSimulation

google-gatling's People

Watchers

John Montoya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.