After installing funkload on hardy, it was time for testing a few web-sites with it. I downloaded the build script and tested it. It worked like a charm but would only store results for All other sites, including blogs drew a blank which is strange. You can see the errors in the steps3 and 4, listed below:


Test your funkload installation as below. It should run and give an OK result.
i@ubu804:~/funkload-demo/simple$ fl-run-test -v
test_simple (test_Simple.Simple) ... Ok

Ran 1 test in 36.425s


Step0.1: Test the sample file.

i@ubu804:~/funkload-demo/simple$ fl-run-test -l 4 -n 100
End of loop: 100 pages rendered in 246.905s, avg of 2.469s per page, 0.405 SPPS without concurrency.
Ran 1 test in 477.608s


The log files for this test are located in "simple-test.log"

Step0.2: Bench it

i@ubu804:~/funkload-demo/simple$ fl-monitor-ctl monitor.conf start
Starting monitor server at http://localhost:8008/ as daemon.


Next, download funkload Builder v0.2 - funkloadBuilder02.tar.gz.
Extract it into your home folder directory. Then just follow the installation instructions on that page which I did as below:

i@ubu804:~$ tar -xzvf funkloadBuilder02.tar.gz


i@ubu804:~$ cd funkload/builder

i@ubu804:~/funkload/builder$ vi builder.conf

Here, you must edit the following lines in builder.conf:

wsb_root=/home/esw/funkload-results/ {hint: set your directory path correctly}
test_repository=/home/esw/funkload/ {hint: set your directory path correctly}
test_sites=[,] {hint: add the URI of sites you want to test}

and if required, setup parameters for wget {Ex. your /home/i/funkload/tmp/wget/ is the folder which will store the .html files for viewing}.

Save and exit builder.conf file.


Next, we will run the build file.

i@ubu804:~/funkload/builder$ python -b 50
{'-b': '50'}
Performing sampling of site, this may take a while!
Sampling complete
Performing sampling of site, this may take a while!
Sampling complete
Performing sampling of site, this may take a while!
Sampling complete
find: /home/i/funkload/tmp/wget/ No such file or directory

If you change directory to the funkload folder, you will see three new folders for each of the sites you ran the tests on: "", "", and ""


Now we are running the load tests:

i@ubu804:~/funkload/builder$ python --run
{'--run': ''}
Traceback (most recent call last):
File "/usr/bin/fl-run-bench", line 8, in <module>
load_entry_point('funkload==1.12.0', 'console_scripts', 'fl-run-bench')()
File "build/bdist.linux-x86_64/egg/funkload/", line 606, in main
File "build/bdist.linux-x86_64/egg/funkload/", line 220, in __init__
File "build/bdist.linux-x86_64/egg/funkload/", line 123, in load_unittest
File "/home/i/funkload/", line 9, in <module>
from MembersTestCase import MembersTestCase
ImportError: No module named MembersTestCase
Traceback (most recent call last):
File "", line 271, in <module>
File "", line 261, in main
File "", line 240, in runLoadTesting
File "/usr/lib/python2.5/", line 46, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: '/home/i/funkload/'

This is where the test fails because it only stores results for in the folder /home/i/funkload/tmp/wget/ , where I can reproduce the website as is. The other two domains that were tested, and dont have any results. Strange. The error above shows that /usr/bin/fl-run-bench, is not being called from the funkload==1.12.0 folder  which is where the build fails.


Next, we will have to generate HTML reports for each tested website but before giving the following command, create a funkload-results directory in your home folder, then :

i@ubu804:~/funkload/builder$ python -s output-report-name
{'-s': 'output-report-name'}
load-bench.xml not found in: /home/i/funkload/
load-bench.xml not found in: /home/i/funkload/
load-bench.xml not found in: /home/i/funkload/

The above command only creates a directory "output-report-name" within the funkload-results directory but cd'ing into one of them, like /funkload-results/output-report-name/, shows an empty directory. Test #fail.