51Testing软件测试论坛
标题:
求助,loadrunner录制的修改事务重播时未生效
[打印本页]
作者:
tinyshaw
时间:
2015-1-16 15:25
标题:
求助,loadrunner录制的修改事务重播时未生效
本帖最后由 tinyshaw 于 2015-1-16 15:26 编辑
loadrunner录制了新增、修改、删除三个事务,重播时发现只有新增事务生效了,修改和删除都没有作用,新人求助。
录制的响应正文如下:
<html>
<head>
<script language="javascript">
function window_onload(){
var popupWindow = window.parent;
popupWindow.returnValue = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
document.getElementById("__RPCResult").innerHTML;
popupWindow.ignoreAgentCloseWarning = true;
popupWindow.close();
}
</script>
</head>
<body language="javascript">
<xml id="__RPCResult" style="display: none">
<result succeed="true" >
<requeryPath></requeryPath>
<outParameters><p name="$message" value="修改成功!" dataType="1" /></outParameters>
<rs reduceReturnInfo="false" >
<record id="5818" state="none" >
<new>ADMIN,,,999999,%u6D4B%u8BD5%u4EBA%u5458,,11d1def534ea1be0%3A%2D5d3572c5%3A14af189807c%3A%2D7f57,,,,,0,0,0,,,,,,,,,ADMIN,,1,</new>
</record>
</rs>
<viewProperties><p name="APPID" value="RYJJ41" dataType="0" /><p name="__profileKeys" value="tableDsry01;com.wisco.ry.view.ryjv41.tableDsry01" dataType="0" /></viewProperties>
</result></xml></body></html>
重播时响应正文如下:
<html>
<head>
<script language="javascript">
function window_onload(){
var popupWindow = window.parent;
popupWindow.returnValue = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
document.getElementById("__RPCResult").innerHTML;
popupWindow.ignoreAgentCloseWarning = true;
popupWindow.close();
}
</script>
</head>
<body language="javascript">
<xml id="__RPCResult" style="display: none">
<result succeed="false" >
<errorMessage>Object of class [com.wisco.gw.domain.Tbgw03] with identifier [11d1def534ea1be0:-5d3572c5:14af189807c:-7f57]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.wisco.gw.domain.Tbgw03#11d1def534ea1be0:-5d3572c5:14af189807c:-7f57]</errorMessage>
<stackTrace><![CDATA[]]></stackTrace>
<viewProperties><p name="APPID" value="RYJJ41" dataType="0" /><p name="__profileKeys" value="tableDsry01;com.wisco.ry.view.ryjv41.tableDsry01" dataType="0" /></viewProperties>
</result></xml></body></html>
作者:
jj_ljw
时间:
2015-1-16 19:56
在新增时做下关联
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2