What is the best way to test webforms apps ( ASP.NET )

后端 未结 8 614
轮回少年
轮回少年 2021-01-30 00:10

What is the best way to test my webforms applications?

Looks like people are loving Watin, and selenium.

8条回答
  •  隐瞒了意图╮
    2021-01-30 00:42

    Just wondering, why would you call WatiN a unit testing tool? Last time I checked, it ran integration tests.

    The best way would be to move all code that doesn't depend on HttpContext to a separate assembly and run unit tests as usual. The rest can be tested with Ivonna. She doesn't test the client behavior, that's where WatiN can be helpful; however, if you want to test your pages or controls in isolation, she's your only choice.

提交回复
热议问题