nael
nael

Reputation: 1507

Siege - How to test views that require login?

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

Answers (2)

B. Bulpett
B. Bulpett

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

Rinat
Rinat

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

Related Questions