Re: Can ASP render a page back as a string.
Absolutely! Its call Response.Write, just pipe it out to whatever channel you
like :)
Regards,
Miguel de Sousa
________________________________
From: Phlip <phlip2005@...>
To: agile-testing@yahoogroups.com; testfirstuserinterfaces@yahoogroups.com
Sent: Friday, 12 June, 2009 13:48:10
Subject: [TFUI] Re: [agile-testing] Unit Testing the Presentation Layer
John Overbaugh wrote:
> I'm not sure this answers my question. What I'm looking for are 1) best
> practices around unit testing the presentation layer
Unit testing the presentation layer should treat the test targets the same as
any other layer would test them. In web programming, a web page is a big string.
If you had a business-layer module that produced a big string, you would _unit_
test it by parsing the string back using the same tools as generated it.
Testing thru-the-server AND thru-the-browser is slow and fragile. Only do it
_after_ you can TDD the source directly, because that's where most development
should happen.
> and 2) ideas around
> headless testing within the presentation layer (if it's at all
> possible). I am quite familiar with Selenium, WatiN, etc.and how to use
> them even against Ajax (which is, I believe, what your offering). I'm
> trying to take it to the next level and create a good, reliable,
> headless unit test for my dev team (if it can be done).
Again: Can ASP render a page back as a string, ready to be parsed? If not, then
ask MS why. The answer is probably inexcusable vendor lock-in.
--
Phlip
[Non-text portions of this message have been removed]