51Testing软件测试论坛
标题:
用lr测试qc问题
[打印本页]
作者:
wyalgl
时间:
2009-6-24 15:46
标题:
用lr测试qc问题
只是测试登陆过程,回放时候报错,怎么回事啊?谢谢
还有,发帖时候怎么可以复制截图啊?我的截图无法粘贴,只能传附件了
作者:
忍忍忍
时间:
2009-6-24 17:08
是不是服务器有安全策略啊,禁止访问 ……&
手工登陆没有问题? 代码贴出来看看先。
作者:
wyalgl
时间:
2009-6-25 09:01
vuser_init()
{
web_url("qcbin",
"URL=http://192.168.1.3:8080/qcbin/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t76.inf",
"Mode=HTML",
EXTRARES,
"Url=images/bg.gif", ENDITEM,
"Url=images/image_bg.jpg", ENDITEM,
"Url=images/bull.gif", ENDITEM,
LAST);
web_link("Quality Center",
"Text=Quality Center",
"Snapshot=t77.inf",
EXTRARES,
"Url=setup_a.ini", "Referer=", ENDITEM,
LAST);
lr_think_time(4);
web_custom_request("tdservlet",
"URL=http://192.168.1.3:8080/qcbin/servlet/tdservlet",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t78.inf",
"Mode=HTML",
LAST);
web_custom_request("TDAPI_GeneralWebTreatment",
"URL=http://192.168.1.3:8080/qcbin/servlet/tdservlet/TDAPI_GeneralWebTreatment",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t79.inf",
"Mode=HTML",
"EncType=text/html; charset=UTF-8",
"BodyBinary={\r\n0: \"0:conststr
ogin\",\r\n1: \"0:int:2\",\r\n2: \"0:int:-1\",\r\n3: \"0:int:-1\",\r\n4: \\x5C0000005B\\x5C0:conststr:{\r\nUSER_NAME:wy,\r\nPASSWORD:,\r\nCLIENTTYPE:\\x5C00000018\\x5CQuality Center Client UI\r\n}\r\n,\r\n5: \"0:conststr:WY\",\r\n6: \"65536:str:0\",\r\n7: \"0:pint:0\",\r\n8: \"0:pint:0\",\r\n9: \"0:pint:0\"\r\n}\r\n",
LAST);
web_custom_request("TDAPI_GeneralWebTreatment_2",
"URL=http://192.168.1.3:8080/qcbin/servlet/tdservlet/TDAPI_GeneralWebTreatment",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t80.inf",
"Mode=HTML",
"EncType=text/html; charset=UTF-8",
"BodyBinary={\r\n0: \\x5C0000001C\\x5C0:conststr:GetVisibleDomains,\r\n1: \"0:int:3\",\r\n2: \"0:int:699\",\r\n3: \"0:int:-1\",\r\n4: \"65536:str:0\"\r\n}\r\n",
LAST);
手工登陆没有问题
代码太多超过字数限制了,
web_custom_request("TDAPI_GeneralWebTreatment", 是这句代码有问题
作者:
wyalgl
时间:
2009-6-25 11:46
lr help说插入web_set_certificate_ex 函数,具体改怎么写啊?
作者:
sincky
时间:
2009-9-1 15:24
按照HP的售前技术人员所说,Mercury产品之间不能互相测试,尤其拿LR测试QC,已经做了内部加密,脚本可以录制,但是回放不会成功
不知真假,呵呵
作者:
alexanty
时间:
2009-9-3 19:53
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2