- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Unit testing ASP.NET
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Unit testing ASP.NET"
Collapse
-
DimPrawn - how are you getting on with watin? Have you ever used it with cruisecontrol?
-
yeah i'm starting to see the light a bit now, been playing with cruisecontrol and the automated test harnesses start to make alot of sense especially if your managing a team of developers...I guess its still a bit of a black art especially if you start writing functional bugs into your tests...
Leave a comment:
-
I suppose you could theoretically use MVP to swap in alternative interfaces (winforms for instance) - although in practice that is unlikely to be a requirement. The main gain is in unit testing the code in your event handlers - that's the only reason I've ever used it.Originally posted by LittlestHobbo View PostApart from unit testing what other gains do you get from MVP? I might be stupid but it appears to me that if your manually testing then the page behind model gives you a useable MVP model (if rather crude).
Leave a comment:
-
I've had a brief glimpse at the software factory ui stuff, To be honest the amount of code generation scared me. for production code...but thats just me...Also started looking at the Unity block recently for DI (my first look at this pattern), looks pretty good.
I would be interested to know if there is any uptake for these factories though...I've previously hand crafted(or should i say hacked?!) everything and used the Ent Lib for my crosscutting functionality.
Apart from unit testing what other gains do you get from MVP? I might be stupid but it appears to me that if your manually testing then the page behind model gives you a useable MVP model (if rather crude).
Leave a comment:
-
I did take a look at that but didn't really like the way everything was structured so opted against using it (more out of personal preference than anything else). I've used MVP in a very similar way to how they use it there, but using MS Unity for dependency injection rather than Object Builder. It's working very well for me. The general approach to the WCSF seems good though, MVP with a controller for UI logic is probably how I'd approach it for a more complex site. If you're willing to adopt technology early, as mentioned earlier, the MVC framework might be a better option (at least for your CV)!Originally posted by HairyArsedBloke View PostAt the risk of straying off topic, I was trying out the Web Client Software Factory for VS 2008 the other day and it creates all these test projects and mocks, etc. “What the frack is all that about?!”, thinks I, scratching my hairy arse.
Has anyone made use of all this stuff? I too am interested in automated testing as well as the MVP pattern.
It looks like what I need for a new product/service I have in mind. I’m not as techie as I once was so it’s all become a struggle to keep up with all this.
I’m going to need to use the web services stuff to get to my main database, but that will come next.
Leave a comment:
-
At the risk of straying off topic, I was trying out the Web Client Software Factory for VS 2008 the other day and it creates all these test projects and mocks, etc. “What the frack is all that about?!”, thinks I, scratching my hairy arse.
Has anyone made use of all this stuff? I too am interested in automated testing as well as the MVP pattern.
It looks like what I need for a new product/service I have in mind. I’m not as techie as I once was so it’s all become a struggle to keep up with all this.
I’m going to need to use the web services stuff to get to my main database, but that will come next.
Leave a comment:
-
We tend to use the testing within Visual Studio 2008 and the Assert Class, and creating a testing project. Pretty good at the class level but as mentioned previously NUNIT seems to be pretty standard practice for unit testing outside of this
Leave a comment:
-
Tend to side with manual testing at the moment, but with the new MVC extensions for .Net just round the corner, hopefully VS2008's testing tools will provide more coverage.
Or rather, I should rephrase my statement to say, I tend to unit test upto the class level, as there's no VS2008 way of testing the UI at the mo. Hence, manual testing of the UI as suchLast edited by Weltchy; 3 July 2008, 07:09.
Leave a comment:
-
A combination of NUnit for non UI code (business, data) and Selenium for your ultra thin ASP.NET pages is what I recommend.
http://www.peterkrantz.com/2005/selenium-for-aspnet/
http://selenium-core.openqa.org/
However, most ASP.NET sites are actually tested by the users. Users are cheap and don't impact the coding phase.
Leave a comment:
-
Nunit is used quite a lot.Originally posted by Jaws View PostI am just interested in how people approach this and what they've seen in use at various client sites lately.
Leave a comment:
-
Unit testing ASP.NET
I am just interested in how people approach this and what they've seen in use at various client sites lately.
Being limited to ASP.NET 2.0 and MS products, my approach has been to make use of Model View Presenter and testing the presenters using mocks. I thought that might be a pretty standard approach, but the interviews I recently attended suggested otherwise (where the approach has been generally manual).Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Leave a comment: