TypeScript SDK

Empower your TypeScript developers to create load tests.

Use one of the most popular languages to write realistic user journeys. 
 
 

Code and test in the same language

Your TypeScript developers write functional tests in TypeScript, now they can write load tests in the same language. Simplifying test creation and maintenance.

Include your QA team in load testing

TypeScript is a preferred language for QA testers. Use the Gatling TypeScript SDK to involve your QA team in load testing. Closer collaboration between your developers and testers can shorten your development lifecycle.

Include resources from the npm registry

Creating realistic tests often means using existing packages and libraries. Gatling allows you to import resources from npm to save time and build highly accurate tests.

Run a TypeScript SDK test with our interactive demo

Developer and QA-friendly tooling

The TypesScript SDK is written natively in TypeScript and provides all of the familiar TypeScript capabilities that developers and QA testers depend on to maintain clean, bug-free tests.

Take advantage of:

  • Type definition support to work more efficiently with typed libraries and reduce debugging time.

  • IDE syntax autocomplete to help ensure you call the correct function name in your script.

  • Local text execution mode to debug and validate the test before deploying them to Gatling Enterprise.
Feature 1 - TypeScript

Import and manipulate test resources

Load testing often requires handling vast quantities of test data, including data generated during the test used in subsequent steps. The TypeScript SDK lets you:

  • Import packages and libraries to bring your existing test resources.

  • Validate, store, and transform server responses.

  • Programmatically import request data like authentication credentials.

  • Add SLA thresholds to assess your application performance quickly.
Feature 2 - TypeScript

Convert browser actions into TypeScript tests

The TypeScript SDK has a built-in web recorder for capturing user scenarios and converting them into load test scripts. Some key features include:

  • Capturing browser-based actions like clicks, inputs, and natural pauses between actions.

  • Handling SSL certificates for HTTPS requests

  • Create clean, minimalist scripts with filters for unnecessary requests like .css files.

  • Convert tests from other tools into Gatling scripts by importing HAR files

Feature 3 - TypeScript

Start testing now!

Test Gatling Enterprise for free! No credit card is required.

Dive into our other features

Frequently asked questions about the TypeScript SDK

Can I use the TypeScript SDK with Gatling Enterprise?

The TypeScript SDK and Gatling Enterprise are perfectly integrated. After writing load tests in your local development environment, you can package and deploy the tests to the Gatling Enterprise platform through:

  • the UI
  • CLI commands
  • your CI/CD pipeline
Can I use other npm libraries with my load tests?

The TypeScript SDK allows you to import libraries to speed up test development and write more realistic simulations. Because we rely on GraalVM to translate the tests to run on a Java Virtual Machine, we don’t have access to the Node.js SDK during runtime. This means libraries with a Node.js SDK dependency won’t work with the TypeScript SDK.

Can I use JavaScript?

The TypeScript SDK is written in TypeScript but it is 100% compatible with vanilla JavaScript. If you want to work with JavaScript, please see our dedicated JavaScript SDK page