|
由于我刚刚开始接触loadedrunner,很多地方不明白!麻烦大家了
在这段代码中我因该在哪里加入事务和集合啊?谢谢了
Action()
{
web_url("www.abc.com",
"URL=http://www.abc.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("userLogin.do",
"URL=http://www.abc.com/userLogin.do",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"URL=/images/leftmenu_bg.gif", ENDITEM,
"URL=/images/logo.gif", ENDITEM,
"URL=/images/style_triangle.gif", ENDITEM,
"URL=/images/navigator_bg.gif", ENDITEM,
"URL=/images/shadow_gray.gif", ENDITEM,
"URL=/images/login_img.gif", ENDITEM,
"URL=/images/search_icon_01.gif", ENDITEM,
LAST);
lr_think_time(13);
web_submit_form("userLogin.do_2",
"Snapshot=t3.inf",
ITEMDATA,
"Name=email", "Value=111@111.com", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
"Name=persistent", "Value=<OFF>", ENDITEM,
EXTRARES,
LAST);
lr_think_time(6);
lr_think_time(5);
return 0;
}
[ 本帖最后由 云彩 于 2008-3-11 12:34 编辑 ] |
|