Overview and Getting Started
AI-powered assistant for Gatling performance testing in your VS Code IDE
The Gatling AI Assistant for VS Code integrates AI-powered development tools directly into your editor. Write, optimize, and understand Gatling simulations in JavaScript, TypeScript, Java, Scala, and Kotlin with intelligent assistance.
What it does
- Create simulations: Generate new test scenarios from scratch with guided prompts
- Explain code: Select any Gatling code to get contextual explanations
- Refine selection: Improve existing code with AI-powered suggestions
- Ask questions: Get instant answers about Gatling concepts, patterns, and best practices
- Convert LoadRunner scripts: Automatically migrate LoadRunner C scripts to Gatling
Installation and setup
Install the extension
From VS Code Marketplace:
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X/Cmd+Shift+X) - Search for “Gatling AI Assistant”
- Click Install
From command line:
code --install-extension GatlingCorp.gatling-ai-assistant
For VSCodium and compatible editors (using Open VSX):
codium --install-extension GatlingCorp.gatling-ai-assistant
Configure an API key
The extension requires an API key from one of these providers:
- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Run
Gatling: Set API Key - Choose your provider:
- OpenAI (recommended): platform.openai.com
- Anthropic Claude: console.anthropic.com
- Azure OpenAI: portal.azure.com
- Paste your API key when prompted
API keys are stored securely in VS Code’s secrets storage and never sent to Gatling servers.
Getting started
- Open the Gatling panel: Click the Gatling icon in the Activity Bar (left sidebar)
- Start chatting: Ask questions about Gatling or request help with your project
- Explain code: Select code and choose “Explain Code” from the context menu
- Create a simulation: See Create a Simulation for step-by-step guidance
Features
Create a Simulation
Generate new Gatling test scenarios with AI guidance. The assistant helps structure simulations effectively, choose appropriate protocols, and set up realistic user behavior patterns.
Explain Code
Select any portion of your Gatling code and receive contextual explanations. Understand complex patterns, configuration options, and performance implications.
Refine Selection
Improve existing code with AI-powered refinements. Select code and specify your goal—optimize performance, add error handling, improve clarity, or apply best practices. Review changes with side-by-side diff before accepting.
Contextual Chat
Ask the AI assistant questions about Gatling concepts, best practices, and implementation details. Get help with optimization and troubleshooting.
LoadRunner Script Converter
Convert existing LoadRunner C scripts into Gatling simulations. Right-click .c files in the Explorer to convert single scripts, or use the Command Palette for batch conversion of multiple scripts.
Configuration
Settings
Access settings via File → Preferences → Settings → Extensions → Gatling AI Assistant:
| Setting | Default | Description |
|---|---|---|
gatling.context.enableRedaction |
true |
Automatically redact API keys, passwords, and secrets from prompts |
gatling.context.sendConfigContent |
true |
Include Gatling configuration file contents in AI requests |
gatling.simulationDirectory.enableAutoDetection |
true |
Auto-detect and share project structure information |
API key management
Set or update: Run Gatling: Set API Key in the Command Palette
Remove: Run Gatling: Remove API Key in the Command Palette
Privacy and security
- No intermediary: Direct communication with your chosen AI provider (OpenAI, Anthropic, or Azure)
- Local storage: API keys encrypted and stored securely in VS Code
- No Gatling logging: Your code and conversations are never logged by Gatling
- Automatic redaction: API keys, passwords, tokens, and credentials are automatically stripped before sending code to AI
- Workspace isolation: Chat history is isolated per workspace
What’s shared with AI providers:
- Selected code (with automatic redaction of sensitive data)
- Current file name and programming language
- Current file content (when relevant to the query)
- Workspace and folder names
- Project dependencies from
package.json,pom.xml,build.gradle, orbuild.sbt - Nearby Gatling simulation files (limited selection)
- Open file names (limited to relevant files)
- Gatling configuration file contents (unless disabled via settings)
Supported providers
| Provider | Model | Best For |
|---|---|---|
| OpenAI | gpt-4o-2024-11-20 | General use, fast responses, comprehensive Gatling knowledge |
| Anthropic | claude-3-5-sonnet-20241022 | Complex reasoning, detailed analysis, nuanced code review |
| Azure OpenAI | gpt-4o-2024-11-20 | Enterprise deployments, data residency, compliance requirements |
Requirements
- VS Code: 1.85.0 or higher (including Cursor and compatible forks)
- OS: Windows, macOS, or Linux
- Network: Internet connection required for AI provider communication
Support
- Report issues or request features: ProductBoard
License
Licensed under the Gatling Enterprise Component License.