/gatling:gatling-convert-from-loadrunnerfrom gatling
Converts HP/Micro Focus/OpenText LoadRunner scripts to Gatling simulations. Maps vuser_init/Action/vuser_end sections to Gatling before/scenario/after blocks.
Ships in gatling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Action.c, vuser_init.c, vuser_end.c: the standard three-file layout.c or .h files in a LoadRunner script directory (look for a .usr or .lrs descriptor file nearby).c file containing all sections.c and .h files before proceeding.dat files as plain text filesdefault.cfg file in the same directory and read it if present.prm file in the same directory and read it if presentEither find an existing Gatling project or initialize a new one:
IF a variable needs to be saved inside the function AND the function is used within an Expression Language string:
When parsing dates, use java.time.format.DateTimeFormatter.ofPattern with system default zone and store it
outside a function to avoid creation cost overhead.
For regular expression, use java.util.regex.Pattern.compile and store it outside a function to avoid creation cost
overhead.
Be aware of DSL differences between all the languages Gatling support.
Some methods needs to be followed by .on() in Java, JavaScript and Kotlin but not Scala:
exitBlockOnFail { ... }: exitBlockOnFail().on(...)group("name") { ... }: group("name").on(...)Session handling is different, e.g.:
session.getString("name") in Java, JavaScript and Kotlin, session("name").as[String] in ScalaA LoadRunner script has up to three logical sections. Map them as follows:
vuser_init: before block on the simulationAction: one or more scenario + execvuser_end: after block on the simulationIf the script only has an Action section (or a single .c file), produce a simulation with just a scenario.
default.cfgIF a default.cfg file is present for runtime settings that affects HTTP behavior:
Check the [General] section:
AutomaticTransactions=1 and/or AutomaticTransactionsPerFunc=1: LoadRunner can auto-wrap actions or function calls into transactions. In Gatling, scenario and request names serve this purpose directly; no group() blocks are needed hereDefaultRunLogic: read the file, check RunLogicActionOrder in the [RunLogicRunRoot] section actions order, chain them with execContinueOnError=0, or no ContinueOnError key (VuGen's default): a Vuser leaves the iteration at its first error and starts the next one; wrap the body of each iteration in exitBlockOnFail(...) inside the loop (exitHereIfFailed() would end the virtual user instead); mention this to the userContinueOnError=1: the Vuser carries on after an error, which Gatling does by default; add nothingFailTransOnErrorMsg=1: apply the logic of lr_error_message as Gatling checks if possible, wrap the transaction inside a exitBlockOnFail() blockCheck the [ThinkTime] section:
Options=NOTHINK: keep pauses times but add .disablePauses() to setUpOptions=RECORDED: keep pauses timesOptions=MULTIPLY: keep original pauses times, Gatling does not have a direct equivalent; mention this to the userOptions=RANDOM: keep pauses times, use ThinkTimeRandomLow and ThinkTimeRandomHigh, add .uniformPauses() to setUp with the closest number that matches the original plus or minus valuesCheck the [WEB] section:
CustomUserAgent: add .userAgentHeader() to httpProtocolSearchForImages=1: add .inferHtmlResources() to httpProtocolweb_url(name, url, ...): http(name).get(url)web_submit_data(name, ...): http(name).post(url).formParam(...)web_submit_form(name, ...): http(name).post(url).formParam(...)web_custom_request(name, method, url, ...): http(name).httpRequest(method, url)web_add_header(name, value): .header(name, value)web_add_auto_header(name, value): httpProtocol.header(name, value) or per-request .header(name, value)web_add_header is one-shot: it applies only to the immediately following request, then is cleared; never hoist it into httpProtocol.
web_add_auto_header persists from the point of the call onward. If it appears before any request in the script, map it to httpProtocol.header(...); if it appears mid-script, add .header(...) to each request that follows it.
For web_submit_data, extract each ITEMDATA name/value pair as a .formParam(name, value).
web_reg_find(text=...): .check(bodyString.contains(...))web_reg_save_param(param, LB=, RB=): .check(regex("LB(.*?)RB").saveAs("param"))web_reg_save_param_ex(...): .check(regex(...).saveAs(...)) or .check(xpath(...))web_reg_save_param_json(...): QueryString is a JSONPath expression ($.items[0].id), keep it as .check(jsonPath(...))Place .check(...) calls on the request that triggers the response being checked.
web_reg_* functions are registered before the request they apply to, find the next web_url/web_submit_data and attach the check there.
{ParamName} (LR parameter substitution): #{paramName} (Gatling EL)lr_save_string(value, "param"): .exec(session -> session.set("param", value))lr_param_sprintf("param", fmt, ...): .exec(session -> session.set("param", ...)) with string formattinglr_eval_string("{param}"): session.getString("param") or "#{param}" in EL stringsFor parameter files (.dat files referenced in the script or .usr descriptor), convert them to Gatling feeders.
Copy the data file to the Gatling project's resources directory.
IF a .prm file is present, check it for each [parameter:<parameter name>] entries:
ColumnName="Col <number>":ColumnName="<column name>":Delimiter="<char>": use csv, tsv, or separatedValues("<file path>", '<char>')SelectNextRow="Random": use .random()SelectNextRow="Same line as <parameter name>": ensure configuration is the same as <parameter name>SelectNextRow="Sequential": use .circular()SelectNextRow="Unique": use .queue() but it has no real Gatling equivalent; mention this to the userIn LoadRunner, transactions are the only way to name and track individual requests, so developers routinely wrap every single request in a transaction. In Gatling, HTTP requests are named and tracked individually in reports, making single-request groups redundant.
Apply this rule when mapping lr_start_transaction / lr_end_transaction pairs:
group() wrapper entirely. Use the transaction name as the http("name") request name instead.group("name") block as usual.When FailTransOnErrorMsg=1 applies to a single-request transaction, wrap the request directly in exitBlockOnFail() without a surrounding group().
lr_output_message, lr_log_message: remove these or convert to a comment, Gatling handles logging at the framework levellr_error_message: keep, wrap inside an exec block with session and use .markAsFailed() on session if necessarylr_rendezvous("name"): remove, Gatling does not have a direct equivalent; mention this to the user if presentAny files referenced in the script (e.g., request body files, upload files, data files) should be copied to the Gatling project's resources directory and referenced via RawFileBody("filename") or a feeder.
Use the build-tool skill if available.
After the conversion, inform the user of:
HttpProtocol configuration (base URL, common headers) into a shared httpProtocol objectformParam blocks with a map if there are many parametersWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gatling/gatling-ai-extensions --plugin gatling7 skills in this plugin
/gatling-bootstrap-projectBootstrap/set up a Gatling project to get started with Gatling load tests./gatling-build-toolsGuide for deploying and starting Gatling tests on Gatling Enterprise. Use this skill when the user wants to deploy, push, or start tests on Gatling Enterprise using Gatling build tools (aka plugins) and Configuration as Code./gatling-configuration-as-codeGuide to generate or update the .gatling/package.conf package descriptor file for Gatling Enterprise deployment. Use this skill when the user wants to configure, set up, or modify their package descriptor file, stop criteria, or load generator settings using Configuration as Code./gatling-convert-from-jmeterGuide for converting Apache JMeter tests to Gatling. Use this skill whenever the user mentions JMeter, .jmx files, JMeter test plans, or asks to convert or migrate a JMeter test to Gatling./gatling-detect-existing-projectFind an existing Gatling project, detect language and build tool used/gatling-mcpGuidance for using the Gatling MCP server's tools (tests, runs, packages, source repositories, locations, teams) to inspect and drive Gatling Enterprise. Use whenever calling those tools, before assuming an ID, role, or format that isn't spelled out in the tool's own description.Other plugins' skills for the same job