Testing Sessions

0 views
Skip to first unread message

Jesse Warden

unread,
Sep 29, 2009, 1:53:08 PM9/29/09
to fluint-di...@googlegroups.com
I have a bunch of webservices that give different data based on the session.  For now, we have 2 different logins, but will have more later.  I know the point of tests is that they should be able to be tested indepedently, in any order.  So, I figured I'd have a base class that logs out of all existing sessions, then logs into a specific one, runs the test, and then logs out.  That way, each test will ensure it's being tested without worry of what session is available, etc, and if it's not, I'll get an exception knowing why.

Is this ok practice or is there a better way?

Michael Labriola

unread,
Sep 29, 2009, 1:55:37 PM9/29/09
to Fluint Discussions

That is likely the best approach to accomplishing what you want
Reply all
Reply to author
Forward
0 new messages