如何在ASP.NET Web表单中应用单元测试 [英] How apply Unit tests in ASP.NET webforms

查看:44
本文介绍了如何在ASP.NET Web表单中应用单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用3层的asp.net网络表单开发一个网站;UI,BLL和DAL该网站已经开发,但是我希望对每种表格的单元测试有更多的控制权

I'm developing a website in asp.net webforms with 3 layers; UI, BLL and DAL The website is already developed, but i like have more control about the unit tests of each form

我认为,无论应用程序是否存在,都在特定的输入处传递特定的值.

Pass specific values at specific inputs for i see, if application survives or not.

我已经研究过NUnit,但是在UI层的Webforms中如何应用这些测试?

I already study about NUnit but in webforms in UI layer how can apply these tests?

我所拥有的是某种方法来测试UI(验证),而不必像我是用户那样访问BLL.

What i wnat is get some way to test UI (validations) without have to access to the BLL as i was an user.

我正在尝试将单元测试添加到我的应用程序中,但是我不确定该怎么做!

I'm trying to add the Unit tests to my app but i not sure how to do it!

有人可以帮助解决我的小问题吗?

somebody can help my small-bigger problem?

推荐答案

如果我正确理解了您的问题,则您正在询问如何自动测试WebForms UI.如果我误会了,请更正这种理解.

If I understand your question correctly, you're asking how to automate testing a WebForms UI. If I misunderstand, please correct this understanding.

坦率地说,我认为对此没有的答案.但是,有两种选择可以正常工作

Frankly, I don't think there is a good answer out there for this. There are two options, however, that work okay:

  1. Visual Studio测试版
  2. Telerik的网络测试(免费版本和费用)
  1. Visual Studio Test Edition
  2. Telerik's Web Testing (both a free version and a version with a cost)

这篇关于如何在ASP.NET Web表单中应用单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆