COMP002_company_partners_testcases.yml
1.0 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
config:
name: COMP001-按照类型过滤,查看合伙人列表,数据正确
base_url: ${ENV(base_manager_url)}
variables:
phone: ${ENV(adminphone)}
teststeps:
- name: 登录天联共创app端系统
####身份类型 1:合伙人 2:高管
variables:
idType: ${convert_to_int(2)}
testcase: testcases/app/common/app_login_testcases.yml
output:
- accessToken
- name: 查看企业统计
api: api/app_api/company/statistics_api.yml
extract:
###事业合伙人数
careerCount: content.data.statistics.careerCount
output:
- careerCount
- name: 查看企业合伙人列表
variables:
type1: 1
name1: '事业合伙'
type2: 21
name2: '业务合伙1'
type3: 31
name3: '研发合伙1'
type4: 41
name4: '业务-产品应用合伙1'
api: api/app_api/company/partners_api.yml
validate:
# ###合伙人数
- length_equals:
- content.data.partners
- $careerCount