LoadRunner脚本回放的问题
web_custom_request("UserServices.svc","URL=http://192.168.8.112/WcfLoadFault/UserServices.svc",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body=<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body><Login><user xmlns:d4p1=\"http://schemas.datacontract.org/2004/07/ForecastCommon\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"><d4p1:LoadName>yan</d4p1:LoadName><d4p1:PropertiesDeptID i:nil=\"true\" /><d4p1:PropertiesDeptName i:nil=\"true\" /><d4p1:PropertiesFunctionPointID i:nil=\"true\" /><d4p1:PropertiesFunctionPointName i:nil=\"true\" /><d4p1:PropertiesFunctionalDescription i:nil=\"true\" /><d4p1"
":PropertiesID i:nil=\"true\" /><d4p1:PropertiesNodeID i:nil=\"true\" /><d4p1:PropertiesNodeName i:nil=\"true\" /><d4p1:PropertiesOperationClientIP i:nil=\"true\" /><d4p1:UserID i:nil=\"true\" /><d4p1:UserName i:nil=\"true\" /><d4p1:UserPassWord>00000</d4p1:UserPassWord></user></Login></s:Body></s:Envelope>",
LAST);
web_add_cookie("theworld_client_delete=theworld_client_delete; DOMAIN=192.168.8.112");
web_custom_request("UserServices.svc_2",
"URL=http://192.168.8.112/WcfLoadFault/UserServices.svc",
"Method=POST",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"BodyBinary=<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body><SelectOperationTreeInfo><user xmlns:d4p1=\"http://schemas.datacontract.org/2004/07/ForecastCommon\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"><d4p1:LoadName>yan</d4p1:LoadName><d4p1:PropertiesDeptID>36e763eb-49b7-4bcc-89cf-a45952911f60</d4p1:PropertiesDeptID><d4p1:PropertiesDeptName>娴嬭瘯</d4p1:PropertiesDeptName><d4p1:PropertiesFunctionPointID></d4p1:PropertiesFunctionPointID><d4p1"
":PropertiesFunctionPointName></d4p1:PropertiesFunctionPointName><d4p1:PropertiesFunctionalDescription></d4p1:PropertiesFunctionalDescription><d4p1:PropertiesID>1191c5d1b21b9a34</d4p1:PropertiesID><d4p1:PropertiesNodeID></d4p1:PropertiesNodeID><d4p1:PropertiesNodeName></d4p1:PropertiesNodeName><d4p1:PropertiesOperationClientIP>192.168.8.94</d4p1:PropertiesOperationClientIP><d4p1:UserID>3a847a20-fbe7-4f39-a881-693c54c85d42</d4p1:UserID><d4p1:UserName>闂\xAB\xE6\xA1\x82鑽\\xA3</d4p1:UserName><d4p1"
":UserPassWord>00000</d4p1:UserPassWord></user></SelectOperationTreeInfo></s:Body></s:Envelope>",
LAST);
回放过程中的问题提示如下:
Action.c(20): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.8.112/WcfLoadFault/UserServices.svc"
Action.c(20): web_custom_request("UserServices.svc") highest severity level was "ERROR", 627 body bytes, 334 header bytes
高手帮忙解决下,不胜感激!!
[ 本帖最后由 pypy333 于 2010-7-14 15:26 编辑 ] 靠哥们 你玩大了我以为是资料呢本来想付费了下载下来再给大家共享 你可倒好是个问题。。。。。。你问别人问题你还要别人钱 你厉害 你说怎么让别人给你解决问题:L 呵呵,弄错了,本来是想弄成回答问题给人家积分的!!我晕,呵呵,失误失误
回复 2# 的帖子
呵呵,弄错了,本来是想弄成回答问题给人家积分的!!我晕,呵呵,失误失误!! 只是请求对吧,这个请求是否要求用户先登陆之类的 看脚本,楼主录制的好像是一个web service请求啊,可能是提交的数据有问题导致500 error,楼主可以check一下,所提交的data是否正确。
页:
[1]