nuxeo / FunkLoad

Functional and load testing framework for web applications, written in Python
http://funkload.nuxeo.org/
GNU General Public License v2.0
382 stars 83 forks source link

Allow custom bench runner #84

Closed anentropic closed 11 years ago

anentropic commented 11 years ago

It'd be nice to be able to substitute your own BenchRunner class

This makes it possible to specify one as a command-line arg to fl-run-bench

bdelbosc commented 11 years ago

Hi, Can you describe a bit more the use case please ? thanks

ben

anentropic commented 11 years ago

existing funkload.BenchRunner.BenchRunner class does not do things exactly the way I need for my tests

I would like to substitute my own class for the built-in one in order to customise behaviour, but the source code does not seem to provide many handles for extension or customising at the code level... there are many large monolithic methods and we have hard-coded class names for the BenchRunner etc.

without changing FunkLoad I think my only options are:

I thought a small and clean change I could make is to allow you to pass in an alternative BenchRunner class as a command line arg

bdelbosc commented 11 years ago

ok but once you have a better BenchRunner just pull it ;) thanks

anentropic commented 11 years ago

Will do if I end up with something generic enough to be useful to others :)