Skip to main content
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Configure multiple scenarios

Create and orchestrate multiple scenarios to model complex user behavior. Configure multiple scenarios to represent different user journeys and traffic mixes in a single load test.

The multiple scenarios feature is currently available only for browser load testing.

Depending on your preferred method, select any one of the following to configure multiple scenarios:

You can configure multiple scenarios with different load parameters for each framework:

Configure multiple scenarios

The Multiple Scenarios feature in the Load Configuration section allows you to simulate diverse user behaviors by executing different test flows simultaneously within a single load test. Instead of running a uniform workload, you can define specific user journeys to run in parallel, creating a more realistic traffic simulation.

All scenarios execute concurrently during the test run. You can configure up to 10 distinct scenarios per test.

Steps to configure multiple scenarios

Enable multiple scenarios

In the Load Configuration section, enable the Multiple Scenarios toggle.

Screenshot of scenario configuration in BrowserStack Selenium load testing UI

Add a new scenario

Click Add Scenario to create a new scenario.

Configure scenario details

For each scenario:

  • Provide a unique name for easy identification.
  • Select the desired test cases using the supported selector types.
  • Provide load configuration details like number of VUs, load profile and regions.

Screenshot of multiple scenarios configuration in BrowserStack Selenium load testing UI

For Selenium tests, the following selector types are supported:

Selector type Description
Config file Selenium configuration file path (string)

Add additional scenarios

Repeat the process to add more scenarios as needed, up to the maximum limit of 10 scenarios per test.

Review the configuration

Review the configuration to ensure all scenarios are set up correctly.

Configure multiple scenarios

The Multiple Scenarios feature in the Load Configuration section allows you to simulate diverse user behaviors by executing different test flows simultaneously within a single load test. Instead of running a uniform workload, you can define specific user journeys to run in parallel, creating a more realistic traffic simulation.

All scenarios execute concurrently during the test run. You can configure up to 10 distinct scenarios per test.

Steps to configure multiple scenarios

Enable multiple scenarios

In the Load Configuration section, enable the Multiple Scenarios toggle.

Screenshot of multiple scenarios configuration in BrowserStack Playwright load testing UI

Add a new scenario

Click Add Scenario to create a new scenario.

Configure scenario details

For each scenario:

  • Provide a unique name for easy identification.
  • Select the desired test cases using the supported selector types.
  • Provide load configuration details like number of VUs, load profile and regions.

Screenshot of scenario configuration in BrowserStack Playwright load testing UI

For Playwright tests, the following selector types are supported:

Selector type Description
Title Test title (string or regex)
Tag Test tag prefixed with @ (string or regex)
File Path Test file path (glob patterns supported)
Directory Directory containing tests (glob patterns supported)
Config File Playwright configuration file

Add additional scenarios

Repeat the process to add more scenarios as needed, up to the maximum limit of 10 scenarios per test.

Review the configuration

Review the configuration to ensure all scenarios are set up correctly.

Configure multiple scenarios

The Multiple Scenarios feature in the Load Configuration section allows you to simulate diverse user behaviors by executing different test flows simultaneously within a single load test. Instead of running a uniform workload, you can define specific user journeys to run in parallel, creating a more realistic traffic simulation.

All scenarios execute concurrently during the test run. You can configure up to 10 distinct scenarios per test.

Steps to configure multiple scenarios

Enable multiple scenarios

In the Load Configuration section, enable the Multiple Scenarios toggle.

Screenshot of multiple scenarios configuration in BrowserStack WebDriverIO load testing UI

Add a new scenario

Click Add Scenario to create a new scenario.

Configure scenario details

For each scenario:

  • Provide a unique name for easy identification.
  • Select the desired test cases using the supported selector types.
  • Provide load configuration details like number of VUs, load profile and regions.

Screenshot of scenario configuration in BrowserStack WebDriverIO load testing UI

For WebDriverIO tests, the following selector types are supported:

Selector type Description
Config file WebDriverIO configuration file path

Add additional scenarios

Repeat the process to add more scenarios as needed, up to the maximum limit of 10 scenarios per test.

Review the configuration

Review the configuration to ensure all scenarios are set up correctly.

You can configure multiple scenarios using the CLI by specifying the desired framework:

Configure multiple scenarios

The Multiple Scenarios feature allows you to simulate diverse user behaviors by executing different test flows simultaneously within a single load test. You can configure up to 10 distinct scenarios per test using two different configuration modes.

Test selector types

For Selenium tests, the following selector types are supported:

Selector type Description
ConfigFile Selenium XML configuration file path
Individual config mode

Each scenario defines its own VUs, duration (or iterations), and regions independently. This mode provides complete control over each scenario’s load characteristics.

browserstack-load.yml
Copy icon Copy
Load percent mode

Distribute global VUs, duration, and regions across scenarios by percentage. All scenarios must use loadPercent and percentages must sum to 100.

browserstack-load.yml
Copy icon Copy

Configure multiple scenarios

The Multiple Scenarios feature allows you to simulate diverse user behaviors by executing different test flows simultaneously within a single load test. You can configure up to 10 distinct scenarios per test using two different configuration modes.

Test selector types

For Playwright tests, the following selector types are supported:

Selector type Description
title Test title (string or regex)
tag Test tag prefixed with @ (string or regex)
file Test file path (glob patterns supported)
dir Directory containing tests (glob patterns supported)
configFile Playwright configuration file
Individual config mode

Each scenario defines its own VUs, duration (or iterations), and regions independently. This mode provides complete control over each scenario’s load characteristics.

browserstack-load.yml
Copy icon Copy
Load percent mode

Distribute global VUs, duration, and regions across scenarios by percentage. All scenarios must use loadPercent and percentages must sum to 100.

browserstack-load.yml
Copy icon Copy

Configure multiple scenarios

The Multiple Scenarios feature allows you to simulate diverse user behaviors by executing different test flows simultaneously within a single load test. You can configure up to 10 distinct scenarios per test using two different configuration modes.

Test selector types

For WebDriverIO tests, the following selector types are supported:

Selector type Description
ConfigFile WebDriverIO XML configuration file path
Individual config mode

Each scenario defines its own VUs, duration (or iterations), and regions independently. This mode provides complete control over each scenario’s load characteristics.

browserstack-load.yml
Copy icon Copy
Load percent mode

Distribute global VUs, duration, and regions across scenarios by percentage. All scenarios must use loadPercent and percentages must sum to 100.

browserstack-load.yml
Copy icon Copy

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