naotang的测试成长空间,记录工作中的问题,学习中的心得。 个人网站:www.naotang.com

web_reg_save_param等基本使用

上一篇 / 下一篇  2007-08-21 18:00:38 / 个人分类:测试工具

51Testing软件测试网Gq'L]"OY'S

int icount; 51Testing软件测试网Z9~x5uO dp

51Testing软件测试网W3Et#Ku'z0Z.l4c

 web_url("bar.html",51Testing软件测试网(C7Xl7rG[Y2Bg,Z3F
  "URL=http://XX.XXX.com/bar_{barid}.html",
e&G'Th q9|0  "Resource=0",51Testing软件测试网4csMtWO*V9`
  "RecContentType=text/html",
x1a1_2GzX jlC0  "Referer=",
4I]Z K3e Q&Wd0  "Snapshot=t1.inf",51Testing软件测试网"OC D6M"U pt6_
  "Mode=HTML",51Testing软件测试网0T"\(t/V6^j
  LAST);51Testing软件测试网2B,` D/Tt,JcJ.@

51Testing软件测试网r;sDk A j

    web_reg_save_param("topicid","NOTFOUND=warning","LB=topic_","RB=.html","Search=Headers",LAST);
9b,W9x$DD0  51Testing软件测试网L@y Oho!| l(M
   lr_start_transaction("post_topic");
kqvl*Hi g,h7l0 
P5C`A/g7g"p/\+j0 web_submit_data("add_topic.do",
0XN!x%s$Cu0oz0  "Action=http://XX.XXX.com/add_topic.do",51Testing软件测试网.l,Z9wt#|YTdW~;H
  "Method=POST",
;Y~0c+w-b)?4Ka0  "RecContentType=text/html",
sXe{Z B4D:E0  "Referer=http://XX.XXX.com/bar_{barid}.html",51Testing软件测试网$T+vkl;C
  "Snapshot=t3.inf",
,Y5d#rm v G,J0  "Mode=HTML",
g7r)B7E+m;C{-?]\r0  ITEMDATA,51Testing软件测试网Voo^7p&`
  "Name=allow_guest", "Value=on", ENDITEM,51Testing软件测试网"J V%M!h(H M&Y
  "Name=posturl", "Value=http://XX.XXX.com/bar_{barid}.html", ENDITEM,51Testing软件测试网 ee \gs[
  "Name=Username", "Value=", ENDITEM,51Testing软件测试网vt X'C;k^1N
  "Name=postTitle", "Value=TiTLE Author {user}", ENDITEM,51Testing软件测试网7y+e+J0WqRw
  "Name=postContent", "Value=Ting Ting Ka", ENDITEM,51Testing软件测试网5lo!P*[ W7K
  "Name=", "Value=", ENDITEM,
$[sF+prP0  "Name=validationcode_input", "Value=AAAA", ENDITEM,51Testing软件测试网1W8zf]] Z9uF
  "Name=BarID", "Value={barid}", ENDITEM,51Testing软件测试网 d]d,l4]-T)T^3I
  "Name=TopicID", "Value=", ENDITEM,
6jO#e\v z0  "Name=LastPage", "Value=", ENDITEM,51Testing软件测试网}+Mg?$I6DHK#}~
  LAST);
MA*o(ga%C-_;U0     lr_end_transaction("post_topic",LR_AUTO);51Testing软件测试网HE+D-e j5r5?
  
'G2D^/^\0     //count=atoi(lr_eval_string("{topicid_count}"));
.S ^m$t,Q5Eq0     //lr_error_message("the count is: %d",count);

:|Z4rh8WL@;n|0

/fXX#e_l*t0     lr_message ("the topicid is: %s",lr_eval_string("{topicid}"));
u*cVB-Y2G } q l0   51Testing软件测试网:`Y-Z*W `
  web_submit_data("add_reply.do",51Testing软件测试网\&bikj/p+i9Y+w
  "Action=http://XX.XXX.com/add_reply.do",51Testing软件测试网)n0t.`"d M i|(J2k9Y"b
  "Method=POST",51Testing软件测试网;h kBI,a
  "RecContentType=text/html",
1F|-M]J%wrS0  "Referer=http://XX.XXX.com/topic_{topicid}.html",
6Hpv%nE(IYTx-{9T+R0  "Snapshot=t7.inf",
\[MKV0  "Mode=HTML",51Testing软件测试网Cm\c q,SRw
  ITEMDATA,
2X exFL0S*Dx0  "Name=allow_guest", "Value=on", ENDITEM,
1A3}V#UT0  "Name=posturl", "Value=topic_{topicid}.html", ENDITEM,
:GP bt0H e iA0  "Name=Username", "Value=", ENDITEM,
I5xuCG\}ps?%M5} _0  "Name=postTitle", "Value=", ENDITEM,
9NH+Gam'\+n5`a;{8B0  "Name=postContent","Value=TopicTile is {topicid} Reply:{user} {replytime}" , ENDITEM,
}JW pO0  "Name=", "Value=", ENDITEM,51Testing软件测试网6}z lF)B&E?/{Mi'v
  "Name=validationcode_input", "Value=BBBB", ENDITEM,51Testing软件测试网6oA6r I^|(o'Ud{
  "Name=BarID", "Value={barid}", ENDITEM,
8p5\] l,C0  "Name=TopicID", "Value={topicid}", ENDITEM,
-nZ@4E5i n6vC8Go/Z {:Er0  "Name=LastPage", "Value=", ENDITEM,51Testing软件测试网 S\/\'|7CBS5b
  LAST);51Testing软件测试网:E'I| _LBBh

"u ` s%d*{8B6\#H"D0 web_url("topic_125007_1.html_2",51Testing软件测试网D h kL gWS
  "URL=http://XX.XXX.com/topic_{topicid}.html",
I~!c*m-sl yI0  "Resource=0",
6q+[k/?8v6e.{0  "RecContentType=text/html",
cPMk)V Zj4G:}/S0  "Referer=",51Testing软件测试网KU*AWw9xV
  "Snapshot=t8.inf",
tU.Ag(aO9Mlg0  "Mode=HTML",51Testing软件测试网T5f8n&I"DA2b&W
  LAST);
2_'X8NK6T$ys0

;z,EZ$Co Pv#}8w0

TAG: LoadRunner web_reg_save_param lr_save_string lr_eval_string sprintf 测试工具

 

评分:0

我来说两句

Open Toolbar