Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Configuration

Brian Jinwright edited this page Jul 12, 2019 · 3 revisions

Anatomy of the LoadLamb.yaml Config File

Example File

name: your_project_name # The name of the project
repo: example # The repo of the site you're testing
user_num: 50 # The number of users to simulate
user_batch_size: 10 # The number of users we create at a time. Value should be from 1-10
user_batch_sleep: 5 # The number of seconds that LoadLamb should sleep between user groups
users: # For all of the login Request classes
  - username: your_user
    password: your_password
  - username: your_user2
    password: your_password 
stages:
- name: staging
  branch: develop
  url: http://staging.example.org/
- name: prod
  branch: master
  url: http://example.org
tasks: # Lists of tasks for each simulated user
- path: / # The path on the site for the request 
  method_type: GET # The HTTP method that should be used
  contains: Welcome # Test to make sure the specified text appears on the page
- path: /login/
  request_class: loadlamb.contrib.requests.login.RemoteLogin
- path: /account/profile/
  method_type: GET
  contains: My Profile
  payload:
  - some_url_var: test
  - some_url_var: test-b
- path: /account/profile/update/
  method_type: POST
  contains: Update My Profile
  data:
  - username: brian
    address: 123 Any Ln
  - username: mikejordan
    address: 123 Broad St
Clone this wiki locally