seed_data.json
6.46 KB
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
{
"version": "1.0",
"description": "Publisher 技能种子数据 - 测试用例和示例配置",
"test_cases": [
{
"id": "tc_001",
"test_case": "视频分片上传-抖音",
"platform": "抖音",
"operation": "upload",
"input": {
"file_name": "interactive_ep1.mp4",
"file_size": 104857600,
"chunk_size": 5242880,
"file_hash": "abc123def456"
},
"expected_response": {
"upload_id": "upload_xxx",
"upload_url": "https://***.oss.aliyuncs.com/",
"auth_token": "STS.***"
},
"validation": {
"required_fields": ["upload_id", "upload_url"],
"timeout_ms": 60000
}
},
{
"id": "tc_002",
"test_case": "视频发布-抖音",
"platform": "抖音",
"operation": "publish",
"input": {
"video_id": "video_xxx",
"title": "互动剧第一集:命运交叉点",
"description": "在这关键时刻,你将做出怎样的选择?#互动剧 #剧情",
"topics": ["互动剧", "剧情", "选择"],
"location": "北京",
"cover_image": "cover_xxx"
},
"expected_response": {
"video_id": "video_new_xxx",
"share_url": "https://v.douyin.com/xxx",
"create_time": 1774542000
},
"validation": {
"required_fields": ["video_id", "share_url"],
"max_title_length": 55
}
},
{
"id": "tc_003",
"test_case": "分片上传-快手",
"platform": "快手",
"operation": "chunked_upload",
"input": {
"file_name": "drama_s1.mp4",
"file_size": 209715200,
"part_size": 10485760,
"parts": 20
},
"expected_response": {
"upload_id": "ks_upload_xxx",
"complete_url": "https://uploader.kuaishou.com/complete"
},
"validation": {
"required_fields": ["upload_id"]
}
},
{
"id": "tc_004",
"test_case": "草稿保存-快手",
"platform": "快手",
"operation": "save_draft",
"input": {
"title": "互动剧试拍",
"video_path": "/tmp/draft.mp4",
"description": "测试内容"
},
"expected_response": {
"draft_id": "draft_xxx",
"status": "saved"
},
"validation": {
"required_fields": ["draft_id"]
}
},
{
"id": "tc_005",
"test_case": "视频号发布",
"platform": "微信视频号",
"operation": "publish",
"input": {
"title": "互动剧-第一集",
"file_name": "video.mp4",
"description": "互动剧内容",
"author": "ABC工作室",
"category": "剧情"
},
"expected_response": {
"media_id": "media_xxx",
"msg_id": "msg_xxx"
},
"validation": {
"required_fields": ["media_id"]
}
},
{
"id": "tc_006",
"test_case": "B站上传预检",
"platform": "B站",
"operation": "pre_upload",
"input": {
"file_name": "b_ep1.mp4",
"file_size": 524288000,
"file_hash": "md5:xxx"
},
"expected_response": {
"upload_url": "https://upload.bilibili.com/xxx",
"auth": "bili_token",
"endpoint": "upos://xxx"
},
"validation": {
"required_fields": ["upload_url", "endpoint"]
}
},
{
"id": "tc_007",
"test_case": "B站发布",
"platform": "B站",
"operation": "publish",
"input": {
"cover": "cover_xxx",
"title": "【互动】命运的抉择 第一集",
"desc": "互动剧试播,点击选择你的命运!",
"tag": "互动剧",
"tid": 201,
"copyright": 1,
"videos": [
{
"filename": "bili_xxx",
"title": "P1 命运交叉点"
}
]
},
"expected_response": {
"bvid": "BVxxx",
"aid": 123456789,
"publish_time": 1774542000
},
"validation": {
"required_fields": ["bvid", "aid"]
}
},
{
"id": "tc_008",
"test_case": "小红书视频上传",
"platform": "小红书",
"operation": "upload",
"input": {
"file": "xhs_video.mp4",
"size": 104857600,
"type": "video"
},
"expected_response": {
"file_id": "xhs_file_xxx",
"upload_url": "https://upload.xiaohongshu.com/xxx"
},
"validation": {
"required_fields": ["file_id"]
}
},
{
"id": "tc_009",
"test_case": "互动剧互动点标记",
"platform": "抖音",
"operation": "interaction_tag",
"input": {
"video_id": "video_xxx",
"interactions": [
{
"time": 120,
"type": "choice",
"timestamp": 120000,
"options": [
{"id": "opt_a", "text": "继续前行", "next_scene": "scene_002"},
{"id": "opt_b", "text": "转身离开", "next_scene": "scene_003"}
]
},
{
"time": 360,
"type": "choice",
"timestamp": 360000,
"options": [
{"id": "opt_c", "text": "拯救同伴", "next_scene": "scene_005"},
{"id": "opt_d", "text": "独自逃跑", "next_scene": "scene_006"}
]
}
]
},
"expected_response": {
"interaction_id": "interaction_xxx",
"total_points": 2
},
"validation": {
"required_fields": ["interaction_id"]
}
},
{
"id": "tc_010",
"test_case": "发布状态查询",
"platform": "通用",
"operation": "status_check",
"input": {
"platform": "抖音",
"video_id": "video_xxx"
},
"expected_response": {
"status": "published",
"publish_time": 1774542000,
"view_count": 0,
"like_count": 0
},
"validation": {
"status_values": ["uploading", "processing", "published", "failed"]
}
}
],
"sample_config": {
"platform_credentials": {
"douyin": {
"client_key": "xxx",
"client_secret": "xxx",
"scope": "video_create"
},
"kuaishou": {
"app_id": "xxx",
"app_secret": "xxx"
},
"weixin": {
"app_id": "xxx",
"app_secret": "xxx"
}
},
"upload_settings": {
"default_chunk_size": 5242880,
"max_concurrent_parts": 4,
"retry_on_failure": true,
"progress_callback_interval_ms": 1000
}
}
}