yanjinbin 发表于 2008-6-26 16:45:53

录制CS脚本进行不下去

我要录制的CS程序是一个:用户登陆成功后才会显示操作界面的
软件使用大概流程是:
1.打开程序输入帐号和密码
2.帐号是用WindowSockets发送到服务器进行验证(使用windows Sockets协议录制)
3.帐号验证成功后调用WebServices下载该用户的配置文件(使用WebServices协议录制)
4.下载成功后在对比密码,密码成功后进如实际操作界面
5.实际操作界面有 几个用windows Sockets服务器发送数据操作
所以这里我选的是多协议录制:Web Services + Windows Sockets

但是录制到4步就出问题,调用WebServices下载数据并对比密码后,他不会显示操作界面,导致我无法继续录制下去了.
这是什么问题啊.

yanjinbin 发表于 2008-6-26 16:47:09

我的日志文件如下:
Address lookup for 10.117.192.5 = 10.117.192.5
------------------------------------------------------------------------------------------
Load Network Traffic Analyzers:
   Analyzer Module: WPLUS (value=)
   Analyzer Module: WebBase (value=GetHttpProtocolAnalyzer:api_http_filter.dll)
   + Network Analyzer: api_http_filter.dll @ GetHttpProtocolAnalyzer Loaded!
   + Interception Auditors: WinInetWplusInterceptionAudit:api_http_filter.dll
   Analyzer Module: QTWeb (value=)
   Analyzer Module: WS_SOAP (value=GetHttpProtocolAnalyzer:api_http_filter.dll)
   + Network Analyzer: api_http_filter.dll @ GetHttpProtocolAnalyzer Loaded!
   Analyzer Module: WinSock (value=GetRawProtocolAnalyzer:api_sock_proxy.dll)
   + Network Analyzer: api_sock_proxy.dll @ GetRawProtocolAnalyzer Loaded!
   Analyzer Module: local_server (value=)
------------------------------------------------------------------------------------------
Address lookup for BS004 = 10.117.192.47
Address lookup for BS004 = 10.117.192.47
Request Connection: Remote Server @ 10.117.192.5:9000   (Service=)(Sid=1)PROXIED!
   (Sid:1) Connection Terminated (by Client)
Address lookup for BS004 = 10.117.192.47
Request Connection: Remote Server @ 10.117.192.5:80   (Service=)(Sid=2)PROXIED!
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 702 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 609 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 637 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 622 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 583 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 1454 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 640 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 624 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 301 bytes (Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 296 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
   (Sid:2) Server -> Client : 10220 bytes(Service=HTTP)
   (Sid:2) Server -> Client : 1086 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 298 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 337 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 625 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 298 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 293 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 2035 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 298 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 340 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 624 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 300 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 295 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 2390 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 298 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 348 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 622 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 308 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 303 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 1602 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 298 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 347 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 622 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 307 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 302 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 4387 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 298 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 344 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 625 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 304 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 299 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 2727 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 298 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 350 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 625 bytes(Service=HTTP)
   (Sid:2) Client -> Server : 307 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 25 bytes(Service=HTTP)
"POST /hkiss_bs/Service/Data_Source.asmx"   
   (Sid:2) Client -> Server : 302 bytes (Service=HTTP)
   (Sid:2) Server -> Client : 7266 bytes(Service=HTTP)


后面我想是不是多协议出问题,单独用Windows Sockets和Web Services个试了一次,还是在老地方出问题.

yanjinbin 发表于 2008-6-26 16:52:51

对了界面程序是用MFC开发的.

aks5201314 发表于 2008-6-26 17:18:30

楼主不LR录制程序的时候,可以正常的运行客户端程序并能全部走完你所说的这5个步骤吗?

aks5201314 发表于 2008-6-26 17:19:42

楼主不用LR录制客户端程序的时候,可以正常的运行客户端程序并能全部走完你所说的这5个步骤吗?

yanjinbin 发表于 2008-6-26 17:52:59

楼主不用LR录制客户端程序的时候,可以正常的运行客户端程序并能全部走完你所说的这5个步骤吗?

不录制的时候,这个是可以走完的.

yanjinbin 发表于 2008-6-27 08:39:37

这应该算怎么回事啊.
难道录制的时候会让程序在后台执行,前台不显示,

yanjinbin 发表于 2008-6-27 12:07:24

我现在没办法 就是把注册写死到程序里面,就去除登陆框,配置也用以前下载好的配置就不用在调用webServices.
现在直接打开就显示操作界面.
但是在LoadRunner录制还是无法显示出界面.

zibeike 发表于 2008-6-28 23:39:13

第4步,下载用户配置文件完成后,再比较密码,那这个比较的过程是客户端来实现的吗? 如果是客户端实现的,那LR可能只能进行完第3步,之后因为比较的操作录制不下来,所以无法比较成功,也就无法进行下面的步骤了.因为对本身被测程序不了解,上面只是我的一个推测. 建议更深入的了解该被测系统关于登陆和的通信过程.

yanjinbin 发表于 2008-6-30 08:47:23

是客户端来进行密码比较的,但是后面我把帐号和密码写到程序里面,也不调用webServices了.
直接显示界面,在不用LoadRunner打开是可以打开的,
但是一用LoadRunner打开就看不到界面.
郁闷了。

yanjinbin 发表于 2008-7-2 09:42:27

对比也是成的,程序步骤是运行成功的,但是就是不知道LR阻挡了什么东西,竟然不显示界面,但在进程里面还可以看到程序进程.

郁闷啊.
页: [1]
查看完整版本: 录制CS脚本进行不下去