asp.net单元测试工具Selenium

首先去官网下载,有三个版本,core版,rc版,ide版

core是用js来写测试代码,rc版允许用.net/java/ruby等编程语言来写测试代码,ide版是firefox的一个插件,允许图形化操作。我搞.net,就下载rc版吧

 

然后打开Selenium服务。由于这个东东资料少,我在作测试的时候一直无法通过,甚至连自带的demo都无法通过,再仔细一查,原来是服务没有打开!郁闷啊,搞了一个多小时才发现!这个服务是需要java支持的,再次郁闷。。。(为什么不是.net!)

 

接下来就是写测试代码了,它一般都跟nunit测试框架一起写,自带的demo也是这样写的。具体语法怎样,看文档吧

 

 

下面是参考文章:

使用Selenium和Castle进行测试驱动开发

http://www.infoq.com/cn/articles/Tutorial-TDD-Selenium

Automated web testing (2) Using Selenium

http://www.cnblogs.com/dixin/archive/2009/02/07/automated-web-testing-2-using-selenium.html

Selenium 使用介绍

http://www.javaeye.com/topic/107276

用 Selenium 自动化验收测试

http://www.ibm.com/developerworks/cn/java/wa-selenium-ajax/

selenium参考手册中文翻译

http://calvin.javaeye.com/blog/24425

Automated Web Testing with Selenium Driven by .Net

http://codebetter.com/blogs/jeremy.miller/archive/2006/05/14/144666.aspx

Automated testing of ASP.NET web applications using Selenium

http://www.stevetrefethen.com/blog/AutomatedTestingOfASPNETWebApplicationsUsingSelenium.aspx

Selenium 使用介绍

http://softtest.chinaitlab.com/qita/777313.html

Selenium学习笔记

http://zzkathy.javaeye.com/blog/158220

Selenium参考手册

http://fly-net-cn.javaeye.com/blog/76859

使用Selenium进行验收测试

http://developer.51cto.com/art/200807/87909.htm

Selenium 中文API

http://blog.csdn.net/lh9529/archive/2009/03/01/3946567.aspx

Selenium Reference

http://wiki.springside.org.cn/display/springside/Selenium+Reference

 Selenium深入浅出1.2.pdf

http://download.csdn.net/source/1097901

Selenium 使用介绍

http://tech.it168.com/m/2008-04-22/200804222335263.shtml

http://tech.it168.com/m/2008-04-22/200804222335263_1.shtml

posted @ 2009-05-20 14:28  永远的阿哲  阅读(1141)  评论(0编辑  收藏  举报