?????tò???loadrunner???????????????????????????????????????????????
1 Action()
2 {
3
4     web_url("WebTours"??
5         "URL=http://127.0.0.1:1080/WebTours/"??
6         "Resource=0"??
7         "RecContentType=text/html"??
8         "Referer="??
9         "Snapshot=t1.inf"??
10         "Mode=HTML"??
11         EXTRARES??
12         "Url=../favicon.ico"?? "Referer="?? ENDITEM??
13         "Url=http://act.cmcmcdn.com/upload/201507/8afc2fe48db9060fe1bdda2089e1d950.png"?? ENDITEM??
14         "Url=http://act.cmcmcdn.com/upload/201507/3b491068507d8f85ea7b35d756da7215.png"?? ENDITEM??
15         "Url=https://ieonline.microsoft.com/favicon.ico"?? "Referer="?? ENDITEM??
16         LAST);
17
18     web_link("sign up now"??
19         "Text=sign up now"??
20         "Snapshot=t2.inf"??
21         LAST);
22
23     web_reg_find("Text=Thank you?? <b>t1"??
24         LAST);
25
26     web_submit_form("login.pl"??
27         "Snapshot=t3.inf"??
28         ITEMDATA??
29         "Name=username"?? "Value=t1"?? ENDITEM??
30         "Name=password"?? "Value=123456"?? ENDITEM??
31         "Name=passwordConfirm"?? "Value=123456"?? ENDITEM??
32         "Name=firstName"?? "Value="?? ENDITEM??
33         "Name=lastName"?? "Value="?? ENDITEM??
34         "Name=address1"?? "Value="?? ENDITEM??
35         "Name=address2"?? "Value="?? ENDITEM??
36         "Name=register.x"?? "Value=57"?? ENDITEM??
37         "Name=register.y"?? "Value=1"?? ENDITEM??
38         LAST);
39
40     return 0;
41 }
?????????????????????????1?????---??Replace with a new parameter???? 2???????insert??----??new Parameter…??
??????????????????????????????
????????????????????????????????????н???????????????????ж????????????????
???????裬???????????????????????????????????????username??????????????????????????????????
1     web_submit_form("login.pl"??
2         "Snapshot=t3.inf"??
3         ITEMDATA??
4         "Name=username"?? "Value={username}"?? ENDITEM??
5         "Name=password"?? "Value=123456"?? ENDITEM??
6         "Name=passwordConfirm"?? "Value=123456"?? ENDITEM??
7         "Name=firstName"?? "Value="?? ENDITEM??
8         "Name=lastName"?? "Value="?? ENDITEM??
9         "Name=address1"?? "Value="?? ENDITEM??
10         "Name=address2"?? "Value="?? ENDITEM??
11         "Name=register.x"?? "Value=57"?? ENDITEM??
12         "Name=register.y"?? "Value=1"?? ENDITEM??
13         LAST);
??????е?5?е?123456?????---??Replace with a new parameter????parameter name??password?? ???“Properites…”?????????????????????
????File?б???У????????????????????"username.dat"?????“Add Column…”??????μ????????????????????
????column name:password.???“Edit with Notepad”??α??????????????????????????????????????
??????????????????????γ??????????