|
6#
楼主 |
发表于 2010-9-16 09:30:54
|
只看该作者
昨天调了一天,还是没有成功,帮我看看吧,高手们,我的全部脚本:
Action()
{
web_set_max_html_param_len("3072");
web_reg_save_param("sessionid",
"LB/ALNUMIC=jsessionid value=",
"RB/BIN/DIG=",
"Ord=1",
"Search=All",
"RelFrameId=1",
"IgnoreRedirections=Yes",
LAST);
lr_message("%s",lr_eval_string("{jsessionid}"));
web_url("index.action",
"URL=http://192.168.0.152:8083/fwtx/index.action",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=img/btn.jpg", ENDITEM,
LAST);
lr_message("11111111111111111111111111111111111111111111111");
web_submit_data("login.action",
"Action=http://192.168.0.152:8083/fwtx/login.action",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.0.152:8083/fwtx/index.action",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=aa", ENDITEM,
"Name=password", "Value=aa", ENDITEM,
EXTRARES,
"URL=img/main_bottom.gif", "Referer=http://192.168.0.152:8083/fwtx/main.action", ENDITEM,
"URL=img/main_bg.jpg", "Referer=http://192.168.0.152:8083/fwtx/main.action", ENDITEM,
"URL=img/menu_bg.gif", "Referer=http://192.168.0.152:8083/fwtx/menu.action", ENDITEM,
LAST);
web_url("viewProject.action",
"URL=http://192.168.0.152:8083/fwtx/examinProject/viewProject.action",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.152:8083/fwtx/frame.action;jsessionid={sessionid}",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_url("sSaveReport.jsp",
"URL=http://192.168.0.152:8083/fwtx/sSaveReport.jsp?raq=platform.raq&Id=402880182b0f4d49012b0f905aab002d00000000000000000000000000000001&enterpriseId=402880182b0f4d49012b0f905aab002d&periodId=00000000000000000000000000000001&orderId=1&backaction=/fwtx/examinProject/viewProject.action&projectId=402880182b0f4d49012b0f905aab002d00000000000000000000000000000001",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.152:8083/fwtx/frame.action;jsessionid={sessionid}",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_submit_data("reportServlet",
"Action=http://192.168.0.152:8083/fwtx/reportServlet?action=11",
"Method=POST",
"TargetFrame=_self",
"RecContentType=text/html",
"Referer=http://192.168.0.152:8083/fwtx/sSaveReport.jsp?raq=platform.raq&Id=402880182b0f4d49012b0f905aab002d00000000000000000000000000000001&enterpriseId=402880182b0f4d49012b0f905aab002d&periodId=00000000000000000000000000000001&orderId=1&backaction=/fwtx/examinProject/viewProject.action&projectId=402880182b0f4d49012b0f905aab002d00000000000000000000000000000001",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=fileName", "Value=platform.raq", ENDITEM,
"Name=srcType", "Value=file", ENDITEM,
"Name=cachedId", "Value=A_48", ENDITEM,
"Name=pageUrl", "Value=http://192.168.0.152:8083/fwtx/sSaveReport.jsp?raq=platform.raq&orderId=1&enterpriseId=402880182b0f4d49012b0f905aab002d&Id=402880182b0f4d49012b0f905aab002d00000000000000000000000000000001&projectId=402880182b0f4d49012b0f905aab002d00000000000000000000000000000001&periodId=00000000000000000000000000000001&backaction=%2Ffwtx%2FexaminProject%2FviewProject.action&reportParamsId=100030", ENDITEM,
"Name=backAndRefresh", "Value=yes", ENDITEM,
"Name=promptAfterSave", "Value=yes", ENDITEM,
"Name=saveDataByListener", "Value=no", ENDITEM,
"Name=inputExceptionPage", "Value=/myError.jsp", ENDITEM,
"Name=keyRepeatError", "Value=no", ENDITEM,
"Name=data", "Value=A5=\"rweqrwerwe\";B5=\"rwerqwerwe\";C5=\"324423.00\";D5=\"423.00\";E5=\"432.00\";F5=\"432.00\";G5=\"432.00\";H5=\"432.00\";B6=\"\"", ENDITEM,
"Name=params", "Value==;periodId=00000000000000000000000000000001;enterpriseId=402880182b0f4d49012b0f905aab002d;Id=402880182b0f4d49012b0f905aab002d00000000000000000000000000000001;raq=platform.raq;projectId=402880182b0f4d49012b0f905aab002d00000000000000000000000000000001;backaction=/fwtx/examinProject/viewProject.action;orderId=1", ENDITEM,
LAST);
web_url("sSaveReport.jsp_2",
"URL=http://192.168.0.152:8083/fwtx/sSaveReport.jsp?raq=platform.raq&orderId=1&enterpriseId=402880182b0f4d49012b0f905aab002d&Id=402880182b0f4d49012b0f905aab002d00000000000000000000000000000001&projectId=402880182b0f4d49012b0f905aab002d00000000000000000000000000000001&periodId=00000000000000000000000000000001&backaction=%2Ffwtx%2FexaminProject%2FviewProject.action&reportParamsId=100030&t_i_m_e=1284597750061",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.152:8083/fwtx/frame.action;jsessionid={sessionid}",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
return 0;
} |
|