开发者

ASP.NET Applications – Testing

We are building ASP.NET applications using VSTS (Visual Studio Team System) 2008 as IDE & C#.NET as Programming Language.

Would you please l开发者_运维知识库et me know whether we could test these applications using VSTS 2008? If so would you please provide the details?

Are there any other VSTS integrated tools / third-party tools which we could use for testing the web applications. The testing could be Unit/Functional/Load Testing etc.

Many thanks.

Regards, Reshma.


That question is a tough one.

If you did not separate your business logic from your UI logic in your web forms, no, this is not going to be easily testable. But that is not depending on VSTS or any other testing framework but on the 'qualility' and testability of your code solely.

If you really want to test your application, you should try to use the ASP.NET MVC framework. It's designed to being well testable, and if applied correctly you end up with clean, testable code.

Any testing framework (NUnit, MSpec, the VSTS-built in Framework etc.) will do just fine.

If you want to test your Web-GUI you may want to have a look at Web UI Test studio from Telerik. Even if I had very bad experience with their ASP.NET controls in terms of performance and testability, this testing tool seems to work fine.


I'm going to comment on the capabilities of Visual Studio Team System for testing rather than focus on the topic of how to conduct any particular type of testing. For instance, unit testing is a broad topic that includes many practices on how to design your software for testability and approaches to undertake in developing your code (like TDD - test driven development).

Visual Studio Team System 2008 includes a suite of testing tools including support for testing web applications.

You can:

  • Build unit tests to test the code components of your application (provided you have designed your code to be testable,
  • Build web tests that mimic browser behaviour by recording a browsing session and replaying it during a test run,
  • Conduct load testing by simulating groups of users accessing your site.

You can learn more from:

  • A Unit Testing Walkthrough with Visual Studio Team Test (it's for Visual Studio 2005, but still applies to Visual Studio 2008)
  • Web and Load Testing with Visual Studio Team System


Yes you can, there is dedicated VS edition - MSVS Test Edition.


Take a look at Ivonna, integration and unit Asp.Net testing tool.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜