TA的每日心情 | 奋斗 2015-8-17 17:23 |
---|
签到天数: 2 天 连续签到: 1 天 [LV.1]测试小兵
|
1测试积点
下边的代码怎么老是,找不到检查点
Action()
{
……
web_custom_request("home.html",
"URL=http://127.0.0.1:1080/WebTours/home.html",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=true",
"Snapshot=t6.inf",
"Mode=HTTP",
LAST);
//Correlation comment - Do not change!Original value='8557109532.712839206fzDtAiipQVzzzzzHDDiAtpfDDf' Name ='CorrelationParameter_1'
web_set_max_html_param_len("1024");
web_reg_save_param_ex(
"ParamName=CorrelationParameter_1",
"LB=userSession value=",
"RB=>\n<form method",
"NotFound=error",
SEARCH_FILTERS,
"Scope=BODY",
"RequestUrl=*/nav.pl*",
LAST);
web_custom_request("nav.pl",
"URL=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=true",
"Snapshot=t7.inf",
"Mode=HTTP",
LAST);
web_add_auto_header("Accept",
"*/*");
web_custom_request("JSFormSubmit.js",
"URL=http://127.0.0.1:1080/WebTours/JSFormSubmit.js",
"Method=GET",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t8.inf",
LAST);
/* Request with GET method to URL "http://127.0.0.1:1080/favicon.ico" failed during recording. Server response : 404*/
web_add_auto_header("Accept",
"application/x-shockwave-flash, image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*");
web_custom_request("login.pl",
"URL=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t9.inf",
"Mode=HTTP",
"Body=userSession={CorrelationParameter_1}&username=abc&password=abc&JSFormSubmit=on&login.x=67&login.y=7",
LAST);
web_custom_request("nav.pl_2",
"URL=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/login.pl",
"Snapshot=t10.inf",
"Mode=HTTP",
LAST);
web_reg_find("Text=Welcome, <b>abc",
"Fail=NotFound",
LAST);
web_custom_request("login.pl_2",
"URL=http://127.0.0.1:1080/WebTours/login.pl?intro=true",
"Method=GET",
"TargetFrame=_SELF",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/login.pl",
"Snapshot=t11.inf",
"Mode=HTTP",
"Body=",
LAST); |
|