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

web_reg_save_param等基本使用

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

1t%FA$i@ T|0int icount; 51Testing软件测试网5o&])M/li iz@1Ah

51Testing软件测试网(XcgMVf_t

 web_url("bar.html",
eX#J0j%B2g*\0  "URL=http://XX.XXX.com/bar_{barid}.html",51Testing软件测试网`-z/^Wfvy B!HO
  "Resource=0",51Testing软件测试网@g8BVU.eP
  "RecContentType=text/html",51Testing软件测试网"v pz1Io
  "Referer=",51Testing软件测试网,JMsS^Tml~O
  "Snapshot=t1.inf",
(c P A7G3HT;r0  "Mode=HTML",51Testing软件测试网M:i9w,b EC0u D
  LAST);51Testing软件测试网clf5E$@+Tl

:fi(q%S9Q+bp+f#r0    web_reg_save_param("topicid","NOTFOUND=warning","LB=topic_","RB=.html","Search=Headers",LAST);
X TG9[!kE0  51Testing软件测试网L[?r2{Hg
   lr_start_transaction("post_topic");
EB {+|4Pc,A ?c'u"P5i0 
4GSH H jYI%^+}0 web_submit_data("add_topic.do",51Testing软件测试网 Y|| Pz4JH.v
  "Action=http://XX.XXX.com/add_topic.do",51Testing软件测试网'Cg#POA;f,q
  "Method=POST",51Testing软件测试网#f#[|%Qu3y
  "RecContentType=text/html",
eJ]$\G^'j"D M0  "Referer=http://XX.XXX.com/bar_{barid}.html",51Testing软件测试网(t0tX~:nd#~u
  "Snapshot=t3.inf",
"i&`"Y2K%MgT4N$i(c1J0  "Mode=HTML",51Testing软件测试网P4Y!D B%f/O
  ITEMDATA,
P&gLD(RK0  "Name=allow_guest", "Value=on", ENDITEM,51Testing软件测试网;aNQi$q0dX
  "Name=posturl", "Value=http://XX.XXX.com/bar_{barid}.html", ENDITEM,51Testing软件测试网"ve^tzy_
  "Name=Username", "Value=", ENDITEM,
fI4IY L2yv0  "Name=postTitle", "Value=TiTLE Author {user}", ENDITEM,
)b+\,N#F2b}0  "Name=postContent", "Value=Ting Ting Ka", ENDITEM,
,n[-T$qSex?{0  "Name=", "Value=", ENDITEM,51Testing软件测试网&xW LhA3H1{
  "Name=validationcode_input", "Value=AAAA", ENDITEM,51Testing软件测试网~1u]7}'O%J3Hg'tz
  "Name=BarID", "Value={barid}", ENDITEM,
]GVb+\7S]w0  "Name=TopicID", "Value=", ENDITEM,51Testing软件测试网C+j8q:Q9XE
  "Name=LastPage", "Value=", ENDITEM,
2Ds\jf1b3f X0  LAST);
:N;Xl;M{D$Ut0     lr_end_transaction("post_topic",LR_AUTO);
6U(H&XN,B?0  
7T0k:tQ"M0     //count=atoi(lr_eval_string("{topicid_count}"));
qgRai nc/y0     //lr_error_message("the count is: %d",count);

(v;L$bUsI4hZx051Testing软件测试网ET8MS Rm

     lr_message ("the topicid is: %s",lr_eval_string("{topicid}"));51Testing软件测试网wN*je8X#Z#S
   51Testing软件测试网:~SQT7i'WN
  web_submit_data("add_reply.do",
$vE7|vaQ5P8E#M0  "Action=http://XX.XXX.com/add_reply.do",
ij7P K/Uq$P gGlJ0  "Method=POST",
\1W Lv u2nS0  "RecContentType=text/html",
6])Q(?6i1[Up P0  "Referer=http://XX.XXX.com/topic_{topicid}.html",
hn.M@V,d l0L#?\0  "Snapshot=t7.inf",51Testing软件测试网.BJ'W9].SL
  "Mode=HTML",51Testing软件测试网%] cT#T}]"u'F
  ITEMDATA,51Testing软件测试网!Z^Hj[ E ]%xz-o?
  "Name=allow_guest", "Value=on", ENDITEM,51Testing软件测试网&M,S dX[&Iw`
  "Name=posturl", "Value=topic_{topicid}.html", ENDITEM,
c\1[!L(jcS)m9RTz0  "Name=Username", "Value=", ENDITEM,
1`/_g:KV7vb0  "Name=postTitle", "Value=", ENDITEM,51Testing软件测试网+OU,q~ K7vx
  "Name=postContent","Value=TopicTile is {topicid} Reply:{user} {replytime}" , ENDITEM,
8h8e"?.Q,j*O]1c G0  "Name=", "Value=", ENDITEM,
}tk6j i Rlla0  "Name=validationcode_input", "Value=BBBB", ENDITEM,51Testing软件测试网c;p/B+f"E
  "Name=BarID", "Value={barid}", ENDITEM,
/y|q xhgc0  "Name=TopicID", "Value={topicid}", ENDITEM,
6zC{kh:e7AH0  "Name=LastPage", "Value=", ENDITEM,51Testing软件测试网*@n t&ZXC;W
  LAST);51Testing软件测试网Hl&qr"W ?@(P [hq

N-[O#fm0 web_url("topic_125007_1.html_2",51Testing软件测试网RAx+h\7ro
  "URL=http://XX.XXX.com/topic_{topicid}.html",
L e1M @D f0  "Resource=0",51Testing软件测试网9vl-ip9F
  "RecContentType=text/html",51Testing软件测试网W3GGh!w#W8w
  "Referer=",51Testing软件测试网av.C0FP
  "Snapshot=t8.inf",
p4amT.w u;Z6P$q0  "Mode=HTML",
g}hh:o"d0  LAST);
C8R:x5lO)z9D0

R&d:}m4x/Wz}4W g0

TAG: LoadRunner web_reg_save_param lr_save_string lr_eval_string sprintf 测试工具

 

评分:0

我来说两句

Open Toolbar