Skip to main content

Tools and functions to make testing Appian with Locust easier

Project description

Appian Locust is a wrapper library around Locust for load testing Appian. This library is intended to be used as an alternative to tools such as Jmeter and Load Runner.

Appian Locust capabilities

  • Logging in and logging out

  • Form interactions (filling/submitting)

  • Finding and interacting with basic components on a SAIL interface

  • Navigating to records/reports/sites

For full documentation, visit the docs page.

Disclaimer: This library is continuously evolving. Currently the main focus is supporting essential use-cases. We are happy to accept contributions to further extend functionality, address bug fixes and improve usability. Please see the Contributing section and feel free to reach out.

Quick Installation Guide

This is a quick guide to getting up and running with the appian-locust library. You will need Python 3.10 installed on your machine before proceeding.

Setup

  1. Install appian-locust using pip, for more comprehensive projects we recommend using pipenv.

pip install appian-locust

If using pipenv, simply start from the following Pipfile:

[packages]
appian-locust = {version = "*"}

[requires]
python_version = "3.10"

[pipenv]
allow_prereleases = true
  1. Download the sample test example_locustfile.py from the Appian Locust repo and run it.

locust -f example_locustfile.py

If everything is set up correctly, you should see a link to the Locust web interface, which you can use to start test runs and view results.

Build from source

Clone the repository:

git clone -o prod git@gitlab.com:appian-oss/appian-locust.git

Install the library globally:

pip install -e appian-locust

If you’re using a virtualenv or a dependency management tool (e.g. pipenv), you can do the same type of install, but you will want to be in the context of the virtualenv (i.e. source the virtualenv), and you’ll need to pass the path to the repository you cloned.

Note: It’s highly recommended that you use a virtual environment when installing python artifacts. You can follow the instructions here to install virtualenv and pip.

If you have issues installing, make sure you have the proper prerequisites installed for Locust and its dependencies. If you’re having trouble on Windows, check here

Troubleshooting

  • Do not have permissions to clone appian-locust

    • Ensure you have added you ssh key to your profile. See here for how to do this.

  • “locust is not available”

    • Verify that you ran pip install -e appian-locust

  • “Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known”

    • check that host_address is specified correctly in your locust test file.

  • “Login unsuccessful, no multipart cookie found…make sure credentials are correct”

    • check that auth specifies a valid username and password combination for the site you’re testing on in your locust test file.

  • “General request and response debugging”

    • Add self.client.record_mode = True to your HttpUser subclass. Files will be placed in /record_responses where the runner is executed.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

appian-locust-2.17.1.tar.gz (85.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

appian_locust-2.17.1-py3-none-any.whl (107.3 kB view details)

Uploaded Python 3

File details

Details for the file appian-locust-2.17.1.tar.gz.

File metadata

  • Download URL: appian-locust-2.17.1.tar.gz
  • Upload date:
  • Size: 85.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.14

File hashes

Hashes for appian-locust-2.17.1.tar.gz
Algorithm Hash digest
SHA256 9b0e729f1465bac37c47a6b1337213e2ffddab7c5ebc3295adb1198ad7f0e35c
MD5 ade9a88913826c4d5796aa70212c3314
BLAKE2b-256 0017f1e051e0389c8ab04a4cd7865168b887c5781ea7da2fa494cd0ec5e6aeca

See more details on using hashes here.

File details

Details for the file appian_locust-2.17.1-py3-none-any.whl.

File metadata

  • Download URL: appian_locust-2.17.1-py3-none-any.whl
  • Upload date:
  • Size: 107.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.14

File hashes

Hashes for appian_locust-2.17.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62751039ee4bc3daec6fef437776f4184413889c77cf2040a1859a11790cf7e7
MD5 1309b07e9843dd6bc1b9369242dd23a2
BLAKE2b-256 1eef1d32d5d5838a43bfa49f696626cfd02a8cf917709b1fa55f1facf9f381e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page