469,573 Members | 1,685 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,573 developers. It's quick & easy.

NUnitASP and the SessionState

All,

I have started using NUnitASP to write test cases for an ASP.NET
application. It works great, but some of the assertions that need to be made
depend on values stored in the Session. The problem is that NUnitASP
basically acts as a client to webforms and simply abstracts the HTML emitted
by the various ASP.NET pages and has no access to the Session or even
HttpContext.Current for that matter (its completely detached from the
aspnet_wp).

So, basically I am trying to figure out how to augment NUnitASP's capability
by somehow attaching to the aspnet_wp and query the session for a given
request, all from a standalone class library that is completely decoupled
from the ASP.NET website.

Does anyone have any suggestions or tips?

Thanks in advance,
Nate
Oct 3 '06 #1
2 1237
Some good pointers here:

http://www.robincurry.org/blog/Techn...tAspTests.aspx
http://home.iprimus.com.au/lachlanb/nunitasp/nunit.html

Nate wrote:
All,

I have started using NUnitASP to write test cases for an ASP.NET
application. It works great, but some of the assertions that need to be made
depend on values stored in the Session. The problem is that NUnitASP
basically acts as a client to webforms and simply abstracts the HTML emitted
by the various ASP.NET pages and has no access to the Session or even
HttpContext.Current for that matter (its completely detached from the
aspnet_wp).

So, basically I am trying to figure out how to augment NUnitASP's capability
by somehow attaching to the aspnet_wp and query the session for a given
request, all from a standalone class library that is completely decoupled
from the ASP.NET website.

Does anyone have any suggestions or tips?

Thanks in advance,
Nate
Oct 3 '06 #2
Awesome articles, thanks!

"Chris Fulstow" wrote:
Some good pointers here:

http://www.robincurry.org/blog/Techn...tAspTests.aspx
http://home.iprimus.com.au/lachlanb/nunitasp/nunit.html

Nate wrote:
All,

I have started using NUnitASP to write test cases for an ASP.NET
application. It works great, but some of the assertions that need to be made
depend on values stored in the Session. The problem is that NUnitASP
basically acts as a client to webforms and simply abstracts the HTML emitted
by the various ASP.NET pages and has no access to the Session or even
HttpContext.Current for that matter (its completely detached from the
aspnet_wp).

So, basically I am trying to figure out how to augment NUnitASP's capability
by somehow attaching to the aspnet_wp and query the session for a given
request, all from a standalone class library that is completely decoupled
from the ASP.NET website.

Does anyone have any suggestions or tips?

Thanks in advance,
Nate

Oct 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by request | last post: by
reply views Thread by foldface | last post: by
reply views Thread by Carlton858 | last post: by
1 post views Thread by Sasha | last post: by
5 posts views Thread by Patrick.O.Ige | last post: by
reply views Thread by raju | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.