loot_add_api.yml
1.2 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
name: 新增抢单任务
base_url: ${ENV(base_manager_url)}
verify: False
variables:
name: 测试抢单任务名称${get_nowtime()}
acceptanceCriteria: 测试抢单任务的验收标准${get_nowtime()}
description: 测试抢单任务的任务描述${get_nowtime()}
isImportant: false
msg: ok
#teardown_hooks:
# - ${teardown_hook_get_loot_task_id($response)}
request:
headers:
Content-Type: application/json; charset=UTF-8
Authorization: Bearer ${get_task_manager_accesstoken()}
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
json:
name: $name
# resourceType: 1
# resourceList:
# - id: ${get_resource_id()}
# title: ${get_resource_title()}
# content: ${get_resource_content()}
# serial: ${get_serialNo()}
customerValue:
- 31
taskCharacter: 12
reward: 2000
acceptanceCriteria: $acceptanceCriteria
description: $description
isImportant: $isImportant
taskBelong: 13
# pictures:
method: POST
url: /task/loot/update
validate:
- eq:
- content.msg
- $msg