Commands Documentation
This section provides a detailed reference for the commands and options supported by the LPS Tool.
General Usage
The LPS Tool is used for Load, Performance, and Stress testing of web applications. Below is the general usage format:
lps [command] [options]
Global Options
Options:
-n,--name,--NAME <name>: Specifies the plan name. Defaults toQuick-Test-Plan.-rn,--roundname,--ROUNDNAME <roundname>: Specifies the round name. Defaults toQuick-Test-Round.-sd,--startupDelay,--startupdelay,--STARTUPDELAY <startupDelay>: Adds a startup delay (in seconds) to your round.-nc,--numberofclients,--NUMBEROFCLIENTS <numberofclients>: Specifies the number of clients for the test round. Defaults to1.-ad,--arrivaldelay,--ARRIVALDELAY <arrivaldelay>: Specifies the time in milliseconds to wait before a new client arrives.-dcc,--delayclientcreation,--DELAYCLIENTCREATION <delayclientcreation>: Delays client creation until needed.-rip,--runinparallel,--RUNINPARALLEL <runinparallel>: Executes your iterations in parallel.-s,--save,--SAVE: Saves the test as a YAML or JSON file to disk. Defaults toFalse.-u,--url,--URL <url>: Specifies the URL for the test.-hm,--httpmethod,--HTTPMETHOD,--method,--METHOD <method>: Specifies the HTTP method. Defaults toGET.-h,--header,--HEADER <header>: Specifies custom headers for the request.-in,--iterationname,--ITERATIONNAME <iterationname>: Specifies the iteration name. Defaults toQuick-Http-Iteration.-im,--iterationmode,--ITERATIONMODE <iterationmode>: Defines the iteration mode. Defaults toR.-mt,--maximizethroughput,--MAXIMIZETHROUGHPUT <maximizethroughput>: Maximizes test throughput.-rc,--requestcount,--REQUESTCOUNT <requestcount>: Specifies the number of requests.-d,--duration,--DURATION <duration>: Specifies the duration in seconds.-cdt,--cooldowntime,--COOLDOWNTIME <cooldowntime>: Specifies the cooldown time in milliseconds.-bs,--batchsize,--BATCHSIZE <batchsize>: Specifies the batch size for requests.-hv,--httpversion,--HTTPVERSION <httpversion>: Specifies the HTTP version. Defaults to2.0.-dhtmler,--downloadhtmlembeddedresources,--DOWNLOADHTMLEMBEDDEDRESOURCES: Downloads embedded resources in HTML responses.-sr,--saveresponse,--SAVERESPONSE <saveresponse>: Saves HTTP responses.-sh2c,--supporth2c,--SUPPORTH2C <supporth2c>: Enables support for HTTP/2 over clear text.-p,--payload,--PAYLOAD <payload>: Specifies the request payload.-fr,--failurerule,--FAILURERULE <failurerule>: Specifies a failure rule using inline metric expression format. Can be used multiple times. Format:"metric[;errorStatusCodes]"(e.g.,"ErrorRate > 0.05;>= 500").-tr,--terminationrule,--TERMINATIONRULE <terminationrule>: Specifies a termination rule using inline metric expression format. Can be used multiple times. Format:"metric;gracePeriod[;errorStatusCodes]"(e.g.,"ErrorRate > 0.10;00:05:00;>= 500").--version: Shows the version information.-?,-h,--help: Displays help and usage information.
Commands
create
Description:
Creates a test plan.
Usage:
lps create <config> [options]
Options:
--name <name>: Specifies the plan name.-?,-h,--help: Displays help and usage information.
round
Description:
Creates a new test round.
Usage:
lps round <config> [options]
Options:
-n,--name,--NAME <name>: Specifies the round name.-burl,--baseUrl,--baseurl,--BASEURL <baseUrl>: Specifies the base URL of the target endpoint.-sd,--startupDelay,--startupdelay,--STARTUPDELAY <startupDelay>: Adds a startup delay (in seconds) to your round.-nc,--numberofclients,--NUMBEROFCLIENTS <numberofclients>: Specifies the number of clients. Defaults to1.-ad,--arrivaldelay,--ARRIVALDELAY <arrivaldelay>: Specifies the time in milliseconds to wait before each new client arrives.-dcc,--delayclientcreation,--DELAYCLIENTCREATION <delayclientcreation>: Delays client creation until needed.-rip,--runinparallel,--RUNINPARALLEL <runinparallel>: Executes your iterations in parallel.-t,--tag,--TAG <tag>: Adds a tag to the round to execute later by tag(s).-?,-h,--help: Displays help and usage information.
iteration
Description:
Adds an HTTP iteration to a test round.
Usage:
lps iteration <config> [command] [options]
Options:
-rn,--roundname,--roundName,--ROUNDNAME <roundname>: Specifies the round name.-n,--name,--NAME <name>: Specifies the iteration name.-im,--iterationMode,--iterationmode,--ITERATIONMODE <iterationMode>: Defines the iteration mode.-sd,--startupdelay,--STARTUPDELAY <startupdelay>: Adds a startup delay to your iteration.-mt,--maximizethroughput,--MAXIMIZETHROUGHPUT <maximizethroughput>: Maximizing test throughput. Maximizing the throughput will result in higher CPU and Memory usage [default: False].-rc,--requestcount,--REQUESTCOUNT <requestcount>: Specifies the number of requests for the iteration.-d,--duration,--DURATION <duration>: Specifies the duration of the iteration.-cdt,--cooldowntime,--COOLDOWNTIME <cooldowntime>: Specifies the cooldown time in milliseconds.-bs,--batchsize,--BATCHSIZE <batchsize>: Specifies the batch size for the iteration.-hm,--httpmethod,--HTTPMETHOD,--method,--METHOD <method>: Specifies the HTTP method.-hv,--httpversion,--HTTPVERSION <httpversion>: Specifies the HTTP version. Defaults to2.0.-u,--url,--URL <url>: Specifies the URL for the iteration.-dhtmler,--downloadhtmlembeddedresources,--DOWNLOADHTMLEMBEDDEDRESOURCES: Downloads embedded resources in HTML responses.-sr,--saveresponse,--SAVERESPONSE <saveresponse>: Saves HTTP responses.-h2c,--supporth2c,--SUPPORTH2C <supporth2c>: Enables support for HTTP/2 over clear text.-h,--header,--HEADER <header>: Specifies headers for the iteration.-p,--payload,--PAYLOAD <payload>: Specifies the request payload.-g,--global,--GLOBAL: Saves as a global iteration. Defaults toFalse.-fr,--failurerule,--FAILURERULE <failurerule>: Specifies a failure rule using inline metric expression format. Can be used multiple times. Format:"metric[;errorStatusCodes]"(e.g.,"ErrorRate > 0.05;>= 500").-tr,--terminationrule,--TERMINATIONRULE <terminationrule>: Specifies a termination rule using inline metric expression format. Can be used multiple times. Format:"metric;gracePeriod[;errorStatusCodes]"(e.g.,"ErrorRate > 0.10;00:05:00;>= 500").-?,-h,--help: Displays help and usage information.
capture
Description:
Enables the capture of HTTP response and optionally headers during the execution of the test.
Usage:
lps capture <config> [options]
Options:
-in,--iterationname,--ITERATIONNAME <iterationname>: Specifies the iteration name.-rn,--roundName,--roundname,--ROUNDNAME <roundName>: Specifies the round name.-to,--TO <to>: Specifies the variable which will hold the response.-h,--header,--HEADER <header>: Specifies headers to be captured.-as,--AS <as>: Reads the variable as (Text, JSON, or XML).-mg,--makeGlobal,--makeglobal,--MAKEGLOBAL <makeGlobal>: Stores the response as a global variable so it can be used across multiple rounds.-r,--regex,--REGEX <regex>: Applies a regex to the captured value if referenced and resolved.-?,-h,--help: Displays help and usage information.
variable
Description:
Creates a global variable.
Usage:
lps variable <config> [options]
Options:
-n,--name,--NAME <name>: Specifies the variable name.-e,--environment,--ENVIRONMENT <environment>: Specifies the environment(s) for the variable.-v,--value,--VALUE <value>: Specifies the variable value.-as,--AS <as>: Reads the variable as (Text, JSON, XML or CSV).-r,--regex,--REGEX <regex>: Applies a regex to the variable value.-?,-h,--help: Displays help and usage information.
run
Description:
Runs an existing test plan or round based on the provided configuration file.
Usage:
lps run <config> [options]
Arguments:
<config>: Specifies the test configuration file name (YAML or JSON).
Options:
-rn,--roundname,--ROUNDNAME <roundname>: Specifies the round name to run.-t,--tag,--TAG <tag>: Runs all rounds that match the specified tag(s).-e,--environment,--ENVIRONMENT <environment>: Runs the test against a specific environment or environments.-?,-h,--help: Displays help and usage information.
cluster
Description:
Configure cluster (master/worker) settings for distributed load testing.
Usage:
lps cluster [options]
Options:
-mip,--masternodeip <masternodeip>: Specifies the master node IP address or hostname.-gp,--grpcport <grpcport>: Specifies the gRPC port for cluster communication.-ew,--expectednumberofworkers <expectednumberofworkers>: Specifies the expected number of worker nodes.-miw,--masternodeisworker: Treats the master node as a worker node as well (master will also execute test iterations).-?,-h,--help: Displays help and usage information.