Skip to main content
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

Protocol load testing using Gatling

Run a protocol load test on BrowserStack Load Testing

Prerequisites

  • BrowserStack Username and Access key. You can find these under your account profile.
  • An existing Gatling script (written in Scala, Java, or Kotlin).

Run a test

Based on your preferred method of performing load tests, use one of the following methods:

Create a new test

You can start a new test either from the Quick Start page or the Load Tests page on the Load testing dashboard.

On the dashboard, click Create Load Test.

Screenshot of load testing dashboard showing the run a new test button highlighted

Enter a Test Name for your load test, select API Only, and click Upload scripts

Dashboard showing test name field and type of load test to run

Upload scripts

Upload your Gatling scripts.

Screenshot of load testing dashboard asking to add Gatling scripts for load testing

BrowserStack Load Testing supports two modes for running Gatling tests:

Build tool project (Recommended)

ZIP your complete Maven, Gradle, or SBT project directory. The build config file (pom.xml, build.gradle, build.gradle.kts, or build.sbt) should be at the root of the ZIP or one level deep.

Your simulation files can be written in Scala, Java, or Kotlin.

Project structure example (Maven)
Copy icon Copy
Project structure example (Gradle)
Copy icon Copy
Project structure example (Gradle Kotlin DSL)
Copy icon Copy
Project structure example (SBT)
Copy icon Copy

Build-tool projects use the bundled Gatling 3.10.5 runtime. Ensure your project is compatible with this version. Maximum upload size for Gatling zips is 100 MB.

Select the simulation class

After uploading, BrowserStack automatically detects simulation classes (FQCNs) from your project. If one simulation class is found, it is auto-selected. If multiple simulation classes are found, select the one you want to execute from the dropdown. The simulation class is the fully qualified class name of your Gatling simulation to run, for example com.example.BasicSimulation.

Once you have verified the configuration, click Configure Load to move to the next step.

You can also run load tests using the sample scripts if you want to try out the feature before uploading your own files.

You can configure the following load parameters to customize your load test:

Run the test

After configuring your load parameters, click Run Test to start your load test.

For more information on analyzing your test results, refer to View protocol test results.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle