Posts
149
Comments
1863
Trackbacks
14
April 2009 Entries
How to Unit Test Web Applications

Unit Test is often used as a generic term to describe testing code-behind pages when it comes to Web Applications. Performing tests at the presentation tier can be cumbersome and usually involves manual case by case test scenarios in some large excel spreadsheets or a form of some sort.

The ASP.NET QA team have introduced Lightweight Test Automation Framework as a way to automate these regression test tasks. Your web browser is used as a test harness and your test cases are shown on the left pane of the webpage with realtime tests running on your web application shown on the right hand side.

 

Download LTF here: http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=25887 (April09 release)

More Info:

http://weblogs.asp.net/asptest/
http://blog.hmobius.com/ Dan Maharry


Posted On Sunday, April 19, 2009 12:15 PM | Comments (8)
URL Rewrite Module in IIS7.5 for setting default start homepage

You can use URL Rewrite to generate friendly URLs for search engines or simply to redirect a user to a certain page on your site.

In IIS7.5 (and also applicable to IIS7) you can achieve this by installing the URL Rewrite Module, the download can be obtained from www.iis.net/extensions.

 

Steps to set your start homepage e.g. http://localhost/ to point to http://localhost/mynewcustomhomepage.aspx

 

1. Add a new rewrite map via "View Rewrite Maps..." -> "Add Rewrite Map..."
- Give your new mapping entry any name and enter Original value as / and the new value as mynewcustomhomepage.aspx

2. Add a new rule, selecting the template "Rule with rewrite map", select OK then choose rule action as Rewrite and the rewrite map as the one entered in step 1 above.

3. Click OK and now when you navigate to http://localhost you will be directed to http://localhost/mynewcustomhomepage.aspx

 

The other useful rule is the User friendly URL template. This allows you to map URL with querystrings to absolute paths e.g. http://www.example.com/default.aspx?a=apple -> http://www.example.com/a/apple/

The "Create corresponding redirect rule" is for specifying whether or not you want users to be able to use the rule to access your absolute path by entering querystring (internal URL) or only by entering absolute paths.

 

Posted On Sunday, April 19, 2009 11:14 AM | Comments (23)
Do you know a veggie who have been broken by the smell of bacon?

 

Bacon sarnies are apparently good for curing hangovers....

http://www.theregister.co.uk/2009/04/07/bacon_sarnie_hangover_cure/

 

Posted On Wednesday, April 8, 2009 9:21 AM | Comments (1)
Less stress with source code control

I like the background classical music, I feel less stressed working with TFS now....

http://www.microsoft.com/uk/projectcalm

 

Posted On Tuesday, April 7, 2009 12:58 PM | Comments (1)



Search this Blog via
Google Search This Blog

Tag Cloud