Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(8)
Watir - “Ruby 中的 Web 应用程序测试”,Ruby 中的一个免费开源 Web 自动化库系列。这些库支持 Windows 上的 IE、Windows、Mac 和 Linux 上的 Firefox、Mac 上的 Safari、Windows 上的 Chrome 以及使用 Firefox 进行 Flash 测试。注意:Firewatir(针对 Firefox)现已与 Watir 合并。有关可用于扩展某些功能的其他工具的列表 - 请参阅 Watir 站点以及 OpenQA 站点上的 Web 测试替代工具页面以获取更多信息。
以下是许多其他测试工具的更多信息
http://www.softwareqatest.com/qatweb1.html
这是比较:
Watir - 'Web Application Testing in Ruby', a free open-source family of web automation libraries in Ruby. The libraries support IE on Windows, Firefox on Windows, Mac and Linux, Safari on Mac, Chrome on Windows and Flash testing with Firefox. Note: Firewatir (targeting Firefox) is now merged with Watir. For a listing of additional tools that are available to extend some capabilities - see the Watir site and also Alternative Tools for Web Testing' page at the OpenQA site for more info.
Here is some more info for the many other testing tools
http://www.softwareqatest.com/qatweb1.html
Here is the comparison:
我推荐 Selenium,因为它对 JavaScript 的处理非常出色。具体来说,我会推荐 Selenium 2.0(现已作为 alpha 版本提供):它最近与 WebDriver 集成以改进其 API,因此更易于使用。
I would recommend Selenium, because of its superior handling of JavaScript. Specifically, I would recommend Selenium 2.0 (now available as an alpha version): it has been recently integrated with WebDriver to improve its API, and is consequently much easier to use.
您看过 Selenium 吗?
它被广泛使用。
另一个众所周知的框架是 Watir,它使用 Ruby 及其 .NET 对应的 Watin。
Have you looked at Selenium?
It is widely used.
Another well known framework is Watir, using Ruby and its .NET counterpart Watin.
另一个选择是 Sahi http://sahi.co.in/ 它非常适合使用大量AJAX 和 Javsascript 因为它不需要任何等待语句(自动等待 AJAX 和页面加载),自动跨框架/iframe 定位元素,具有稳定的智能访问器,不使用 XPath,而是使用关系 API,如近、中、下等等。它还有适用于所有浏览器的记录器/访问器间谍。它有 Sahi Script (Javascript)、Java、Ruby 和 PHP 驱动程序。
Another option is Sahi http://sahi.co.in/ It is well suited for applications using a lot of AJAX and Javsascript because it does not need any wait statements (automatically waits for AJAX and page loads), automatically locates elements across frames/iframes, has stable smart accessors which do not use XPaths, but rather uses relational APIs like near, in, under etc. It also has recorder/accessor spy for all browsers. It has drivers in Sahi Script (Javascript), Java, Ruby and PHP.
我个人推荐 selenium-webdriver。如果您想使用 ruby 编写测试自动化,那么您可能需要考虑 watir。 watir api 比 selenium-webdriver 更容易理解和使用。您可以查看我使用不同工具创建的几个示例。 链接
以下是Watir+rspec 的 :
http://testingandagile.blogspot.com/2011/08/getting -started-with-automation.html
黄瓜+水豚+selenium-webdriver:
http://testingandagile.blogspot.com/2011/07 /cucumber-capybara-webdriver-example-for.html
personally i recommend selenium-webdriver. If you want to write your test automation using ruby then you might want to consider watir. The watir api is more simpler to understand and use than selenium-webdriver. You can take a look at few examples I created using different tools. Here are the links
Watir+rspec:
http://testingandagile.blogspot.com/2011/08/getting-started-with-automation.html
Cucumber+Capybara+selenium-webdriver:
http://testingandagile.blogspot.com/2011/07/cucumber-capybara-webdriver-example-for.html
selenium + testng 是我的推荐。
selenium 用于调用 javascript 来模拟网页上的用户操作的 API。
testng 是一个类似于 junit 的测试框架,但也支持对表格式的大量测试数据进行分组和多线程
selenium + testng is my recommendation.
selenium is for APIs that calls javascript to simulate user action on web page.
testng is a test framework like junit, but is also support grouping and multi-thread over large set of test data in table format
如果您查看 Selenium,那么我也会查看 PushToTest.com 的 TestMaker。它是一个开源测试自动化框架,可让您为 Selenium 创建数据驱动测试,并允许您将脚本作为功能、自动回归和负载测试以及生产 SLA 监视器运行。您可以从网站下载该工具,并且有一个教程可指导您如何使用 Selenium 脚本。
If you look at Selenium, then I would also look at TestMaker by PushToTest.com. It is an open source test automation framework that lets you create data driven tests for Selenium and allows you to run the scripts as functional, automated regression and load tests as well as production SLA monitors. You can download the tool from the website and there is a tutorial to walk you through working with Selenium scripts.
SeLite 有助于功能测试。它是 Selenium IDE 的一个框架,允许您的测试访问(读取和写入)测试数据库(与测试应用程序的数据库隔离)。请参阅https://code.google.com/p/selite/wiki/ProjectHome。
如果 Web 应用程序使用 SQLite,SeLite 是理想的选择,因为(单独的)测试数据库也在 SQLite 中 - 测试使数据生命周期变得非常容易。但是,即使您的 Web 应用程序使用其他类型的数据库,您也可以使用 SeLite。
SeLite helps functional testing. It's a framework for Selenium IDE that allows your tests to access (read and write to) a test DB (isolated from the DB of the tested application). See https://code.google.com/p/selite/wiki/ProjectHome.
SeLite is ideal if the web application uses SQLite, because the (separate) test DB is also in SQLite - test that makes data lifecycle very easy. However, you can use SeLite even if your web app uses other type of DB.