Front end load testing with PhantomJS/SlimerJS, sponsored by CoScale
Felt is a front-end load tester. It generates load by running a lot of browser instances simultaneously and waiting for the page to finish loading (no more pending resource calls). The tool uses PhantomJS or SlimerJS. You can use Felt to quickly generate load on front end heavy applications. With scenarios you can setup a path through your application for the browsers to follow.
pip install -r requirements.txt)git clone https://github.com/kidk/felt.gitcd feltpip install -r requirements.txtpython main.py --verbose examples/basic.jsonctrl + c to stopusage: main.py [-h] [--debug] [--verbose] [--threads THREADS] [--test]
[--slimerjs] [--screenshot] [--user-agent USERAGENT]
[--max-time MAXTIME] [--init]
scenario
Start workload.
positional arguments:
scenario
optional arguments:
-h, --help show this help message and exit
--debug enable debug information
--verbose makes generator more verbose
--threads THREADS number of threads to run simultaneously
--test run a scenario only once
--slimerjs use slimerjs instead of phantomjs
--screenshot provide screenshots after each step
--user-agent USERAGENT
provide a custom User-Agent
--max-time MAXTIME provide a maximum runtime
--init only download browsers
open_url - Open browser and navigate to url.
Attributes:
value: Url to openset_value - Set value attribute in an element
Attributes:
selector - Value for querySelectorvalue - Value to insert into elementsubmit - Send submit event to element
Attributes:
selector - Value for querySelectorclick - Send click event to element (if selector returns multiple elements, first one is clicked)
Attributes:
selector - Value for querySelectorAllclick_one - Send click event to random selected element
Attributes:
selector - Value for querySelectorAllsleep - Wait for x miliseconds
Attributes:
value - Amount in ms you want function to wait or object with min, max to wait a random time between min and maxwait_for_element - Wait for element to appear in browser
Attributes:
selector - Value for querySelectorcheck_element_exists - Check if element is present and contains content
Attributes:
selector - Value for querySelectorPlease don't hesitate to submit bugs, feature requests or pull requests. We welcome feedback and would love to hear how you're using Felt in your own environment.

Content type
Image
Digest
Size
289.1 MB
Last updated
about 9 years ago
docker pull kidk/felt