Load testing for TypeScript developers

Write performance tests with the productivity and type safety of TypeScript. Get compile-time checks, clearer code, and maintainable test suites using the language your team already knows.

Why TypeScript for load testing?

Scale your TypeScript performance tests

Write expressive, type-safe load tests with Gatling’s native TypeScript SDK. Model user flows, assert performance thresholds, and simulate thousands of virtual users; all within your existing dev workflow. Build, test, and scale with confidence using the language your team already knows.

TypeScript-powered load testing

Built natively in TypeScript, our SDK provides complete type definitions for all APIs, ensuring you get the full benefits of static typing throughout your test development process.

Code completion

Autocomplete for Gatling methods and configuration options

Error highlighting

Immediate feedback on syntax errors and type mismatches

Basic refactoring

Rename variables and extract functions like any TypeScript code

Type hints

Hover information shows method signatures and parameter types

Enhanced developer experience

Your IDE becomes a powerful ally with intelligent autocomplete for all Gatling methods and parameters. Discover available options as you type, see parameter hints, and navigate complex test configurations with confidence.

No more memorizing API signatures or digging through documentation.

Build rich, realistic test scenarios

Simulate user journeys with full control over flow, data, and logic, from multi-step API interactions to dynamic payload generation.

Gatling’s code-based approach lets you script complex, real-world behavior using TypeScript, including loops, conditions, feeders, and custom logic. Craft scenarios that reflect exactly how your users behave

Frequently asked questions about Gatling's TypeScript SDK

How does TypeScript improve my load testing workflow?

TypeScript provides compile-time error checking, intelligent code completion, and better refactoring capabilities. You'll catch configuration errors before running tests, get better IDE support, and write more maintainable test code with self-documenting type definitions.

Can I use existing TypeScript/JavaScript libraries in my tests?

Absolutely! Import any npm package or TypeScript library you need. This includes utility libraries like Lodash, date libraries like date-fns, crypto libraries, custom business logic, and any other packages from the npm ecosystem.

Do I need to know TypeScript to use this SDK?

While TypeScript knowledge helps you get the most benefit, the SDK works with regular JavaScript too. You can start with JavaScript syntax and gradually adopt TypeScript features as you become more comfortable. The type definitions will guide you even if you're new to TypeScript.

How do I handle dynamic data and session management?

The TypeScript SDK provides typed session management and data extraction. You can extract values from responses using JsonPath, regex, or CSS selectors with full type safety, and reuse them in subsequent requests with proper autocomplete support.

Work better,
release faster

Empower your teams to design, run, and analyze load tests together, without silos.

Your all-in-one load testing platform

Design complex tests, manage global infrastructure, and turn results into action on one powerful platform.

Need technical references and tutorials?

Minimal features, for local use only