计划采用 Watir 来满足我们的 UI 测试需求 - 它是正确的工具吗?

发布于 2024-10-02 04:55:49 字数 687 浏览 0 评论 0原文

我们使用 Qtp 作为测试工具,目前计划转向开源测试工具。我们将 Watir 和 Selenium 作为实现此目的的两个潜在工具。我们对这两个产品进行了一些研究,并喜欢 Watir 的简洁、强大的 API 和易用性。我们只考虑在 IE 上进行测试;因此,Selenium 提供的跨浏览器支持可能并不那么重要。

但是,随着我对瓦提尔研究的进展,关于瓦提尔的一件事让我有点不安。这就是我所看到的该产品正在失去的动力。大多数文章、成功故事和引言都相当古老 - 比如说 2009 年早些时候。2010 年几乎没有写过任何关于 Watir 的令人兴奋的内容。除此之外,我还听到了有关 Webdriver 将取代 Watir 的故事。虽然我找不到很多关于 Watir-Webdriver 的文章,但我看到了这篇关于 watir 的文章,这让我有点担心,因为它说 watir 已经死了。

http://www.natontesting.com/2010/ 04/14/explaining-watir-selenium-and-webdriver/

我们不想从一个可能已经死亡或垂死的产品开始。

谁能告诉我 Watir 到底发生了什么以及未来的路线图是什么?

谢谢, 巴比莎

We are using Qtp as a testing tool, and currently planning to move to an open source testing tool. We have zeroed in on Watir and Selenium as two potential tools for this purpose. We have done some study of these two products and have liked Watir for its neat and powerful API and ease of use. We are only looking at testing on IE; hence cross-browser support provided by Selenium is probably not so important.

But, as my research on Watir progressed, there is one thing about Watir that is disturbing me a little. That is the losing momentum that I see about the product. Most of the articles, success stories and quotes are pretty old - say earlier to 2009. Hardly anything exciting being written about Watir in 2010. To add to this, I hear this story about Webdriver going to replace Watir. Though i couldn't find many articles on Watir-Webdriver, i saw this article on watir that is somewhat of a concern to me as it says watir is DEAD.

http://www.natontesting.com/2010/04/14/explaining-watir-selenium-and-webdriver/

We do not want to start with a product that is probably already dead, or dying.

Can any one please tell me what exactly is happening in Watir and what is the roadmap ahead?

Thanks,
Babitha

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

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

发布评论

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

评论(7

女皇必胜 2024-10-09 04:55:49

您还可以直接从 GitHub 查看源代码及其历史记录 https://github.com/ Bret/watir/commits/master/ 查看是否有任何活动。

但确实,Watir 在发布新版本方面有较长一段时间不活动 http://rubygems.org/ gems/watir/versions

如您所见,1.6.5 和 1.6.6 之间的时间几乎是一年。但无论如何,瓦蒂尔并没有死,也没有打算死。另外,您对 Watir-Webdriver 未来将成为 Watir 2.0 的说法是正确的,但我还不建议将其用于 IE,因为它还处于早期 alpha 状态并且存在一些相当严重的错误。它的仓库在这里 https://github.com/jarib/watir-webdriver

如果你有有关 Watir 的疑问或问题,不要害怕在这里或 Google 群组 http 中提问://groups.google.com/group/watir-general

You can also check out the source code and it's history directly from GitHub https://github.com/bret/watir/commits/master/ to see if there's any activity.

But it's true that Watir had some longer period of inactivity in terms of releasing new versions http://rubygems.org/gems/watir/versions

As you can see then the time between 1.6.5 and 1.6.6 was almost a year. But nevertheless Watir is not dead nor planning to die. Also, you have got that right about Watir-Webdriver being Watir 2.0 in the future, but i'd not recommend it just yet for IE due to it's early alpha state and some pretty critical bugs. It's repo is here https://github.com/jarib/watir-webdriver

If you have any questions or problems related with Watir, don't be afraid to ask them in here or in Google groups at http://groups.google.com/group/watir-general

此刻的回忆 2024-10-09 04:55:49

瓦提尔还活着。看看 watir.com,您会在那里找到所有信息。如果您还有其他问题,请询问。

Watir is alive. Take a look at watir.com, you will find all information there. If you have further questions, ask.

裸钻 2024-10-09 04:55:49

在同一篇博客(natontesting.com 上的页面提到的)中,Alister 讨论了 Web 驱动程序对 WATIR 未来的影响。

他说:

如果你是 Watir 用户,这并没有多大区别。如果您将自动化 Web 测试视为一辆汽车,那么 Watir 就是方向盘和仪表板,它们与引擎交互。允许 Watir 用户使用 WebDriver 就像提供额外的引擎选择,但保持方向盘和仪表板相同。

最终,我认为 Watir 将仍然是一种非常流行的自动化 Web 测试工具,一个由测试人员为测试人员设计的工具。我可以看到,随着越来越多的开发人员转向 Selenium 2.0/WebDriver,WatiN 和 Watij 的使用量正在减少,Selenium 2.0/WebDriver 将使用不同的 API 和多种编程语言提供与 Watir 相同的功能。如果 WebDriver 能够专注于控制浏览器的细节,最终 Watir 将成为一个更好的工具,因为可以花更多的精力来改进 Watir API,升级方向盘和仪表板。

In the same blog (that the page on natontesting.com mentions), Alister has discussed the impact of web driver on the future of WATIR.

He says:

If you’re a Watir user, it doesn’t really make that much difference. If you think of automated web testing as a car, Watir is the steering wheel and dashboard, which interact with the engine. Allowing Watir users to use WebDriver is like providing an additional engine choice, but keeping the steering wheel and dash the same.

Ultimately, I think that Watir will remain a very popular automated web testing tool, one that has been designed by testers for testers. I can see the usage of WatiN and Watij reducing as more developers move to Selenium 2.0/WebDriver which will offer the same functionality as Watir using a different API and multiple programming languages. If WebDriver can focus on the detail of controlling browsers, ultimately Watir will be a better tool as more effort can be spent on improving the Watir API, upgrading the steering wheel and dash, so to speak.

醉殇 2024-10-09 04:55:49

这篇文章的要点是 Selenium 2.0 和 Watir 2.0 都整合了 Webdriver 技术。 Watir 上个月刚刚发布了新版本,Watir 用户每天都会在 Watir General 邮件列表< /a>.

The point of that article is that both Selenium 2.0 and Watir 2.0 are incorporating Webdriver technology. Watir just put out a new release last month, Watir users are sharing tips everyday on the Watir General mailing list.

小巷里的女流氓 2024-10-09 04:55:49

如果我今天开始一个新框架,我最有可能使用 Watir。我始终保持开放的态度,所以我不能保证我会使用什么。也许该项目涉及flex,所以我会尝试FunFX,或者java开发人员想参与,所以我会考虑使用junit的webdriver。但我并不担心将来会使用 Watir。我在过去的三年里一直在使用它。我认识在此之前就已经使用过它的人。社区太强大了,不能消亡。

If I started a new framework today, I would be most likely to use Watir. I always keep an open mind, so I cannot guarantee what I would use. Maybe the project involves flex so I would try FunFX, or java developers want to be involved so I would consider webdriver with junit. But I would have no concern about using Watir into the future. I have used it for the past three years. I have known people who used it even before that. The community is too strong to die.

失眠症患者 2024-10-09 04:55:49

我们使用 Watir 一段时间,但在维护 Ruby 环境时遇到了问题。我们不是 Ruby 商店,因此当我们更新 Ruby 版本并且 Watir 停止工作时,我们无法真正理解为什么会发生中断。

缺乏好的录音机也是我们的一个问题。

因此,我们改用 Selenium,它具有出色的记录能力,并且可以在 NUnit 测试中正确运行(我们在 .Net 平台上),但 Selenium 并不是每次都能成功执行。我们必须在调用周围编写重试包装器,因为它们有时会起作用,而另一些则不起作用。

我们仍在继续寻找可轻松录制且可靠运行的东西。我在论坛上看到了很多关于 WebDriver 和 Sahi 的内容,所以我将研究一下这些内容。只要我们能够输出 XML 以便能够与 CC 集成,我们就可以了。

We used Watir for a while but ran into problems maintaining our Ruby environment. We're not a Ruby shop, so when we updated our version of Ruby and Watir stopped working we weren't fit to really understand why the breaks were occurring.

The lack of a good recorder was also a problem for us.

So we switched to Selenium, which has great recording capability and runs right in an NUnit test (we're onthe .Net platform), but Selenium doesn't execute successfully every single time. We had to write retry wrappers around the calls since they would work sometimes and not others.

Our quest to find something easily recordable that runs reliably continues. I've seen a lot on the forum about WebDriver and Sahi so I'll look into those. As long as we can spit out XML so we can integrate with CC, we're good.

欢你一世 2024-10-09 04:55:49

正如您已经读到的,WATIR 社区充满活力!我刚刚在我的公司启动了自动回归计划,其中一个要求是利用开源工具(或一组)。我遇到了 WATIR,由于它的 FOSS、易于使用并且使用 Ruby,我忍不住向管理层推荐了该工具。

这里有一个提示(无论您是否愿意!):

WATIR 独立运行时非常棒,但是当与 CruiseControl(另一个 FOSS 工具,即 CI [持续集成] 服务器)捆绑在一起时,您可以全天运行回归脚本,并且从中获取 xUnit 报告(记住使用 Ruby 内置的测试单元框架)。使其对上级和您的开发人员真正有用。

WATIR 充满活力,最近刚刚发布了更新 (1.67)。 wiki 是杀手级的 (http://wiki.openqa.org/display/WTR/),所以先去那里进行问答。

与 WATIR 一起享受乐趣。一周中的任何一天都可以打败愚蠢的老QTP!

如果您有疑问,请联系我,因为这在我的脑海中仍然新鲜:)

As you already read, the WATIR community is alive and kicking! I just started the Automated Regression initiative at my company and one of the requirements was to utilize an open source tool (or a group of them). I came across WATIR and since its FOSS, Easy to use, and uses Ruby, I couldn't help but suggest the tool to Management.

Here's a tip (if you want it or not!):

WATIR is great stand-alone, but when bundled with CruiseControl (another FOSS tool that is a CI [Continuous Integration] Server), you can run your regression scripts all day long and get the xUnit reports from it (remember to utilize Ruby's built in Test Unit framework). Makes it real useful for the higher ups and your devs.

WATIR is alive and kicking and just recently came out with an update (1.67). The wiki is killer (http://wiki.openqa.org/display/WTR/) so go there first for your Q&As.

Have Fun with WATIR. Beats the pants outta silly old QTP any day of the week!

Hit me up if you have questions since this is still fresh in my head :)

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