Gatling is a performance testing tool for web applications and APIs. It helps evaluate system performance, scalability, and stability under load.
High Performance: Simulates thousands of users with low resource consumption.
Scripting in Scala: Write tests in Scala or use the Gatling Recorder for auto-generated scripts.
Protocol Support: Works with HTTP and WebSocket protocols.
Reports: Provides detailed HTML reports with metrics and graphs.
Integration: Easily integrates with CI/CD tools like Jenkins or GitLab.
To test the load capacity of web applications.
To assess API performance.
To identify system bottlenecks.
Download and extract the tool. No installation is required; just ensure Java is installed on your system.
You can create a test script in two ways:
Use the Gatling Recorder to record user actions, which will automatically generate a test script.
Write a test script manually in Scala, defining the scenario, requests, and user behavior.
Launch Gatling from the terminal, select your test script, and let it execute.
Gatling generates a detailed HTML report with metrics like response times, error rates, and throughput.
Configure user injection profiles (e.g., ramping users up over time).
Add assertions to validate performance goals.
Use CSV files for dynamic test data.