Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
.. what_is_appian_locust-inclusion-begin-do-not-remove
####################################### What is Appian Locust? #######################################
Appian Locust is a wrapper library around Locust <https://locust.io>
__ 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
.. what_is_appian_locust-inclusion-end-do-not-remove
For full documentation, visit the docs page <https://appian-locust.readthedocs.io/en/latest/>
__.
.. disclaimer-inclusion-begin-do-not-remove
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 <contributing.html>
__ section and feel free to reach out.
.. disclaimer-inclusion-end-do-not-remove
.. quick_start-inclusion-begin-do-not-remove
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.
pip
, for more comprehensive projects we recommend using pipenv
... code-block:: bash
pip install appian-locust
If using pipenv
, simply start from the following Pipfile
:
.. code-block:: toml
[packages]
appian-locust = {version = "*"}
[requires]
python_version = "3.10"
[pipenv]
allow_prereleases = true
2. Download the sample test example_locustfile.py <https://gitlab.com/appian-oss/appian-locust/-/blob/main/examples/example_locustfile.py>
_ from the Appian Locust repo and run it.
.. code-block:: bash
locust -f example_locustfile.py
If everything is set up correctly, you should see a link to the Locust web interface <https://docs.locust.io/en/stable/quickstart.html#locust-s-web-interface>
_, which you can use to start test runs and view results.
How to Write a Locust Test <how_to_write_locust_tests.html>
__ section.How to Run Locust <how_to_run_locust.html>
__ section.Clone the repository:
.. code-block:: bash
git clone -o prod git@gitlab.com:appian-oss/appian-locust.git
Install the library globally:
.. code-block:: bash
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 <https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/>
__ 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 <https://github.com/locustio/locust/issues/1208#issuecomment-569693439>
__
Do not have permissions to clone appian-locust
here <https://docs.gitlab.com/ee/user/ssh.html#add-an-ssh-key-to-your-gitlab-account>
__ for how to do this."locust is not available"
pip install -e appian-locust
"Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known"
host_address
is specified correctly in your locust test file."Login unsuccessful, no multipart cookie found...make sure credentials are correct"
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"
self.client.record_mode = True
to your HttpUser
subclass. Files will be placed in /record_responses
where the runner is executed... quick_start-inclusion-end-do-not-remove
FAQs
Tools and functions to make testing Appian with Locust easier
We found that appian-locust demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.