缺少文档:MVCContrib UI 测试

发布于 2024-09-25 07:50:05 字数 61 浏览 9 评论 0原文

是否有任何文档或示例如何使用 MvcContrib.TestHelper.Ui 和 WatinDriver?

Is there any documentation or example how to use MvcContrib.TestHelper.Ui and WatinDriver?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

肩上的翅膀 2024-10-02 07:50:05

我还没有找到任何真正的文档,但在 CodeCampServer 项目。
您可能还想看看《ASP.Net MVC 2 in Action》一书中的第 20 章“完整系统测试”。
这是与 WatinDriver 试图实现的类似方法的一个非常好的观察。
其讨论还涉及如何设计可使用 WatiN 等工具进行测试的 UI/HTML,以及帮助降低浏览器测试脆弱性的技术。

编辑:Code Camp 项目源代码中使用的 WatiNDriver 从技术上讲并不是 MvcContrib.TestHelper 中的代码,但如果它的差异超过 2 行代码,我会感到惊讶。基本上看起来他们直接从 MvcContrib 借用了代码,并在其上添加了一些自己的东西。

I haven't found any real documentation for it, but there are examples of its use in the source code for the CodeCampServer project.
You might also want to take a look at Chapter 20 "Full System Testing" in the book "ASP.Net MVC 2 in Action."
It's a really great look at a similar approach to what the WatinDriver is trying to accomplish.
Its discussion is also great in terms of designing your UI/HTML to be testable with tools like WatiN, and techniques to help make your browser testing less brittle.

EDIT: The WatiNDriver in use in the Code Camp Project source code isn't technically the one from MvcContrib.TestHelper, but I'd be surprised if it differs by more than 2 lines of code. Basically it looks like they borrowed the code directly from MvcContrib and added some of their own stuff on top of it.

我们的影子 2024-10-02 07:50:05

codecampserver 中的代码是我们用来创建 MvcContrib 源代码的测试平台。我们最近为 MvcContrib 项目引入了一位新的提交者,该项目将专注于代码库的这一领域。另外,您对《Mvc2 in Action》一书的看法是正确的。我们确实遵循了书中概述的方法。另外,请随时向 mvccontrib 电子邮件列表发送电子邮件。我们会回复该列表,但我们不会过多关注 SO 问题,因此请记住这一点。

The code in codecampserver is the test bed we used to create the MvcContrib source code. We have recently brought on a new committer to the MvcContrib project that is going to focus on this area of the codebase. Also, you are right on about the Mvc2 in Action book. We really followed that approach that is outlined in the book. Also, feel free to email the mvccontrib email list.. We do reply to that list, we do not follow the SO questions as much so keep that in mind.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文