|
测试的系统是C/S框架,后台是tomcat服务器,前台是VC写的客户端,客户端和服务器之前通过基于http的私有协议通信。现在客户端通过usbkey登录服务器进行双向认证,这个usbkey实际上是B/S框架设计的,测试时将usbkey证书导入IE,VC客户端直接调用IE的证书。正常的情况下客户端登录时会弹出证书选择的窗口,供用户选择证书。然后客户端会直接发https消息到服务器。
1.我用loadrunner录制时,登录时无法弹出证书选择的窗口,直接认证失败。webservice协议和winsoket,及多种协议都试过都不行。这是为什么?
2.我尝试直接用IE发https消息,录下了以下脚本(选择http/html协议):
web_set_certificate_ex("CertFilePath=certificate1.pem",
"CertFormat=PEM",
"KeyFilePath=certificate1.pem",
"KeyFormat=PEM",
"assword=47fc3d71",
"CertIndex=1",
LAST);
web_url("UsbKeyUserLogin",
"URL=https://IPORT/pas/UsbKeyUserLogin",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
这个脚本回放时,会报错:
Action.c(6): web_set_certificate_ex was successful [MsgId: MMSG-26392]
Action.c(14): Error -27778: SSL protocol error when attempting to connect with host "172.24.252.230" [MsgId: MERR-27778]
Action.c(14): web_url("UsbKeyUserLogin") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
Ending action Action.
请问LR高手如何解决我目前遭到的这个问题?我该用loadrunner模拟这个登录过程,并做性能测试?谢谢! |
|