|
本帖最后由 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>
|
|