-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAction.c
73 lines (54 loc) · 1.5 KB
/
Action.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Action()
{
lr_start_transaction("Launch");
web_url("jpetstore",
"URL=http://172.24.50.80:9090/jpetstore/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=../favicon.ico", "Referer=", ENDITEM,
LAST);
lr_end_transaction("Launch",LR_AUTO);
lr_start_transaction("Login");
web_image("sign-in.gif",
"Src=images/sign-in.gif",
"Snapshot=t2.inf",
LAST);
lr_save_string(lr_decrypt("56fd14bda97a1332"), "PasswordParameter");
lr_think_time(4);
web_submit_form("signon.shtml;jsessionid=DAB4006CB9DED043FC57E0CD4BE65D9E",
"Snapshot=t3.inf",
ITEMDATA,
"Name=username", "Value=j2ee", ENDITEM,
"Name=password", "Value={PasswordParameter}", ENDITEM,
"Name=x", "Value=45", ENDITEM,
"Name=y", "Value=6", ENDITEM,
LAST);
lr_end_transaction("Login",LR_AUTO);
lr_start_transaction("Click_Pet");
web_image("fish_icon.gif",
"Src=../images/fish_icon.gif",
"Snapshot=t4.inf",
LAST);
lr_end_transaction("Click_Pet",LR_AUTO) ;
lr_start_transaction("Pet_Category");
web_link("FI-FW-01",
"Text=FI-FW-01",
"Snapshot=t5.inf",
LAST);
web_link("EST-4",
"Text=EST-4",
"Snapshot=t6.inf",
LAST);
lr_end_transaction("Pet_Category", LR_AUTO);
lr_start_transaction("LogOut");
web_image("sign-out.gif",
"Src=../images/sign-out.gif",
"Snapshot=t7.inf",
LAST);
lr_end_transaction("LogOut",LR_AUTO);
return 0;
}