正在显示
16 个修改的文件
包含
166 行增加
和
52 行删除
@@ -14,6 +14,7 @@ companyId=214 | @@ -14,6 +14,7 @@ companyId=214 | ||
14 | adminphone=19911111111 | 14 | adminphone=19911111111 |
15 | partnerphone=15510101010 | 15 | partnerphone=15510101010 |
16 | partnerId = 1047 | 16 | partnerId = 1047 |
17 | -visitorphone = 15510101011 | 17 | +visitorphone = 15510101012 |
18 | managerphone = 19911110001 | 18 | managerphone = 19911110001 |
19 | -id = 358 | ||
19 | +managerphone1 = 19911110003 | ||
20 | +id = 366 |
不能预览此文件类型
1 | -eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MTQwODk0NjMsImlhdCI6MTYxNDA0NjI2MywiaXNzIjoibW1tX3BhcnRuZXJtZyIsIm5iZiI6MTYxNDA0NjI2MywidWlkIjozMjQyMzEyOTU1MTM1NzQ0LCJjb21wYW55SWQiOjIxNH0.g72J0Cyp-EYq9iWlNWW7WWWmkyr63ojR90T2G_F04Ts | ||
1 | +eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MjQyOTA1MzMsImlhdCI6MTYyNDI0NzMzMywiaXNzIjoibW1tX3BhcnRuZXJtZyIsIm5iZiI6MTYyNDI0NzMzMywidWlkIjozMjQyMzEyOTU1MTM1NzQ0LCJjb21wYW55SWQiOjIxNH0.l0DtLzMjKwOpoTi6Z4yqbD-Xq0M9UZlmFstzhXJUEsY |
1 | -4972,4973,4974,4975,4976, |
@@ -241,4 +241,6 @@ def get_saleDate_bigger_today(*args_v): | @@ -241,4 +241,6 @@ def get_saleDate_bigger_today(*args_v): | ||
241 | else: | 241 | else: |
242 | return 1 | 242 | return 1 |
243 | 243 | ||
244 | - | 244 | +# a = {'code': 0, 'msg': '成功', 'data': {'center': {'accid': 3289075587008169984, 'imToken': '7cfb4197a9c6686a444191268beca32a', 'csAccountID': '3129687690100739', 'credentials': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE1NTEwMTAxMDExLCJjb21wYW55SWQiOjAsImFkbWluVHlwZSI6MCwicGhvbmUiOiIxNTUxMDEwMTAxMSIsImV4cCI6MTYyNjgzMzQ2MSwiaXNzIjoiand0In0.LpeAV863FuyF76tzWOKDNu3lrrLcwHKk-VSbs4Qlxd0', 'phone': '15510101011', 'partner': {'companys': [], 'id': 1, 'name': '合伙人'}, 'manager': {'companys': [{'id': 214, 'name': 'auto_test company', 'shortName': '自动化测试', 'image': {'path': 'http://suplus-file-dev.fjmaimaimai.com/upload/image/2020031002532231962.jpg'}, 'phone': '123'}], 'id': 2, 'name': '企业高管'}}}} |
245 | +# | ||
246 | +# print(a['data']['center']['partner']) |
@@ -66,8 +66,6 @@ def setup_hook_clean_db(companyid): | @@ -66,8 +66,6 @@ def setup_hook_clean_db(companyid): | ||
66 | db.commit() | 66 | db.commit() |
67 | cursor.execute('delete from order_good where company_id=' + companyid) | 67 | cursor.execute('delete from order_good where company_id=' + companyid) |
68 | db.commit() | 68 | db.commit() |
69 | - # cursor.execute('delete from partner_info where company_id=' + companyid + 'and id <> 1047') | ||
70 | - # db.commit() | ||
71 | print("delete OK") | 69 | print("delete OK") |
72 | except Exception as err: | 70 | except Exception as err: |
73 | # 发生错误时回滚 | 71 | # 发生错误时回滚 |
reports/20210223T020936.493401.html
已删除
100644 → 0
此 diff 太大无法显示。
@@ -12,7 +12,7 @@ teststeps: | @@ -12,7 +12,7 @@ teststeps: | ||
12 | api: api/app_api/login/auth_centerCompanys_api.yml | 12 | api: api/app_api/login/auth_centerCompanys_api.yml |
13 | validate: | 13 | validate: |
14 | - eq: | 14 | - eq: |
15 | - - content.data.center.partner.companys.0.id | 15 | + - content.data.center.partner.companys.-1.id |
16 | - ${convert_to_int($id)} | 16 | - ${convert_to_int($id)} |
17 | - length_equals: | 17 | - length_equals: |
18 | - content.data.center.manager.companys | 18 | - content.data.center.manager.companys |
@@ -2,7 +2,7 @@ config: | @@ -2,7 +2,7 @@ config: | ||
2 | name: APP高管登录 | 2 | name: APP高管登录 |
3 | base_url: ${ENV(base_url)} | 3 | base_url: ${ENV(base_url)} |
4 | variables: | 4 | variables: |
5 | - phone: ${ENV(managerphone)} | 5 | + phone: ${ENV(managerphone1)} |
6 | id: ${ENV(companyId)} | 6 | id: ${ENV(companyId)} |
7 | msg: '成功' | 7 | msg: '成功' |
8 | # | 8 | # |
@@ -2,7 +2,7 @@ config: | @@ -2,7 +2,7 @@ config: | ||
2 | name: APP合伙人登录,提示"当前账号已被禁用" | 2 | name: APP合伙人登录,提示"当前账号已被禁用" |
3 | base_url: ${ENV(base_url)} | 3 | base_url: ${ENV(base_url)} |
4 | variables: | 4 | variables: |
5 | - phone: ${ENV(visitorphone)} | 5 | + phone: ${ENV(managerphone)} |
6 | id: ${ENV(id)} | 6 | id: ${ENV(id)} |
7 | msg: '当前账号已被禁用' | 7 | msg: '当前账号已被禁用' |
8 | # | 8 | # |
@@ -14,37 +14,37 @@ teststeps: | @@ -14,37 +14,37 @@ teststeps: | ||
14 | output: | 14 | output: |
15 | - accessToken | 15 | - accessToken |
16 | 16 | ||
17 | -- name: 查看企业统计 | ||
18 | - api: api/app_api/company/statistics_api.yml | ||
19 | - extract: | ||
20 | - quarters: content.data.statistics | ||
21 | - totalCount: content.data.statistics.totalCount | ||
22 | - output: | ||
23 | - - totalCount | ||
24 | - - quarters | ||
25 | - validate: | ||
26 | - ####合伙人支出 | ||
27 | - - eq: | ||
28 | - - ${get_statistics(careerDividend,businessDividend,developDividend,appDividend,$quarters)} | ||
29 | - - 1950 | ||
30 | - ####订单金额 | ||
31 | - - eq: | ||
32 | - - ${get_statistics(careerOrdersMoney,businessOrdersMoney,developOrdersMoney,appOrdersMoney,$quarters)} | ||
33 | - - 21000 | ||
34 | - | ||
35 | -- name: 查看企业合伙人列表 | ||
36 | - variables: | ||
37 | - type1: 1 | ||
38 | - name1: '事业合伙' | ||
39 | - type2: 2 | ||
40 | - name2: '业务合伙' | ||
41 | - type3: 3 | ||
42 | - name3: '研发合伙' | ||
43 | - type4: 4 | ||
44 | - name4: '业务-产品应用合伙' | ||
45 | - api: api/app_api/company/partners_api.yml | ||
46 | - validate: | ||
47 | -# ###合伙人数 | ||
48 | - - length_equals: | ||
49 | - - content.data.partners | ||
50 | - - $totalCount | ||
17 | +#- name: 查看企业统计 | ||
18 | +# api: api/app_api/company/statistics_api.yml | ||
19 | +# extract: | ||
20 | +# quarters: content.data.statistics | ||
21 | +# totalCount: content.data.statistics.totalCount | ||
22 | +# output: | ||
23 | +# - totalCount | ||
24 | +# - quarters | ||
25 | +# validate: | ||
26 | +# ####合伙人支出 | ||
27 | +# - eq: | ||
28 | +# - ${get_statistics(careerDividend,businessDividend,developDividend,appDividend,$quarters)} | ||
29 | +# - 1950 | ||
30 | +# ####订单金额 | ||
31 | +# - eq: | ||
32 | +# - ${get_statistics(careerOrdersMoney,businessOrdersMoney,developOrdersMoney,appOrdersMoney,$quarters)} | ||
33 | +# - 21000 | ||
34 | +# | ||
35 | +#- name: 查看企业合伙人列表 | ||
36 | +# variables: | ||
37 | +# type1: 1 | ||
38 | +# name1: '事业合伙' | ||
39 | +# type2: 2 | ||
40 | +# name2: '业务合伙' | ||
41 | +# type3: 3 | ||
42 | +# name3: '研发合伙' | ||
43 | +# type4: 4 | ||
44 | +# name4: '业务-产品应用合伙' | ||
45 | +# api: api/app_api/company/partners_api.yml | ||
46 | +# validate: | ||
47 | +## ###合伙人数 | ||
48 | +# - length_equals: | ||
49 | +# - content.data.partners | ||
50 | +# - $totalCount |
1 | config: | 1 | config: |
2 | name: 合伙人测试集 | 2 | name: 合伙人测试集 |
3 | testcases: | 3 | testcases: |
4 | - | ||
5 | - name: start....初始化数据库和文件 | 4 | - name: start....初始化数据库和文件 |
6 | testcase: testcases/common/start_testcases.yml | 5 | testcase: testcases/common/start_testcases.yml |
7 | - | 6 | +# |
8 | #############################APP端合伙人开始################################ | 7 | #############################APP端合伙人开始################################ |
9 | - name: DIVI001-事业-初始状态-统计值正确 | 8 | - name: DIVI001-事业-初始状态-统计值正确 |
10 | testcase: testcases/app/dividends/DIVI001_career_dividendslist_testcases.yml | 9 | testcase: testcases/app/dividends/DIVI001_career_dividendslist_testcases.yml |
@@ -23,7 +22,7 @@ testcases: | @@ -23,7 +22,7 @@ testcases: | ||
23 | 22 | ||
24 | - name: DIVI006-累计实发订单列表不包含明日 | 23 | - name: DIVI006-累计实发订单列表不包含明日 |
25 | testcase: testcases/app/dividends/DIVI006_tomorrow_career_dividendslist_testcases.yml | 24 | testcase: testcases/app/dividends/DIVI006_tomorrow_career_dividendslist_testcases.yml |
26 | -####################################APP端合伙人权限################################ | 25 | +#####################################APP端合伙人权限################################ |
27 | - name: COMM1-单个合伙人登录 | 26 | - name: COMM1-单个合伙人登录 |
28 | testcase: testcases/app/common/COMM1_app_partner_login_testcases.yml | 27 | testcase: testcases/app/common/COMM1_app_partner_login_testcases.yml |
29 | 28 | ||
@@ -35,12 +34,12 @@ testcases: | @@ -35,12 +34,12 @@ testcases: | ||
35 | 34 | ||
36 | - name: COMM4-APP多公司高管登录 | 35 | - name: COMM4-APP多公司高管登录 |
37 | testcase: testcases/app/common/COMM4_app_more_company_manager_login_testcases.yml | 36 | testcase: testcases/app/common/COMM4_app_more_company_manager_login_testcases.yml |
38 | -####################################APP端合伙人结束################################ | ||
39 | -####################################APP端高管开始################################ | 37 | +#####################################APP端合伙人结束################################ |
38 | +#####################################APP端高管开始################################ | ||
40 | - name: COMP001-企业统计值正确 | 39 | - name: COMP001-企业统计值正确 |
41 | testcase: testcases/app/company/COMP001_company_statistics_testcases.yml | 40 | testcase: testcases/app/company/COMP001_company_statistics_testcases.yml |
42 | 41 | ||
43 | - name: COMP002-按照类型过滤,查看合伙人列表,数据正确 | 42 | - name: COMP002-按照类型过滤,查看合伙人列表,数据正确 |
44 | testcase: testcases/app/company/COMP002_company_partners_testcases.yml | 43 | testcase: testcases/app/company/COMP002_company_partners_testcases.yml |
45 | -###############################APP端高管结束################################ | ||
46 | - | 44 | +################################APP端高管结束################################ |
45 | +# |
testsuites/partner_testsuite - 副本.yml
0 → 100644
1 | +config: | ||
2 | + name: 合伙人测试集 | ||
3 | +testcases: | ||
4 | + | ||
5 | +- name: start....初始化数据库和文件 | ||
6 | + testcase: testcases/common/start_testcases.yml | ||
7 | + | ||
8 | +############################分红管理模块开始################################# | ||
9 | +- name: DIV001-分红列表-数据源来自于实发订单 | ||
10 | + testcase: testcases/dividends/DIV001_dividendslist_testcases.yml | ||
11 | + | ||
12 | +#- name: DIV002-分红列表-数据源不来自于意向订单 | ||
13 | +# testcase: testcases/dividends/DIV002_dividendslist_testcases.yml | ||
14 | + | ||
15 | +#- name: DIV003-分红管理-初始状态-各个值计算正确(旧接口) | ||
16 | +# testcase: testcases/dividends/DIV003_dividends_cal_testcases.yml | ||
17 | + | ||
18 | +- name: DIV003_1-分红管理-初始状态-各个值计算正确 | ||
19 | + testcase: testcases/dividends/DIV003_1_dividends_cal_testcases.yml | ||
20 | + | ||
21 | +#- name: DIV004-分红管理-调整数量由100改为50-各个值计算正确(旧接口) | ||
22 | +# testcase: testcases/dividends/DIV004_dividends_editnum_testcases.yml | ||
23 | + | ||
24 | +- name: DIV004_1-分红管理-调整数量由100改为50-各个值计算正确 | ||
25 | + testcase: testcases/dividends/DIV004_1_dividends_editnum_testcases.yml | ||
26 | + | ||
27 | +#- name: DIV005-分红管理-调整数量由100改为50-更改支付状态-各个值计算正确(旧接口) | ||
28 | +# testcase: testcases/dividends/DIV005_dividends_edit_num_pay_testcases.yml | ||
29 | + | ||
30 | +#- name: DIV006-分红管理-已支付订单数量减少(旧接口) | ||
31 | +# testcase: testcases/dividends/DIV006_dividends_edit_num_testcases.yml | ||
32 | + | ||
33 | +- name: DIV007-分红管理-产品1支付分红成功,数据正确 | ||
34 | + testcase: testcases/dividends/DIV007_dividends_payDividends_testcases.yml | ||
35 | + | ||
36 | +- name: DIV008-分红管理-产品1支付分红成功后,调整数量由100改为50,数据正确 | ||
37 | + testcase: testcases/dividends/DIV008_dividends_payDividends_editnum_testcases.yml | ||
38 | + | ||
39 | +- name: DIV009-分红管理-自建订单调整分红比例,系统提示‘操作失败’ | ||
40 | + testcase: testcases/dividends/DIV009_dividends_editnum_testcases.yml | ||
41 | + | ||
42 | +- name: DIV010-分红管理-批量支付分红成功,数据正确 | ||
43 | + testcase: testcases/dividends/DIV010_dividends_payDividends_batch_testcases.yml | ||
44 | +############################分红管理模块结束################################## | ||
45 | + | ||
46 | +- name: ACT001-实际订单-各个值计算正确 | ||
47 | + testcase: testcases/order/actual/ACT001_actual_detail_testcases.yml | ||
48 | + | ||
49 | +- name: ACT002-删除订单成功 | ||
50 | + testcase: testcases/order/actual/ACT002_actual_del_testcases.yml | ||
51 | + | ||
52 | +- name: ACT003-实际订单导出 | ||
53 | + testcase: testcases/order/actual/ACT003_actual_excel_testcases.yml | ||
54 | + | ||
55 | +#- name: PUR001-意向订单-各个值计算正确(已废弃) | ||
56 | +# testcase: testcases/order/purpose/PUR001_pur_detail_testcases.yml | ||
57 | +# | ||
58 | +#- name: PUR002-意向订单-发货(已废弃) | ||
59 | +# testcase: testcases/order/purpose/PUR002_pur_sendout_testcases.yml | ||
60 | + | ||
61 | +- name: ACT004-订单唯一性校验:新增订单号重复的实际订单,可以新增成功 | ||
62 | + testcase: testcases/order/actual/ACT004_actual_ordercode_repeat_testcases.yml | ||
63 | + | ||
64 | +- name: ACT005-订单唯一性校验:新增发货单号重复的实际订单,可以新增成功 | ||
65 | + testcase: testcases/order/actual/ACT005_actual_delivery_repeat_testcases.yml | ||
66 | + | ||
67 | +- name: ACT006-订单唯一性校验:新增订单号+发货单号+合伙人ID+合伙人类型重复的实际订单,但是产品名称不同,可以新增成功 | ||
68 | + testcase: testcases/order/actual/ACT006_actual_ordercode_delivery_repeat_testcases.yml | ||
69 | + | ||
70 | +- name: ACT007-订单唯一性校验:新增订单号+发货单号+合伙人ID+合伙人类型+产品名称重复的实际订单,不可以新增成功 | ||
71 | + testcase: testcases/order/actual/ACT007_actual_ordercode_delivery_product_repeat_testcases.yml | ||
72 | + | ||
73 | +- name: ACT008-订单唯一性校验:只有订单号不一致,可以新增成功 | ||
74 | + testcase: testcases/order/actual/ACT008_actual_repeat1_testcases.yml | ||
75 | + | ||
76 | +- name: ACT009-订单唯一性校验:只有发货单号不一致,可以新增成功 | ||
77 | + testcase: testcases/order/actual/ACT009_actual_repeat2_testcases.yml | ||
78 | + | ||
79 | +- name: ACT010-订单唯一性校验:合伙人类型不一致,可以新增成功 | ||
80 | + testcase: testcases/order/actual/ACT010_actual_repeat3_testcases.yml | ||
81 | + | ||
82 | +#################################合伙人管理开始################################ | ||
83 | +- name: PARTNERS001-查看合伙人列表,数据正确 | ||
84 | + testcase: testcases/partners/PARTNERS001_list_partner_testcases.yml | ||
85 | + | ||
86 | +- name: PARTNERS002-合伙人查询无数据时,返回正确 | ||
87 | + testcase: testcases/partners/PARTNERS002_list_partner_search_null_testcases.yml | ||
88 | + | ||
89 | +- name: PARTNERS003-合伙人批量禁用 | ||
90 | + testcase: testcases/partners/PARTNERS003_list_partner_batchDisabled_testcases.yml | ||
91 | + | ||
92 | +- name: PARTNERS004-合伙人批量启用 | ||
93 | + testcase: testcases/partners/PARTNERS004_list_partner_batchDisabled_testcases.yml | ||
94 | + | ||
95 | +- name: PARTNERS005-合伙人增删改查流程 | ||
96 | + testcase: testcases/partners/PARTNERS005_partner_testcases.yml | ||
97 | + | ||
98 | +- name: PARTNERS006-有业务数据的合伙人不能删除 | ||
99 | + testcase: testcases/partners/PARTNERS006_partner_remove.yml | ||
100 | + | ||
101 | +#################################合伙人管理结束################################ | ||
102 | +#################################成员管理开始################################ | ||
103 | +- name: ADMIN001-查看所有成员列表,数据正确 | ||
104 | + testcase: testcases/admin/ADMIN001_list_admin_testcases.yml | ||
105 | + | ||
106 | +- name: ADMIN002-查看成员列表-空列表返回正确 | ||
107 | + testcase: testcases/admin/ADMIN002_list_admin_search_null_testcases.yml | ||
108 | + | ||
109 | +- name: ADMIN003-查看权限 | ||
110 | + testcase: testcases/admin/ADMIN003_list_admin_permission_testcases.yml | ||
111 | + | ||
112 | +- name: ADMIN004-管理员高管设置是否正确 | ||
113 | + testcase: testcases/admin/ADMIN004_admin_isSenior_testcases.yml | ||
114 | +#################################成员管理结束################################ |
@@ -79,7 +79,7 @@ testcases: | @@ -79,7 +79,7 @@ testcases: | ||
79 | - name: ACT010-订单唯一性校验:合伙人类型不一致,可以新增成功 | 79 | - name: ACT010-订单唯一性校验:合伙人类型不一致,可以新增成功 |
80 | testcase: testcases/order/actual/ACT010_actual_repeat3_testcases.yml | 80 | testcase: testcases/order/actual/ACT010_actual_repeat3_testcases.yml |
81 | 81 | ||
82 | -#################################合伙人管理开始################################ | 82 | +################################合伙人管理开始################################ |
83 | - name: PARTNERS001-查看合伙人列表,数据正确 | 83 | - name: PARTNERS001-查看合伙人列表,数据正确 |
84 | testcase: testcases/partners/PARTNERS001_list_partner_testcases.yml | 84 | testcase: testcases/partners/PARTNERS001_list_partner_testcases.yml |
85 | 85 |
-
请 注册 或 登录 后发表评论