度过了一个冬眠,在春末夏初之际,补充自己的营养,努力学习,努力工作!

获取HTTP_CODE代码之一

上一篇 / 下一篇  2013-08-21 17:28:33 / 个人分类:LR文档

Action()
*B,Vz\:O_ Tr$s0{51Testing软件测试网;SBUq+\@3H eA
    int HttpRetCode;
;t'V1vJ8DF)b {!`sA0
)^Zh8W g']2^!G h0    lr_rendezvous("行业资讯列表首页");51Testing软件测试网6}P7c%?^h0b

)jN-Je!bI2JL7y0    web_reg_find("Text=GMGC","Search=Body","Savecount=count",LAST);
Y"S]%B/Tiwup0
YA{fz} R!o0    lr_start_transaction("行业资讯列表首页");51Testing软件测试网9T??"\+uzb
51Testing软件测试网TSq5fm2] ~,r
    web_url("industry_1.html",51Testing软件测试网~ Z@%dt)a
        "URL=http://211.147.5.170:7011/djwebst/news/industry_1.html",
(c8{#J)hUdb0        "Resource=0",
%K-U4f ]^(\ h;[6Z9Y0        "RecContentType=text/html",
z*rR5j G+V {{m0        "Referer=",
M|xr%@N6b7l0        "Snapshot=t1.inf",51Testing软件测试网9k!S0Epn6w;[s#{NW \
        "Mode=HTML",
DI0ci6`m m%j/U0        EXTRARES,
e1NQ?}%j3K,G~0        "Url=http://img.d.cn/2013/web_index/dcn/images/spritePNG8.png", ENDITEM,51Testing软件测试网@$R"Y'S"}5j
        "Url=http://img.d.cn/2013/web_index/dcn/images/spritePNG24.png", ENDITEM,51Testing软件测试网7]Kr&rJ3m.k
        "Url=http://img.d.cn/2013/web_index/dcn/images/siteNavBg.gif", ENDITEM,
E_zt;?F+n&P0        "Url=http://img.d.cn/2013/web_index/dcn/images/mobicon.gif", ENDITEM,
6}Bh7e,HF0        LAST);
qA%y3lC.pc&?g8g2W$g0
@ K+]7Uf#j;U(y0    HttpRetCode=web_get_int_property(HTTP_INFO_RETURN_CODE);51Testing软件测试网9I#\5V ]$x

*`A$}(L:Vfhp0    if(HttpRetCode==200){
Q})V\+X Q6O0        lr_end_transaction("行业资讯列表首页", LR_PASS);51Testing软件测试网5|2me!\h+zLDd)E
    }
hfa"K(_0    else
"M1OYGC1mLU1v0    {
OG9e O*Jg}0        lr_end_transaction("行业资讯列表首页", LR_FAIL);
T9Uw,r/QM0R051Testing软件测试网 k`0HD2egX)Vo
    }51Testing软件测试网{h%TP `

7F:qj;X|'XF-k^Z,[l0    web_reg_find("Text=p802","Search=Body","Savecount=count1",LAST);
bj n)~i v{:[051Testing软件测试网7_:mP V{;^*]-Qj
    lr_rendezvous("行业资讯列表末页");51Testing软件测试网S&z{zY)t3sv0N@}[
51Testing软件测试网.o1|1C(Tzw7N
    lr_start_transaction("行业资讯列表末页");
tnc Ol!Z0
0~[vG@;O051Testing软件测试网3L0n+qJ:\J d
    web_url("industry_1.html",51Testing软件测试网 n n:iDqJ:AC
        "URL=http://211.147.5.170:7011/djwebst/news/industry_8933.html",
Kt {KjhZ0        "Resource=0",51Testing软件测试网CD[_R(DOr"j7\
        "RecContentType=text/html",
8YH6g6l"[8\dX8\0        "Referer=",
7t,C/s:W$h Z0        "Snapshot=t2.inf",51Testing软件测试网'Mk$?7GDR%mD2y5t
        "Mode=HTML",
){r [iU0        LAST);51Testing软件测试网)gJ?#S*C ^
51Testing软件测试网 py4Rdo;S:du
    HttpRetCode = web_get_int_property(HTTP_INFO_RETURN_CODE);
^}Xa J3M5H+e0
jEcb/q"q0    if(HttpRetCode==200){
"L8M7X4S1U1[0        lr_end_transaction("行业资讯列表末页", LR_PASS);
w+k^~5sjK5v0    }
8_!\ r|*@NY;c0    else
v[/sC0GEve0    {51Testing软件测试网+XC"ka^
        lr_end_transaction("行业资讯列表末页", LR_FAIL);51Testing软件测试网 lk8b%Z0QK2_H
51Testing软件测试网/W x5wa m]].R
    }
`r7m5RI U051Testing软件测试网"BGp5ye i*y W l~
51Testing软件测试网y Fy:Qs
    return 0;51Testing软件测试网8Jj)~(T'@
}
IK D(fuB0
,S]&Wvm V8y0

TAG:

 

评分:0

我来说两句

Open Toolbar