两个WEB自动化测试工具比较 WatiN & Selenium RC
2009-02-09 17:45
796 查看
原文发表于:2008-04-06 16:35:02
Item | WatiN | Selenium RC |
Explorer Supported | Known work Ø IE 6 and IE 7 | Known work Ø IE 6 and IE 7 Ø Firefox 1.5.0 and 2.0 Ø Opera 8.5.4 and 9.0.2 Should work Ø Firefox 0.8 to 2.0 Ø Mozilla Suite 1.6+, 1.7+ Ø Sea monkey 1.0 |
System supported | Known work Ø Windows XP and 2003 | Known work Ø Windows XP and 2003 Ø Windows 2000(need to install install reg.exein order to use IE) Ø Mac OS X Ø Linux |
Language supported | Ø C# | Ø C# Ø Java Ø Perl Ø PHP Ø Python Ø Ruby |
Test environment supported | Ø Visual Studio 2005 Team System | Ø Visual Studio 2005 Team System |
AJAX | Supports AJAX website testing | l Selenium Server communicates directly with the browser using AJAX (XmlHttpRequest) l The Selenium Server is great for testing complex AJAX-based web user interfaces under a Continuous Integration system |
Get/Post requests | We can send commands directly to the Server using simple HTTP GET/POST requests | |
Https supported | Support for https | |
Javascrīpt Supported | Void Document.Runscrīpt(string) | l We can write selenium RC tests in Javascrīpt with JsUnit. l it Allows a Selenium-enabled browser to run Javascrīpt on arbitrary websites. |
HTML | Automates all major HTML elements and find elements by multiple attributes | |
HTML dialogs | Supports HTML dialogs (modal and modeless) | |
Frame | Supports frame (Cross domain) and iframes | |
Popup dialogs | Supports popup dialogs like alert, confirm, login etc | |
Screenshots | Support creating screenshots of web pages | |
对现有控件的兼容性不好。比如文件上传控件和日历控件就无法在Selenium RC中捕捉 2.不支持https连接方式?? http://bbs.51testing.com/thread-84131-1-6.html |
Developing Info
Item | WatiN | Selenium RC |
Developing Language | Ø C# | Ø Java and so on |
Methods Example
Item | WatiN Example | Selenium RC Example |
Set element event | Document.button(Find.ById(btnG”)).click() | DefaultSelenium.Type(“q”,”hello world”) |
Get element attributes | Document.button (Find.ById(btnG”)).Style. Height | DefaultSelenium.GetElementHeight(“q”) |
especial methods | Then we can’t hanle the time used for pages loading. ===》 Ø Link[1].Click() Ø Link(Find.ByIndex(1)).Click() We can use these two methods to click the links that the value is null. | Ø WaitForPageToLoad(“5000”) (if we want to go to another page and get the elements in the new page, we have to use the method, or we will in the old page.) 《== We can’t find the links that the value is null |
相关文章推荐
- Web自动化测试工具——Selenium
- web 页面自动化测试工具--selenium
- 自动化测试工具 Selenium WebDriver 入门教程
- Web自动化测试工具Selenium 1.0正式发布:Chrome支持+用户指南
- 自动化测试工具 Selenium WebDriver 入门教程
- Web自动化测试工具Selenium 1.0正式发布:Chrome支持+用户指南
- Web自动化测试工具Selenium 1.0正式发布:Chrome支持+用户指南
- 关于java web自动化测试工具 selenium
- 体验 Web 自动化测试工具 Selenium
- selenium——Web自动化测试工具
- Web自动化测试工具Selenium 1.0正式发布:Chrome支持+用户指南
- Python爬虫工具 Selenium webdriver -自动化测试工具
- 自动化测试工具 Selenium WebDriver 入门教程
- Selenium(ThoughtWorks公司开发的web自动化测试工具)
- WEB网页测试利器Selenium-RC
- .NET Web 自动化测试工具
- 一步一步使用自动化测试工具selenium
- 两个移动web开发在线测试工具
- 自动化测试工具selenium 之Selenium-IDE
- 强大的Web开源测试工具—Selenium[3]