Visual Studio .NET 2005 provides a very powerful frameworks for performing web testing.
Here are some tips to make the most out of these features:
- When creating controls on your forms, make sure each control gets an ID even if these controls get created dynamically. This will give a consistant name for checking fields on post-backs. If you don't do this VS.NET generates a name like ctl00. If you move things around on your page, this may become ctl01 and your test will break.
- Besure to take advantage of Context Parameters, these allow you to quickly define constants to be used across tests.