51Testing软件测试论坛

标题: 求助:LoadRunner Oracle NCA 通信错误 [打印本页]

作者: iyaw    时间: 2005-10-28 16:46
标题: 求助:LoadRunner Oracle NCA 通信错误
我以Oracle NCA 和Web (HTTP/HTML)双协议录制Oracle 10G的系统.
当我运行录制的脚本时,总是发生以下能信错误:
vuser_init.c(65): nca_set_connect_opt("SCALE_INFO")
vuser_init.c(67): nca_set_connect_opt("REQUIRED_LIST")
vuser_init.c(69): Warning: ifError expired (5) during NCA handshake,
vuser_init.c(69): Warning: ifError expired (5)
vuser_init.c(69): Error: nca_connect_server: cannot communicate with host slc-hpux.accela.com on port 7779?

请各位高手指点一下
作者: iyaw    时间: 2005-10-31 16:54
标题: 自己顶一下
我分析LR的输出LOG,发现出错时是在LR发送了一个POST 请求之后,这个请求在不同的服务器上不太一样,长度很短
如:8-byte request body for "http://kiva-test:7779/forms90/l90servlet;jsessionid=0a32008fce9c2de565b4b914056aae2f1940a165197.oQzQmgPOnlbOcxaNa3iUePWLa2SPa2SK-x4NbwSLbkiSaQmT-x4Kb34NbAaQmxmP-wOSa30K8QHDrA4RaB5v-AHDrA4Hr6jNr2TvmQvDnlnJ-AbJpgaLbhqTb34Sc3uK8OexhOaOgzX2gjX6pR9HqMbynknvrkLOlQzNp65In0__" (RelFrameId=1)
vuser_init.c(55):     GDay\x00\x00D?

或8-byte request body for "http://kiva-test:7779/forms90/l90servlet;jsessionid=0a32008fce9285ebb94448946bc91d3d557cf830b43.oQzQmgPOnlbOcxaNa3iUePWLa2SPa2SK-x4NbwSLbkiSaQmT-x4Kb34NbAaQmxmP-wOSa30K8QHDrA4RaB5v-AHDrA4Hr6jNr2TvmQvDnlnJ-AbJpgaLbhqTb34Sc3uK8OexhOaOgzX2gjX6pR9HqMbynknvrkLOlQzNp65In0__" (RelFrameId=1)
vuser_init.c(55):     GDay\x00\x00\x14a

我自己用socket连了一下,发现这个请求,如果不带这个POST request body ,服务器就会返回正确的200,
HTTP/1.1 200 OK
Content-Length: 223
Cache-Control: private
Content-Type: text/html
Server: Oracle-Application-Server-10g/9.0.4.0.0 Oracle-HTTP-Server OracleAS-Web-Cache-10g/9.0.4.0.0 (N)
Connection: Close
Date: Mon, 31 Oct 2005 08:09:43 GMT

<html>
<head>
<title>Oracle Application Server 10g Forms Services</title>
</head>
<body>
<h1>Oracle Application Server 10g Forms Services</h1>
<h2>The Forms Listener servlet is up and running.</h2>
</body>
</html>
如果带了,就会返回一个
HTTP/1.1 200 OK
Content-Length: 13
Cache-Control: private
Content-Type: text/plain
Server: Oracle-Application-Server-10g/9.0.4.0.0 Oracle-HTTP-Server OracleAS-Web-Cache-10g/
9.0.4.0.0 (N)
Connection: Keep-Alive
Keep-Alive: timeout=5, max=999
Date: Mon, 31 Oct 2005 08:01:25 GMT

ifError:7/500

不知道nca_connect_server发送这个Request body是起什么作用, 也不知道有没有办法不让LR的nca_connect_server去发送这个post request body.
或者有没有办法不让Oracle server 返回这个ifError




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2