Re: Funkload question - testing against another host
Benoit Delbosc <[email protected]> Thu, 14 May 2009 14:09:06 +0200
| Newsgroups | gmane.comp.web.zope.cps.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Marcus Lindblom a =E9crit :
> (I hope this is the place for funkload questions. I couldn't find a =
> proper link, and this list popped up on google.)
There is no mailing list, you can email me or fill a ticket in the trac
http://svn.nuxeo.org/trac/pub/report/12
login as tracguest/tracguest
> Hi,
> =
> I'm trying to use funkload to load test another server, but I can't get =
> neither fl-run-test nor fl-run-bench to respect the -u or --url option.
> It goes to localhost:80 no matter what I type.
> =
> Shouldn't this work? It seems so according to docs and option list (-h):
> =
> fl-run-test mytest.py --url=3Dhttp://otherserver
The --url option override the value of the configuration file (section: =
main, key: url).
This option is effective only if you read and use this value in your =
code, for instance:
...
class MyTestCase(FunkLoadTestCase):
def setUp(self):
self.server_url =3D self.conf_get('main', 'url')
def test_first(self):
server_url =3D self.server_url
self.get(server_url + "/index.html",
description=3D"Home page")
...
I think your test have hard coded requests like:
self.get('http://localhost/index.html')
Regards
ben
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel