Watir:使用 Ruby 实现的,脚本也是Ruby 的脚本.Sahi:无法对本地的页面进行测试,可对在线页面操作进行刻制和回放.Canoo WebTest:不能编程插入数据,这样每次只能有一条值插入,不是很好.iMacros for Firefox :iMacros for Firefox是Firefox浏览器的一个插件,能够批处理测试表单数据,下面详细介绍一下该软件的测试方法............
附件一:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>form</title>
<script src="../js/jquery-1.3.1.js" type="text/javascript"></script>
<script src="../js/jquery.validate.js" type="text/javascript"></script>
<style type="text/css">
*{ font-family: Verdana; font-size: 96%; }
label { width: 10em; float: left; }
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
p { clear: both; }
.submit { margin-left: 12em; }
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
em.error {
background:url("../images/unchecked.gif") no-repeat 0px 0px;
padding-left: 16px;
}
em.success {
background:url("../images/checked.gif") no-repeat 0px 0px;
padding-left: 16px;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$("#commentForm").validate({ rules: { username: { }, email: { }, url:"url", comment: "required", valcode: { formula: "7+9" required: true, email: true required: true, minlength: 2