Sie sind auf Seite 1von 10

• Load Testing

• What is gatling
• Features of gatling
• GUI recorder
Gatling VS JMeter
Gatling VS JMeter
• JMeter saves projects as an XML file with • Gatling saves simulation as Scala classes
jmx extension with scala extension
• JMeter is GUI oriented • Gatling Tool is Command-Line
• JMeter you really need to use the built in • Gatling is merely writing Scala code
GUI tool to generate your load tests. • Extension Language : Scala
• Extension Language : Java, Beanshell, • Load Reports : HTML
Javascript, Jexl
• Load Reports : CSV, XML, Embedded
Tables, Graphs, Plugins
Load testing
What is Gatling
• Gatling is a highly capable load testing tool. It is designed for ease of use, maintainability and
high performance
• Gatling comes with excellent support of the HTTP protocol that makes it a tool of choice for
load testing any HTTP server
• Based on an expressive DSL, the scenarios are self explanatory. They are easy to maintain and
can be kept in a version control system
• Gatling is a message based architecture rather than a thread bases architecture as it is able to
execute virtual users over messages, i.e gatling can execute thousands of virtual users on
single instance.
Features of gatling
• Excellent support for HTTP protocol – great for testing web applications and calling
APIs
• Simulation scripts that we write for gatling are written in scala.
Even if we don’t know scala there is not problem as gatling comes with a
expressive DSL which make it a lot easier to use, it make tests quite readable and
easy to understand
• Comes with GUI recorder built in, access the proxy it records all the navigations
and it captures the traffic into a gatling scripts
• Very version control system and CI friendly
It is very CI friendly as it executes tests from command line in maven or gradle easy
to execute performance test as part of CI build as it is message based it can run on
single machine
GUI Recorder

GUI recorder comes in two


distinct mode
• HTTP proxy mode
We would need to change our
browser to point all traffic to our
proxy
• HAR converter mode
It is a http archive file. We can
record and save the file and
export it to the recorder to create
the gatling file
Script execution
Test reports
1. When test is actually running
2. Results when the test is completed(html
based report)

Das könnte Ihnen auch gefallen