Watir 只适用于 Ruby 应用程序吗?

发布于 2024-08-21 13:20:27 字数 31 浏览 2 评论 0原文

或者它也可以用于自动化使用其他技术制作的网站吗?

Or can it be used to automate websites made with other technologies as well?

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

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

发布评论

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

评论(2

聽兲甴掵 2024-08-28 13:20:27

Watir 是用 Ruby 编写的...如果你想用其他语言编写类似的东西,你可以使用 WatiN( .Net) 或 Watij(Java)。我确信现在可能还有更多。

最后...他们都可以测试用任何语言编写的网页。

Watir is written in Ruby... if you want to write something similar in other languages you can use WatiN(.Net) or Watij(Java). I'm sure there are probably more by now.

In the end... they all can test a web page written in any language.

微凉 2024-08-28 13:20:27

瑞安就在这里,但由于这是一个常见问题,因此应该说得更清楚。

WATIR 仅驱动网络浏览器。浏览器不知道也不关心使用什么语言来创建网站或运行网络服务器和其他后端部分。

Watir 是作为供应商中立的“工具”创建的,用于向几乎没有编码经验的测试人员教授自动化技术的课程。事实证明,该工具非常有用,它具有自己的生命力,并且已经不仅仅是一个示例,而是一个用于驱动浏览器和进行 Web 测试自动化的成熟工具。选择 Ruby 作为语言是因为我们认为它是测试人员易于学习的语言。 (我碰巧同意这一点)

所以你用 Ruby 编写自动化代码。这也使得 Watir 易于与最先进的 BDD 测试框架(例如同样采用 Ruby 的 Cucumber)一起使用。但您可以使用它来测试几乎任何网站。

我亲自使用 Watir、Watircraft 框架和 Cucumber 的组合测试了一个在 .net 中实现并在 IIS 和 MS SQL 上运行的网站。

Ryan is right here, but since this is a common question it should be made even clearer.

WATIR just drives the web browser. The browser does not know or care what language is used to create the website or run the webserver and other back-end pieces.

Watir was created as a vendor neutral 'tool' to be used in classes teaching automation techniques to testers with little to no coding experience. The tool proved so useful it took on a life of it's own and has been developed beyond a mere example into a full fledged tool for driving a browser and doing web test automation. Ruby was chosen as the language as it was felt it is an easy language for testers to learn. (and I happen to agree with that)

So you write the automation code in Ruby. That also makes Watir easy to use with state of the art BDD testing frameworks such as Cucumber, which is also in Ruby. But you can use it to test nearly any website.

I personally test a site that is implemented in .net, and runs on IIS and MS SQL, using a combination of Watir, the Watircraft Framework, and Cucumber.

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