Action ()
{
Char * keyword;
Char tempstr [50];
Int I;
Int length;
Int time;
I = 0;
Length = 0;
Keyword = "LoadRunner"; // LoadRunner needs to be parameterized
Lr_save_string (keyword, "param_keyword ");
Web_url ("www.baidu.com ",
"URLs = http://www.baidu.com /",
"Resource = 0 ",
"Reccontenttype = text/html ",
"Referer = ",
"Snapshot = t1.inf ",
"Mode = html ",
Extrares,
"Url =/img/i2.png", Enditem,
"Url =/img/arr.gif", Enditem,
"Url =/JS/bdsug. js? V = 1.0.3.0 ", Enditem,
// "Url = http://suggestion.baidu.com/su? WD = L & P = 3 & CB = Window. bdsug. sug & t = 1302791328125 ", Enditem,
// "Url = http://suggestion.baidu.com/su? WD = lo & P = 3 & CB = Window. bdsug. sug & t = 1302791328359 ", Enditem,
// "Url = http://suggestion.baidu.com/su? WD = Loa & P = 3 & CB = Window. bdsug. sug & t = 1302791328687 ", Enditem,
// "Url = http://suggestion.baidu.com/su? WD = load & P = 3 & CB = Window. bdsug. sug & t = 1302791328828 ", Enditem,
// "Url = http://suggestion.baidu.com/su? WD = loadr & P = 3 & CB = Window. bdsug. sug & t = 1302791329968 ", Enditem,
// "Url = http://suggestion.baidu.com/su? WD = loadru & P = 3 & CB = Window. bdsug. sug & t = 1302791330328 ", Enditem,
// "Url = http://suggestion.baidu.com/su? WD = loadrun & P = 3 & CB = Window. bdsug. sug & t = 1302791330562 ", Enditem,
// "Url = http://suggestion.baidu.com/su? WD = loadrunn & P = 3 & CB = Window. bdsug. sug & t = 1302791330812 ", Enditem,
// "Url = http://suggestion.baidu.com/su? WD = loadrunne & P = 3 & CB = Window. bdsug. sug & t = 1302791331046 ", Enditem,
// "Url = http://suggestion.baidu.com/su? WD = LoadRunner & P = 3 & CB = Window. bdsug. sug & t = 1302791331265 ", Enditem,
Last );
Length = strlen (lr_eval_string ("{param_keyword }"));
Lr_output_message ("% d", length );
Time = 1302791331265;
For (I = 0; I <length; I ++)
{
Strncpy (tempstr, lr_eval_string ("{param_keyword}"), I + 1 );
Lr_output_message (tempstr );
Lr_save_string (tempstr, "tmp_keyword ");
Time = Time + 100;
Lr_save_int (time, "param_time ");
Web_url ("suggestion ",
"Url = http://suggestion.baidu.com/su? WD = {tmp_keyword} & P = 3 & CB = Window. bdsug. sug & t = {param_time }",
"Resource = 0 ",
"Reccontenttype = text/html ",
"Referer = ",
"Mode = html ",
Last );
}
Lr_think_time (7 );
Web_url ("S ",
"Url = http://www.baidu.com/s? WD = {param_keyword }",
// "Snapshot = t2.inf ",
// Itemdata,
// "Name = WD", "value = {param_keyword}", Enditem,
Extrares,
"Url = http://sclick.baidu.com/w.gif? Q = {param_keyword} & fm = se & t = 1302791347 & Y = f7b49ff8 & cid = 4 & qid = abd7789a0badfccb & t = {param_time} & Path = http://www.baidu.com/s? WD = {param_keyword }",
"Referer = http://www.baidu.com/s? WD = {param_keyword }",
Enditem,
Last );
Return 0;
}