WatiN、Wax、WatiN Test Recorder开源自动化测试框架 [转]

出自http://www.cnblogs.com/oscarxie/

最近有点时间,觉得可以研究下自动化测试框架了,其实现成的框架已经有很多,比较有名的是WatirSelenium,还有从05年开始的基于.net的WatiN,鉴于自己接触多的是.net方面的,所以先选择WatiN来研究。

研究之前,要做的准备工作就是收集相关的资料,列下来,之后做个To Do List排个计划来逐一阅读和实践。

1、WatiN官方网站:WatiN Web Application Testing In .Net
http://watin.sourceforge.net/
WatiN  Feature  List

  • Automates all major HTML elements
  • Find elements by multiple attributes
  • Supports AJAX website testing
  • Supports frames (cross domain) and iframes
  • Supports popup dialogs like alert, confirm, login etc..
  • Supports HTML dialogs (modal and modeless)
  • Supports creating screenshots of webpages
  • Has a basic (extensible) logging mechanism
  • Works with Internet Explorer 6, 7, 8 beta 1 and FireFox 2
  • Developed in C#
  • Licensed under the Apache License 2.0
  • And.. If you miss some feature, you can add it yourself because it is open source!

Welcome at the WatiN (pronounced as What-in) website. Inspired by Watir development of WatiN started in December 2005 to make a similar kind of Web Application Testing possible for the .Net languages. Since then WatiN has grown into an easy to use, feature rich and stable framework. WatiN is developed in C# and aims to bring you an easy way to automate tests with Internet Explorer.

最新版本为2008-03-12发布的WatiN: 2.0 CTP ,增加了对Firefox的支持。

下载:http://sourceforge.net/project/showfiles.php?group_id=167632

WatiN FAQ:http://watin.sourceforge.net/faq.html
WatiN Apartments Info:http://watin.sourceforge.net/apartmentstateinfo.html
WatiN Firefox Community Technology Preview: http://watin.sourceforge.net/firefox.html
2、Wax

http://www.codeplex.com/wax/

Wax allows users to create automated WatiN tests using Microsoft Excel,实现了数据驱动,使用Excel来存储Test Script;并提供了WaxRunnerWaxConsoleRunner两种方式来运行测试。
Microsoft Excel - SearchGoogle.xlsx (2).png
WaxRunner:

WaxRunner.png
WaxConsoleRunner:
wax console runner.png
目前版本为1.0.0.3,下载:

http://www.codeplex.com/wax/Release/ProjectReleases.aspx?ReleaseId=7558

3、WatiN Test Recorder

http://watintestrecord.sourceforge.net/

The purpose of the application is to generate code compatible with the WatiN (Web Application Testing In .NET) project.

录制操作后可以直接生成C#或其他的代码,避免了写代码

目前的版本是1.1,下载:https://sourceforge.net/project/showfiles.php?group_id=193118

4、其他资料:

    Web 测试实践 for .Net —WatiN

http://www.diybl.com/course/4_webprogram/asp.net/asp_netxl/2007125/90452.html

生生不息的自己动手写Web自动化测试框架系列:

【生生不息原创】自己动手写Web自动化测试框架1 - 概述

【生生不息原创】自己动手写Web自动化测试框架2 - 打开和操纵IE

【生生不息原创】自己动手写Web自动化测试框架3 - 操纵Web控件

【生生不息原创】自己动手写Web自动化测试框架4 - 验证Web控件

【生生不息原创】自己动手写Web自动化测试框架5 - 判断浏览器是否加载完成

【生生不息原创】自己动手写Web自动化测试框架6 - 自动化测试框架的规划

尝试使用WatiN进行TDD

http://www.cnblogs.com/blusehuang/archive/2007/11/23/970466.html

两个WEB自动化测试工具比较 WatiN & Selenium RC

http://www.51testing.com/?146934/action_viewspace_itemid_78808.html

使用WatiN对ASP.NET页面进行单元测试

http://www.cnblogs.com/anderslly/archive/2008/03/30/unit-testing-aspnet-pages-using-watin.html

TestDriven.Me

http://fwdnug.com/blogs/ddodgen/default.aspx

5、辅助工具

Internet Explorer Developer Toolbar

6、其他
    WatiNFixture
    WatiNFixture is a FitNesse custom fixture that wraps the web testing functionality available in the WatiN testing tool. 
    http://sourceforge.net/projects/watinfixture 

    TestDriven.Net 
    http://www.testdriven.net/  
   
    Watir
    http://wtr.rubyforge.org/ 
    Selenium
    http://selenium.openqa.org/

posted on 2008-10-22 15:19  starspace  阅读(504)  评论(0编辑  收藏  举报

导航