Reputation: 1507
I am trying to use Siege to do stress testing on my django application. For static pages (e.g. landing page) it works just fine. However, 99% of the pages I want to test require that I be logged in.
How can I get Siege to login and test django views? The login page uses the Django Login form and view.
Upvotes: 0
Views: 719
Reputation: 823
For basic HTTP authentication form, adding login=SomeUsername:somepassword
to siege.conf directives worked for me. May be possible to use for other login schemes.
Upvotes: 0
Reputation: 429
If it possible to test as one user logined in you can pass session cookie as Cookie header -H "Cookie: cookieValue". For more complicated scenario better to Apache Jmeter.
Upvotes: 1