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 google.com. All other sites, including blogs drew a blank which is strange. You can see the errors in the steps3 and 4, listed below:

Step0:

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.py
test_simple (test_Simple.Simple) ... Ok

----------------------------------------------------------------------
Ran 1 test in 36.425s

OK

Step0.1: Test the sample file.

i@ubu804:~/funkload-demo/simple$ fl-run-test -l 4 -n 100 test_Simple.py
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

OK

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.


Step1:

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

funkload/
funkload/tmp/
funkload/tmp/wget/
funkload/builder/
funkload/builder/ResourceBundle.py
funkload/builder/build.py
funkload/builder/builder.conf
funkload/builder/util.py
funkload/builder/default/
funkload/builder/default/monitor.conf
funkload/builder/default/test-results/
funkload/builder/default/test_Load.py
funkload/builder/default/Load.conf

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=[www.test1.co.uk, www.test2.co.uk] {hint: add the URI of sites you want to test}

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

Save and exit builder.conf file.

Step2:

Next, we will run the build file.

i@ubu804:~/funkload/builder$ python build.py -b 50
{'-b': '50'}
Performing sampling of site login.launchpad.net, this may take a while!
Sampling complete
Performing sampling of site svaksha.com, this may take a while!
Sampling complete
Performing sampling of site google.com, this may take a while!
Sampling complete
find: /home/i/funkload/tmp/wget/google.com: 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: "login.launchpad.net", "svaksha.com", and "google.com"

Step3:

Now we are running the load tests:

i@ubu804:~/funkload/builder$ python build.py --run
{'--run': ''}
/home/i/funkload/builder/.. login.launchpad.net
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/BenchRunner.py", line 606, in main
File "build/bdist.linux-x86_64/egg/funkload/BenchRunner.py", line 220, in __init__
File "build/bdist.linux-x86_64/egg/funkload/BenchRunner.py", line 123, in load_unittest
File "/home/i/funkload/login.launchpad.net/test_Load.py", line 9, in <module>
from MembersTestCase import MembersTestCase
ImportError: No module named MembersTestCase
Traceback (most recent call last):
File "build.py", line 271, in <module>
main(sys.argv[1:])
File "build.py", line 261, in main
funkloadBuilder.runLoadTesting()
File "build.py", line 240, in runLoadTesting
shutil.copyfile("%s/%s"%(copyDir,FunkloadBuilder.LOAD_TESTING_RESULTS_FILE),"%s/%s/%s"%(copyDir,FunkloadBuilder.LOAD_TESTING_RESULTS_FOLDER,FunkloadBuilder.LOAD_TESTING_RESULTS_FILE))
File "/usr/lib/python2.5/shutil.py", line 46, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: '/home/i/funkload/login.launchpad.net/load-bench.xml'

This is where the test fails because it only stores results for google.com in the folder /home/i/funkload/tmp/wget/www.google.co.in/index.html , where I can reproduce the google.in website as is. The other two domains that were tested, login.launchpad.net and svaksha.com 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.

Step4:

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 build.py -s output-report-name
{'-s': 'output-report-name'}
load-bench.xml not found in: /home/i/funkload/login.launchpad.net/test-results/
load-bench.xml not found in: /home/i/funkload/svaksha.com/test-results/
load-bench.xml not found in: /home/i/funkload/google.com/test-results/


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/svaksha.com, shows an empty directory. Test #fail.