我有一个操作录制脚本与手工操作都没问题,回放时报错,请高手帮忙看看,谢谢!
错误信息:Action.c(6): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.3.215:8080/api2/smstest.aspx"
Action.c(6): web_submit_data("smstest.aspx_2") highest severity level was "ERROR", 3030 body bytes, 262 header bytes
脚本如下:
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 3
// {Siebel_Analytic_ViewState2} = "/wEPDwULLTE5NDUyMTIzMzQPZBYCAgMPZBYEAgMPEA8WAh4LXyFEYXRhQm91bmRnZBAVDAdnZDA2MTM5CmdkMTA2NTgxMzkKZ2QxMDY1ODUzMwtnZDEwNjU3MDEzOQd5bjA2MTM5CnluMTA2NTcwMjQHZ3gwNjEzOQdzaDA2MTM5B3NkMDYxMzkHYmowNjEzOQdsbjA2MTM5B2ZqMDYxMzkVDAdnZDA2MTM5CmdkMTA2NTgxMzkKZ2QxMDY1ODUzMwtnZDEwNjU3MDEzOQd5bjA2MTM5CnluMTA2NTcwMjQHZ3gwNjEzOQdzaDA2MTM5B3NkMDYxMzkHYmowNjEzOQdsbjA2MTM5B2ZqMDYxMzkUKwMMZ2dnZ2dnZ2dnZ2dnZGQCCQ8QDxYCHwBnZBAVBAzmma7pgJrnn63kv6EJ6ZW/55+t5L+hDOWFjeaPkOefreS/oQdXYXBQdXNoFQQM5pmu6YCa55+t5L+hCemVv+efreS/oQzlhY3mj5Dnn63kv6EHV2FwUHVzaBQrAwRnZ2dnZGRkPgCXkrGfSaZy6j61RXJCGZ83X+I="
// */
web_add_auto_header(
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("smstest.aspx",
"URL=http://192.168.3.215:8080/api2/smstest.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
lr_think_time(37);
web_submit_data("smstest.aspx_2",
"Action=http://192.168.3.215:8080/api2/smstest.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.3.215:8080/api2/smstest.aspx",
"Snapshot=t2.inf",
"Mode=HTTP",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
"Name=txtSender", "Value=15019991037", ENDITEM,
"Name=dplSpsid", "Value=gd10658533", ENDITEM,
"Name=txtSpNumber", "Value=0613915019991037", ENDITEM,
"Name=txtSendMsg", "Value=123456789987654321", ENDITEM,
"Name=dplSendType", "Value=?", ENDITEM,
"Name=txtDelay", "Value=0", ENDITEM,
"Name=txtRevtMobile", "Value=13410661953", ENDITEM,
"Name=Button1", "Value=send", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWFwKIxeioAQKJrqqqDQL6voHmBgLTxPyNCALTxNSRCwLg5+qGBAKYtqn9BgK1lefMBQL6vvHABgLOsLH3BgLOsIHmBgLfvLnxBgLls6n9BgLbvbnxBgLdjc+iBQKKrvZqAtqs2qQMAte9j7QCAr2JwqoJAu2tz5cGArSps8MHAtbx094JAoznisYGRBexysmsbHagozO4tj/yXDA7dWY=", ENDITEM,
LAST); 我其实不想灌水啊,挣点数 要紧噻。 再加一个错误页面的截图上来,顺便自己顶一下. 查看你的关联函数左右边界是否正确,你是自动关联的? 是的,自动关联 你贴的脚本倒数第3行代码的数据是否也需要关联,你仔细检查一下 还是不行呢,在SUBMIT之前就报26612这个错啦 没等执行到SUBMIT就报26612那个错啦 问题还没解决,怎么没知道具体又有效的解决办法吗?:Q 我重装了系统,换了LR版本后,问题没再重现,但是个体原因还是不明:lol 自动关联,但是没看到web_submit_data这类的函数阿! 看看你业务!
我的问题是这么解决的
这个问题,我也遇到过我的问题是这么解决的,解决方法:
点击在submit页,使用 tree查看,在server response中
body-form 项,下面有两处需要关联的
hidden_VIEWSTATE
hidden__EVENTVALIDATION
对value= 值处,点击右键,选择create parameter
页:
[1]