source: main/waeup.stress/trunk/README.rst @ 8655

Last change on this file since 8655 was 8654, checked in by uli, 12 years ago

Put local stresstest stuff into SVN. Yet not too useable!

File size: 1.8 KB
RevLine 
[8654]1=====================
2Stress Tests for Kofa
3=====================
4
5Stress- and performance tests in here are based on the Python package
6`multi-mechanize`. See the homepage
7http://testutils.org/multi-mechanize/ for details.
8
9Installation
10------------
11
12The stuff in here is *not* buildout-based.
13
14To make it work, you need a Python with the packages
15`multi-mechanize`, `numpy`, and `matplotlib` installed.
16
17I'm used to install such packages in a virtual environment like this::
18
19  $ virtualenv --no-site-packages mysandbox
20  $ source mysandbox/bin/activate
21
22Afterwards the required packages can be installed into this sandbox::
23
24  (mysandbox) $ pip install numpy
25  (mysandbox) $ pip install matplotlib
26  (mysandbox) $ pip install multi-mechanize
27
28Especially `matplotlib` is very demanding regarding already installed
29(C and C++) libraries. On my Ubuntu I had to install at least::
30
31  $ sudo apt-get install libfreetype6-dev
32  $ sudo apt-get install libpng12-dev
33
34to make it compile and install.
35
36Running Stresstests
37-------------------
38
39The different stress tests are put into different multi-mechanize
40'projects'. Each project runs a certain stress test for which you have
41to setup certain things to make it work.
42
43Basically, you run a stresstest like this::
44
45  (mysandbox) $ multimech-run <PROJECT>
46
47where ``<PROJECT>`` is one of the directories in here.
48
49The projects in here are the subdirectories, each one representing a
50different 'project' or kind of stresstest. Please see the respective
51README files in this folder to learn what conditions must be met to
52run each test.
53
54Please keep in mind, that these tests normally require some local or
55remote setup, for instance a running Kofa instance with certain
56reachable URLs. Again, you can lookup the specific READMEs in this
57directory to learn what setup is required to run a certain test.
Note: See TracBrowser for help on using the repository browser.