|
各位高手,现在公司让做性能测试,现在一个提交数据库的功能是弹出控件对话框的形式实现的,当点击对话框后,提交数据库,遇到这样的情况如何处理呢?
控件脚本:
<html>
<head>
<meta HTTP-EQUIV="Pragma" content="no-cache" />
<meta HTTP-EQUIV="Cache-Control" content="no-cache" />
<meta HTTP-EQUIV="Expires" content="0">
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title></title>
<link rel="STYLESHEET" type="text/css" href="../util/css/default/ajaxtab.css">
<script language="javascript">
function submitForm(act)
{
var instanceid = "93";
var nid = "136";
var url = "";
if (act=="submit")
url = "../EformAction.do?actionType=submit&instanceid=" + instanceid + "&nid=" + nid;
else if (act=="redo")
url = "../workflow/FlowCtrlAction.do?actionType=redo&nid=" + nid;
else if (act=="return")
url = "../workflow/FlowCtrlAction.do?actionType=return&nid=" + nid;
else if (act=="change")
url = "../workflow/FlowCtrlAction.do?actionType=actor&nid=" + nid;
else if (act=="batch")
url = "../workflow/TransactAction.do?actionType=route&batchnid=" + nid;
document.location.href = url;
}
function exitPopupWin() {
if (typeof(gl_sourceWindow)!="undefined" && gl_sourceWindow && gl_sourceWindow.gl_myWindowObj) {
gl_sourceWindow.gl_myWindowObj.enableCallBack(false);
gl_sourceWindow.gl_myWindowObj.closeDialog();
} else {
window.close();
}
}
</script>
</head>
<body style="overflow:auto;">
<fieldset class="bodyoptionarea">
<legend class="tabgroup" >工作提交</legend>
<table width="450px" border="0" align="center" cellpadding="0" cellspacing="0" class="stfont">
<tr>
<td width="30%" rowspan="5" align="left">
<img src="images/project_info.jpg"></td>
<th width="70%" height="20" align="left">信息提示:</th>
</tr>
<tr>
<th align="left"><p><font color=red size=2><div id="tips"> 您将要提交当前工作,请您确认当前工作是否处理完毕!您真的要将本项工作提交到下一环节吗?</div></font></p>
</th>
</tr>
<tr>
<td height="18" nowrap><hr class="hrline"></td>
</tr>
<tr>
<td align="right" > <input name="btnSubmit" type="button" value="提 交">
<input name="Submit2" type="button" value="返 回">
</td>
</tr>
</table>
</fieldset>
</body>
</html>
如上是控件图片。只有点击提交后数据插入数据库,loadrunner回放的时候不能提交数据库,经过查找是该控件没有录制成功,请问高手们如何处理呢?我使用的是web(http/html)协议,是用flex也不行,还有其他的方式么? |
|