This is a scenario for stress-testing a Magento store using gatling. The scenario simulates two types of users: "buyers" and "browsers".
- buyers - Navigate to the home page -> category page -> product page; add product to cart; view cart; proceed through checkout as a guest. These represent shoppers, and add additional backend load to the test. For the time being, all buyers purchase the same product.
- browsers - Navigate to the home page -> category page -> category page -> product page. These represent anonymous visitors. Categories and products are chosen at random from a csv containing all of the catalog urls.
- A site running Magento Enterprise Edition.
- 100k sku catalog sample data.
- Download and extract gatling.
- Clone this repo into the gatling root directory.
- Run
gatling.sh
to choose and initiate a simulation. - Results will appear in /results as auto-generated HTML/JavaScript pages. A web server will be useful if you want to view these results.