By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,960 Members | 2,232 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,960 IT Pros & Developers. It's quick & easy.

NUnitASP and the SessionState

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.