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

Load testing with Nightwatch

Run a load test using Nightwatch scripts on BrowserStack Load Testing

Prerequisites

  • BrowserStack Username and Access key. You can find these under your account profile.
  • An existing automated test suite written in Nightwatch

Use our load testing sample project to quickly get started.

Supported versions

The following framework versions are recommended for Nightwatch load tests:

Framework Node version Recommended version
Nightwatch Node.js 24 Nightwatch 3.7.0

Run a test

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

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 Browser Only and click Upload scripts

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

Upload scripts

In this step, upload your Nightwatch automation project as a ZIP file. Select your framework (for example, Nightwatch) from the dropdown, then drag and drop your ZIP file (up to 250MB) or click to select it.

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

After you upload your ZIP file, the dashboard automatically validates your project. If validation is successful, you will see a confirmation message and a summary of the detected configuration and dependencies.

You can review and confirm the configuration file (your nightwatch config file) and any other dependencies (path of package.json) identified in your project.

Dashboard showing successful validation of a Nightwatch project ZIP with config and dependencies

Ensure that your package.json and nightwatch.config.js config files are placed at the root level of your project.

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 test

After you finish configuring load parameters, click RUN TEST .

If you run into issues, try the troubleshooting steps or contact us for help.

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