51Testing软件测试论坛
标题:
loadrunner录制客户端程序,没有取到用户名密码
[打印本页]
作者:
inter19851989
时间:
2015-8-6 00:00
标题:
loadrunner录制客户端程序,没有取到用户名密码
只有一段body代码,而且我录制的是开发部门用delphi开发的客户端exe程序,选择的是webhtml协议,录制win32 application程序。求助大虾
Action()
{
web_custom_request("SynService",
"URL=http://wszg.nbcs.gov.cn:8002/wssb/service/SynService",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
"Body=requestString=JTNDJTNGeG1sK3ZlcnNpb24lM0QlMjIxLjAlMjIrZW5jb2RpbmclM0QlMjJHQkslMjIlM0YlM0Ul\r\nM0NUSVJJUFBBQ0tBR0UlM0UlM0NJREVOVElUWSUzRSUzQ3NlcnZpY2VJZCUzRWNvbS5lcWlhby5z\r\nb3JjZXJlc3Muc2VydmljZS5pbXBsLkxvZ2luUmVxdWVzdFNlcnZpY2VJbXBsLnN5bkNsaWVudElu\r\nZm8lM0MlMkZzZXJ2aWNlSWQlM0UlM0Nuc3JkemRhaCUzRTAlM0MlMkZuc3JkemRhaCUzRSUzQ25z\r\ncnNiaCUzRTMzMDIwMzMxNjk1MzYxNyUzQyUyRm5zcnNiaCUzRSUzQ3JlZ2lvbmNvZGUlM0UlM0Ml\r\nMkZyZWdpb25jb2RlJTNFJTNDaWZjYSUzRSUzQyUyRmlmY2ElM0UlM0Nyb2xlJTNFJTNDJTJGcm9s\r\n"
"ZSUzRSUzQ25zcm1jJTNFJTNDJTJGbnNybWMlM0UlM0Nzd2pnRG0lM0UlM0MlMkZzd2pnRG0lM0Ul\r\nM0Nzd2pnTWMlM0UlM0MlMkZzd2pnTWMlM0UlM0Npc0NvZGUlM0UlM0MlMkZpc0NvZGUlM0UlM0Nl\r\nbmNyeXB0VHlwZSUzRSUzQyUyRmVuY3J5cHRUeXBlJTNFJTNDaXNFbmNyeXB0JTNFJTNDJTJGaXNF\r\nbmNyeXB0JTNFJTNDaXNaaXAlM0UlM0MlMkZpc1ppcCUzRSUzQyUyRklERU5USVRZJTNFJTNDQlVT\r\nSU5FU1NDT05URU5UJTNFJTNDU3ViUGFja2FnZSUzRSUzQ0NPTlRFTlQlM0UlM0MhJTVCQ0RBVEEl\r\nNUJQRDk0Yld3Z2RtVnljMmx2YmowaU1TNHdJajglMkJEUW84UTA5TlRVOU9Va1ZSVlVWVFZENDhR\r\n"
"MHhKUlU1VVZFbE5SVDR5TURFMUxUQTRMVEEyUEM5RFRFbEZUbFJVU1UxRlBqd3ZRMDlOVFU5T1Vr\r\nVlJWVVZUVkQ0TkNnJTNEJTNEJTVEJTVEJTNFJTNDJTJGQ09OVEVOVCUzRSUzQyUyRlN1YlBhY2th\r\nZ2UlM0UlM0MlMkZCVVNJTkVTU0NPTlRFTlQlM0UlM0MlMkZUSVJJUFBBQ0tBR0UlM0U=",
LAST);
lr_think_time(5);
web_custom_request("SynService_2",
"URL=http://wszg.nbcs.gov.cn:8002/wssb/service/SynService",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
"Body=requestString=JTNDJTNGeG1sK3ZlcnNpb24lM0QlMjIxLjAlMjIrZW5jb2RpbmclM0QlMjJHQkslMjIlM0YlM0Ul\r\nM0NUSVJJUFBBQ0tBR0UlM0UlM0NJREVOVElUWSUzRSUzQ3NlcnZpY2VJZCUzRWNvbS5lcWlhby5z\r\nb3JjZXJlc3Muc2VydmljZS5pbXBsLkxvZ2luUmVxdWVzdFNlcnZpY2VJbXBsLmxvZ2luJTNDJTJG\r\nc2VydmljZUlkJTNFJTNDbnNyZHpkYWglM0UwJTNDJTJGbnNyZHpkYWglM0UlM0Nuc3JzYmglM0Uz\r\nMzAyMDMzMTY5NTM2MTclM0MlMkZuc3JzYmglM0UlM0NyZWdpb25jb2RlJTNFJTNDJTJGcmVnaW9u\r\nY29kZSUzRSUzQ2lmY2ElM0UlM0MlMkZpZmNhJTNFJTNDcm9sZSUzRSUzQ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NFJTNDJTJGU3ViUGFja2FnZSUzRSUzQyUyRkJV\r\nU0lORVNTQ09OVEVOVCUzRSUzQyUyRlRJUklQUEFDS0FHRSUzRQ==",
LAST);
web_custom_request("SynService_3",
"URL=http://wszg.nbcs.gov.cn:8002/wssb/service/SynService",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
"Body=requestString=JTNDJTNGeG1sK3ZlcnNpb24lM0QlMjIxLjAlMjIrZW5jb2RpbmclM0QlMjJHQkslMjIlM0YlM0Ul\r\nM0NUSVJJUFBBQ0tBR0UlM0UlM0NJREVOVElUWSUzRSUzQ3NlcnZpY2VJZCUzRWNvbS5lcWlhby5z\r\nb3JjZXJlc3Muc2VydmljZS5pbXBsLkxvZ2luUmVxdWVzdFNlcnZpY2VJbXBsLmduTGlzdCUzQyUy\r\nRnNlcnZpY2VJZCUzRSUzQ25zcmR6ZGFoJTNFMzMwMjE1MDAwMDMwNDk4NDI5JTNDJTJGbnNyZHpk\r\nYWglM0UlM0Nuc3JzYmglM0UzMzAyMDMzMTY5NTM2MTclM0MlMkZuc3JzYmglM0UlM0NyZWdpb25j\r\nb2RlJTNFMTElM0MlMkZyZWdpb25jb2RlJTNFJTNDaWZjYSUzRSUzQyUyRmlmY2ElM0UlM0Nyb2xl\r\n"
"JTNFMSUyQzMlM0MlMkZyb2xlJTNFJTNDbnNybWMlM0UlRTUlQUUlODElRTYlQjMlQTIlRTYlQjUl\r\nQjclRTYlOUIlOTklRTYlQjAlQjQlRTclQUIlOEIlRTklODAlODElRTglQjQlQjglRTYlOTglOTMl\r\nRTYlOUMlODklRTklOTklOTAlRTUlODUlQUMlRTUlOEYlQjglM0MlMkZuc3JtYyUzRSUzQ3N3amdE\r\nbSUzRTIzMzAyMDMwMDAwJTNDJTJGc3dqZ0RtJTNFJTNDc3dqZ01jJTNFJTNDJTJGc3dqZ01jJTNF\r\nJTNDaXNDb2RlJTNFJTNDJTJGaXNDb2RlJTNFJTNDZW5jcnlwdFR5cGUlM0UlM0MlMkZlbmNyeXB0\r\nVHlwZSUzRSUzQ2lzRW5jcnlwdCUzRSUzQyUyRmlzRW5jcnlwdCUzRSUzQ2lzWmlwJTNFJTNDJTJG\r\n"
"aXNaaXAlM0UlM0MlMkZJREVOVElUWSUzRSUzQ0JVU0lORVNTQ09OVEVOVCUzRSUzQ1N1YlBhY2th\r\nZ2UlM0UlM0NDT05URU5UJTNFJTNDISU1QkNEQVRBJTVCUEQ5NGJXd2dkbVZ5YzJsdmJqMGlNUzR3\r\nSWo4JTJCRFFvOFEwOU5UVTlPVWtWUlZVVlRWRDQ4VWs5TVJUNHhMRE04TDFKUFRFVSUyQlBDOURU\r\nMDFOVDA1U1JWRlZSVk5VUGcwSyU1RCU1RCUzRSUzQyUyRkNPTlRFTlQlM0UlM0MlMkZTdWJQYWNr\r\nYWdlJTNFJTNDJTJGQlVTSU5FU1NDT05URU5UJTNFJTNDJTJGVElSSVBQQUNLQUdFJTNF",
LAST);
return 0;
}
作者:
踏雪飞狐
时间:
2015-8-6 09:37
你这个是post请求的,用户名和密码都在body里面发送到服务器了,你是说服务器没有收到你这里发送过去的用户名和密码?如果没有把mode改成http试试,或者自己叫开发给你接口的参数,把body里面的值直接改成开发给的
作者:
jingzizx
时间:
2015-8-6 13:06
录制中使用函数web_custom_request,所以参数都在body中,不是没有录制到;
但是你body里面可能进行了编码,需要问一下开发;
因为录制时协议选择了URL_based,所以使用函数web_custom_request,你可以修改为html_based script类型的脚本录制,查看参数
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2