VIRAL JAIN
Points to cover:
1. What is Gatling
2. Recording
3. Execution
4. Use of feeder and saveAs option
What is Gatling
Gatling is an open-source load testing framework.
The software is designed to be used as a load testing tool for analyzing and measuring the
performance of a variety of services, with a focus on web applications.
The Project's aims include:
1. High performance
2. Ready-to-present HTML reports
3. Scenario recorder and developer-friendly DSL (Domain-specific language)
Gatling folder structure
How to operate Recorder
1. Give Listening port (of browser you want to record)
2. Give Outgoing proxy
3. Give Class name (Name for scala script)
Execute scala scripts
Feeder
Gatling DSL provides facility of using feeder
We can inject data in our scenario using feeder
We will see example of csv feeder in next slide
How to use csv feeder
1. csv file should be available in data folder
2. Initialize feeder in scala script
val feeder = csv("assets23072015_1.csv")
3. Get one feeder row in our scenario
feed(feeder)
4. Use value
${asset}
${workspaceId}
5. Repeat step 3 and 4 to use next row of csv
saveAs facility
Real time scenarios require to save data from one response and use it in another request
saveAs option in Gatling gives this facility.
Let’s see a script to see use of saveAs option
Some important Gatling links
http://gatling.io/#/
http://gatling.io/docs/2.1.7/cheat-sheet.html
https://groups.google.com/forum/#!forum/gatling
Any questions?
Thanks,
Viral Jain
Er.viral.jain@gmail.com
in.linkedin.com/pub/viral-jain-lean-six-sigma/23/b24/b9a/

Gatling overview

  • 1.
  • 2.
    Points to cover: 1.What is Gatling 2. Recording 3. Execution 4. Use of feeder and saveAs option
  • 3.
    What is Gatling Gatlingis an open-source load testing framework. The software is designed to be used as a load testing tool for analyzing and measuring the performance of a variety of services, with a focus on web applications. The Project's aims include: 1. High performance 2. Ready-to-present HTML reports 3. Scenario recorder and developer-friendly DSL (Domain-specific language)
  • 4.
  • 5.
    How to operateRecorder 1. Give Listening port (of browser you want to record) 2. Give Outgoing proxy 3. Give Class name (Name for scala script)
  • 7.
  • 8.
    Feeder Gatling DSL providesfacility of using feeder We can inject data in our scenario using feeder We will see example of csv feeder in next slide
  • 9.
    How to usecsv feeder 1. csv file should be available in data folder 2. Initialize feeder in scala script val feeder = csv("assets23072015_1.csv") 3. Get one feeder row in our scenario feed(feeder) 4. Use value ${asset} ${workspaceId} 5. Repeat step 3 and 4 to use next row of csv
  • 10.
    saveAs facility Real timescenarios require to save data from one response and use it in another request saveAs option in Gatling gives this facility. Let’s see a script to see use of saveAs option
  • 13.
    Some important Gatlinglinks http://gatling.io/#/ http://gatling.io/docs/2.1.7/cheat-sheet.html https://groups.google.com/forum/#!forum/gatling
  • 14.