Quick Command Examples

Get started quickly with simple command-line examples for common load testing scenarios.

Basic Commands

Simple GET Request

lps --url https://www.example.com -rc 1000

Description: Sends 1000 GET requests to the specified URL.

POST Request with Inline Payload

lps --url https://www.example.com -rc 1000 --httpmethod "POST" --payload "Inline Payload"

Description: Sends 1000 POST requests with an inline payload.

POST Request with File Payload

lps --url https://www.example.com -rc 1000 --httpmethod "POST" --payload "Path:C:\Users\User\Desktop\LPS\data.json"

Description: Sends 1000 POST requests with a payload from a file.

Quick Start Script

Create a simple YAML configuration for a basic smoke test:

name: QuickStart
rounds:
  - name: Smoke
    numberOfClients: 1000
    iterations:
      - name: Hello
        httpRequest:
          url: https://httpbin.org/get
          method: GET

Run it with:

lps run quick_start.yaml