-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAction.c
182 lines (166 loc) · 5.64 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
Action()
{
lr_start_transaction("feed");
web_url("feed",
"URL=http://localhost:8080/douyin/feed/",
"Resource=0",
"RecContentType=text/html",
"Mode=HTTP",
LAST);
lr_end_transaction("feed", LR_AUTO);
lr_start_transaction("user_info");
web_url("user_info",
"URL=http://localhost:8080/douyin/user/?id=123",
"Resource=0",
"RecContentType=text/html",
"Mode=HTTP",
LAST);
lr_end_transaction("user_info", LR_AUTO);
lr_start_transaction("register");
web_submit_data("register",
"Action=http://localhost:8080/douyin/user/register/",
"Method=POST",
"RecContentType=application/json",
"Referer=http://localhost:8080/douyin/user/register/",
"Snapshot=t1.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=testuser", ENDITEM,
"Name=password", "Value=testpassword", ENDITEM,
LAST);
lr_end_transaction("register", LR_AUTO);
lr_start_transaction("login");
web_submit_data("login",
"Action=http://localhost:8080/douyin/user/login/",
"Method=POST",
"RecContentType=application/json",
"Referer=http://localhost:8080/douyin/user/login/",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=testuser", ENDITEM,
"Name=password", "Value=testpassword", ENDITEM,
LAST);
lr_end_transaction("login", LR_AUTO);
lr_start_transaction("publish");
web_submit_data("publish",
"Action=http://localhost:8080/douyin/publish/action/",
"Method=POST",
"RecContentType=application/json",
"Referer=http://localhost:8080/douyin/publish/action/",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=title", "Value=testtitle", ENDITEM,
"Name=content", "Value=testcontent", ENDITEM,
LAST);
lr_end_transaction("publish", LR_AUTO);
lr_start_transaction("publish_list");
web_url("publish_list",
"URL=http://localhost:8080/douyin/publish/list/",
"Resource=0",
"RecContentType=text/html",
"Mode=HTTP",
LAST);
lr_end_transaction("publish_list", LR_AUTO);
lr_start_transaction("favorite_action");
web_submit_data("favorite_action",
"Action=http://localhost:8080/douyin/favorite/action/",
"Method=POST",
"RecContentType=application/json",
"Referer=http://localhost:8080/douyin/favorite/action/",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=id", "Value=123", ENDITEM,
LAST);
lr_end_transaction("favorite_action", LR_AUTO);
lr_start_transaction("favorite_list");
web_url("favorite_list",
"URL=http://localhost:8080/douyin/favorite/list/",
"Resource=0",
"RecContentType=text/html",
"Mode=HTTP",
LAST);
lr_end_transaction("favorite_list", LR_AUTO);
lr_start_transaction("comment_action");
web_submit_data("comment_action",
"Action=http://localhost:8080/douyin/comment/action/",
"Method=POST",
"RecContentType=application/json",
"Referer=http://localhost:8080/douyin/comment/action/",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=id", "Value=123", ENDITEM,
"Name=comment", "Value=testcomment", ENDITEM,
LAST);
lr_end_transaction("comment_action", LR_AUTO);
lr_start_transaction("comment_list");
web_url("comment_list",
"URL=http://localhost:8080/douyin/comment/list/?id=123",
"Resource=0",
"RecContentType=text/html",
"Mode=HTTP",
LAST);
lr_end_transaction("comment_list", LR_AUTO);
lr_start_transaction("relation_action");
web_submit_data("relation_action",
"Action=http://localhost:8080/douyin/relation/action/",
"Method=POST",
"RecContentType=application/json",
"Referer=http://localhost:8080/douyin/relation/action/",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=id", "Value=123", ENDITEM,
"Name=action", "Value=follow", ENDITEM,
LAST);
lr_end_transaction("relation_action", LR_AUTO);
lr_start_transaction("follow_list");
web_url("follow_list",
"URL=http://localhost:8080/douyin/relation/follow/list/?id=123",
"Resource=0",
"RecContentType=text/html",
"Mode=HTTP",
LAST);
lr_end_transaction("follow_list", LR_AUTO);
lr_start_transaction("follower_list");
web_url("follower_list",
"URL=http://localhost:8080/douyin/relation/follower/list/?id=123",
"Resource=0",
"RecContentType=text/html",
"Mode=HTTP",
LAST);
lr_end_transaction("follower_list", LR_AUTO);
lr_start_transaction("friend_list");
web_url("friend_list",
"URL=http://localhost:8080/douyin/relation/friend/list/?id=123",
"Resource=0",
"RecContentType=text/html",
"Mode=HTTP",
LAST);
lr_end_transaction("friend_list", LR_AUTO);
lr_start_transaction("message_chat");
web_url("message_chat",
"URL=http://localhost:8080/douyin/message/chat/?id=123",
"Resource=0",
"RecContentType=text/html",
"Mode=HTTP",
LAST);
lr_end_transaction("message_chat", LR_AUTO);
lr_start_transaction("message_action");
web_submit_data("message_action",
"Action=http://localhost:8080/douyin/message/action/",
"Method=POST",
"RecContentType=application/json",
"Referer=http://localhost:8080/douyin/message/action/",
"Snapshot=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=id", "Value=123", ENDITEM,
"Name=message", "Value=testmessage", ENDITEM,
LAST);
lr_end_transaction("message_action", LR_AUTO);
return 0;
}