正在显示
61 个修改的文件
包含
535 行增加
和
731 行删除
1 | #base_url=https://ability-test.fjmaimaimai.com | 1 | #base_url=https://ability-test.fjmaimaimai.com |
2 | -#base_public_url = http://public-interface-test.fjmaimaimai.com/ | ||
3 | -#base_public_url = https://public-interface.fjmaimaimai.com/mmm-partnermg/ | ||
4 | -#base_business_url = https://suplus-business-admin-gateway-test.fjmaimaimai.com/ | ||
5 | -#base_worth_url = https://suplus-worth-web-gateway-test.fjmaimaimai.com/ | 2 | +#base_public_url = http://public-interface-test.fjmaimaimai.com |
3 | +#base_public_url = https://public-interface.fjmaimaimai.com/mmm-partnermg | ||
4 | +#base_business_url = https://suplus-business-admin-gateway-test.fjmaimaimai.com | ||
5 | +#base_worth_url = https://suplus-worth-web-gateway-test.fjmaimaimai.com | ||
6 | #base_manager_url= https://public-interface.fjmaimaimai.com/mmm-partnermg | 6 | #base_manager_url= https://public-interface.fjmaimaimai.com/mmm-partnermg |
7 | -#base_manager_url=http://mmm-partnermg-test.fjmaimaimai.com/ | ||
8 | -base_manager_url=https://public-interface-test.fjmaimaimai.com/partnermg/ | ||
9 | -#base_manager_url=https://public-interface.fjmaimaimai.com/mmm-partnermg/ | ||
10 | -base_url = http://mmm-partner-test.fjmaimaimai.com/ | ||
7 | +base_manager_url=http://mmm-partnermg-test.fjmaimaimai.com | ||
8 | +#base_manager_url=https://public-interface-test.fjmaimaimai.com/partnermg | ||
9 | +#base_manager_url=https://public-interface.fjmaimaimai.com/mmm-partnermg | ||
10 | +base_url = http://mmm-partner-test.fjmaimaimai.com/ | ||
11 | +base_ucenter=http://public-interface-test.fjmaimaimai.com | ||
12 | +base_business_admin=http://suplus-business-admin-gateway-test.fjmaimaimai.com | ||
13 | +companyId=214 | ||
14 | +adminphone=19911111111 |
1 | name: 实际订单新增 | 1 | name: 实际订单新增 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | +variables: | ||
4 | + shipmentsId: '实发订单发货单号${get_nowtime()}' | ||
5 | + partnerID: 1047 | ||
6 | + commissionProportion: 5 | ||
7 | + orderNum1: 100 | ||
8 | + univalence1: 15 | ||
9 | + partnerRatio1: 10 | ||
10 | + orderNum2: 200 | ||
11 | + univalence2: 15 | ||
12 | + partnerRatio2: 20 | ||
3 | teardown_hooks: | 13 | teardown_hooks: |
4 | - - ${sleep(5)} | 14 | + - ${sleep(2)} |
5 | request: | 15 | request: |
6 | headers: | 16 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 17 | Content-Type: application/json;charset=utf-8 |
8 | User-Agent: okhttp/3.12.3 | 18 | User-Agent: okhttp/3.12.3 |
9 | Authorization: Bearer ${get_m_accesstoken()} | 19 | Authorization: Bearer ${get_m_accesstoken()} |
10 | json: | 20 | json: |
11 | - orderId: ${get_nowtime()} | ||
12 | - orderAmountAdjustmentCount: 13 | ||
13 | - orderNumCount: 29 | ||
14 | - shipmentsId: ${get_nowtime()} | ||
15 | - buyer: 我是客户${get_second()} | ||
16 | - orderDist: '福建一区' | ||
17 | - partnerID: ${get_partner_id_from_database()} | ||
18 | - partner: ${get_partner_name_from_database()} | ||
19 | - commissionProportion: 10.1 | 21 | + orderId: '实发订单号${get_nowtime()}' |
22 | + shipmentsId: $shipmentsId | ||
23 | + partnerID: $partnerID | ||
24 | + buyer: '客户名称${get_stringcode(5)}' | ||
25 | + orderDist: '订单区域${get_stringcode(5)}' | ||
26 | + commissionProportion: $commissionProportion | ||
20 | product: | 27 | product: |
21 | - - productName: 产品名称${get_second()} | ||
22 | - orderNum: 18 | ||
23 | - univalence: 0.19 | ||
24 | - partnerRatio: 5.2 | ||
25 | - - productName: 产品名称${get_second()} | ||
26 | - orderNum: 29 | ||
27 | - univalence: 0.19 | ||
28 | - partnerRatio: 5.2 | 28 | + - productName: 产品名称${get_stringcode(5)} |
29 | + orderNum: $orderNum1 | ||
30 | + univalence: $univalence1 | ||
31 | + partnerRatio: $partnerRatio1 | ||
32 | + - productName: 产品名称${get_stringcode(5)} | ||
33 | + orderNum: $orderNum2 | ||
34 | + univalence: $univalence2 | ||
35 | + partnerRatio: $partnerRatio2 | ||
29 | method: POST | 36 | method: POST |
30 | - url: v1/order/actual/update | 37 | + url: /v1/order/actual/update |
31 | validate: | 38 | validate: |
32 | - eq: | 39 | - eq: |
33 | - content.msg | 40 | - content.msg |
1 | name: 删除实际订单 | 1 | name: 删除实际订单 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - id: ${get_actual_id_from_database()} | 4 | + id: 1021 |
5 | request: | 5 | request: |
6 | headers: | 6 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
@@ -10,7 +10,7 @@ request: | @@ -10,7 +10,7 @@ request: | ||
10 | json: | 10 | json: |
11 | id: $id | 11 | id: $id |
12 | method: POST | 12 | method: POST |
13 | - url: v1/order/actual/del | 13 | + url: /v1/order/actual/del |
14 | validate: | 14 | validate: |
15 | - eq: | 15 | - eq: |
16 | - content.msg | 16 | - content.msg |
1 | name: 查看实际订单详情 | 1 | name: 查看实际订单详情 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - id: ${get_actual_id_from_database()} | 4 | + id: '1020' |
5 | request: | 5 | request: |
6 | headers: | 6 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
8 | User-Agent: okhttp/3.12.3 | 8 | User-Agent: okhttp/3.12.3 |
9 | Authorization: Bearer ${get_m_accesstoken()} | 9 | Authorization: Bearer ${get_m_accesstoken()} |
10 | json: | 10 | json: |
11 | - id: ${convert_to_string($id)} | 11 | + id: $id |
12 | method: POST | 12 | method: POST |
13 | - url: v1/order/actual/detail | 13 | + url: /v1/order/actual/detail |
14 | validate: | 14 | validate: |
15 | - eq: | 15 | - eq: |
16 | - content.msg | 16 | - content.msg |
1 | name: 合伙人搜索——实际订单列表 | 1 | name: 合伙人搜索——实际订单列表 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - partner: ${get_partner_id_from_database()} | 4 | + partner_id: 1047 |
5 | request: | 5 | request: |
6 | headers: | 6 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
@@ -10,10 +10,10 @@ request: | @@ -10,10 +10,10 @@ request: | ||
10 | json: | 10 | json: |
11 | pageNumber: 1 | 11 | pageNumber: 1 |
12 | pageSize: 10 | 12 | pageSize: 10 |
13 | - partner: $partner | 13 | + partner: $partner_id |
14 | searchText: '' | 14 | searchText: '' |
15 | method: POST | 15 | method: POST |
16 | - url: v1/order/actual/list | 16 | + url: /v1/order/actual/list |
17 | validate: | 17 | validate: |
18 | - eq: | 18 | - eq: |
19 | - content.msg | 19 | - content.msg |
1 | name: 搜索发货单号——实际订单列表 | 1 | name: 搜索发货单号——实际订单列表 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - searchText: ${get_actual_delivery_code_from_database()} | ||
5 | - partner: ${get_partner_id_from_database()} | 4 | + searchText: '发货单' |
6 | request: | 5 | request: |
7 | headers: | 6 | headers: |
8 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
@@ -11,7 +10,7 @@ request: | @@ -11,7 +10,7 @@ request: | ||
11 | json: | 10 | json: |
12 | pageNumber: 1 | 11 | pageNumber: 1 |
13 | pageSize: 10 | 12 | pageSize: 10 |
14 | - partner: $partner | 13 | + partner: 1047 |
15 | searchText: $searchText | 14 | searchText: $searchText |
16 | method: POST | 15 | method: POST |
17 | url: v1/order/actual/list | 16 | url: v1/order/actual/list |
1 | -name: 管理员详情 | 1 | +name: 实际订单编辑 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - id: ${get_admin_id_from_database()} | 4 | + id: 1020 |
5 | +teardown_hooks: | ||
6 | + - ${sleep(2)} | ||
5 | request: | 7 | request: |
6 | headers: | 8 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 9 | Content-Type: application/json;charset=utf-8 |
@@ -9,12 +11,24 @@ request: | @@ -9,12 +11,24 @@ request: | ||
9 | Authorization: Bearer ${get_m_accesstoken()} | 11 | Authorization: Bearer ${get_m_accesstoken()} |
10 | json: | 12 | json: |
11 | id: $id | 13 | id: $id |
14 | + orderId: '订单号修改${get_nowtime()}' | ||
15 | + shipmentsId: '发货单号修改${get_nowtime()}' | ||
16 | + partnerID: 1047 | ||
17 | + buyer: '客户名称修改${get_stringcode(5)}' | ||
18 | + orderDist: '订单区域修改${get_stringcode(5)}' | ||
19 | + commissionProportion: 5.1 | ||
20 | + product: | ||
21 | + - productName: 产品名称修改${get_stringcode(5)} | ||
22 | + orderNum: 101 | ||
23 | + univalence: 15.1 | ||
24 | + partnerRatio: 10.1 | ||
25 | + - productName: 产品名称修改${get_stringcode(5)} | ||
26 | + orderNum: 201 | ||
27 | + univalence: 15.1 | ||
28 | + partnerRatio: 20.1 | ||
12 | method: POST | 29 | method: POST |
13 | - url: v1/admin/detail | 30 | + url: /v1/order/actual/update |
14 | validate: | 31 | validate: |
15 | - eq: | 32 | - eq: |
16 | - content.msg | 33 | - content.msg |
17 | - ok | 34 | - ok |
18 | - - eq: | ||
19 | - - content.data.status | ||
20 | - - 1 |
api/m_api/admin/m_admin_list_api.yml
已删除
100644 → 0
1 | -name: 管理员列表 | ||
2 | -base_url: ${ENV(base_manager_url)} | ||
3 | -variables: | ||
4 | - searchText: ${get_account_from_database()} | ||
5 | -request: | ||
6 | - headers: | ||
7 | - Content-Type: application/json;charset=utf-8 | ||
8 | - User-Agent: okhttp/3.12.3 | ||
9 | - Authorization: Bearer ${get_m_accesstoken()} | ||
10 | - json: | ||
11 | - searchText: $searchText | ||
12 | - pageNumber: 1 | ||
13 | - pageSize: 10 | ||
14 | - method: POST | ||
15 | - url: v1/admin/list | ||
16 | -validate: | ||
17 | - - eq: | ||
18 | - - content.msg | ||
19 | - - ok | ||
20 | - - eq: | ||
21 | - - content.data.gridResult.lists.0.statue | ||
22 | - - 1 |
1 | -name: 管理员修改 | ||
2 | -base_url: ${ENV(base_manager_url)} | ||
3 | -variables: | ||
4 | - account: ${get_account_from_database()} | ||
5 | - id: ${get_admin_id_from_database()} | ||
6 | -request: | ||
7 | - headers: | ||
8 | - Content-Type: application/json;charset=utf-8 | ||
9 | - User-Agent: okhttp/3.12.3 | ||
10 | - Authorization: Bearer ${get_m_accesstoken()} | ||
11 | - json: | ||
12 | - account: $account | ||
13 | - status: 1 | ||
14 | - id: $id | ||
15 | - permissionType: [2,3,6] | ||
16 | - method: POST | ||
17 | - url: v1/admin/update | ||
18 | -validate: | ||
19 | -- eq: | ||
20 | - - content.msg | ||
21 | - - ok |
1 | -name: 管理员新增 | ||
2 | -base_url: ${ENV(base_manager_url)} | ||
3 | -variables: | ||
4 | -request: | ||
5 | - headers: | ||
6 | - Content-Type: application/json;charset=utf-8 | ||
7 | - User-Agent: okhttp/3.12.3 | ||
8 | - Authorization: Bearer ${get_m_accesstoken()} | ||
9 | - json: | ||
10 | - account: ${convert_to_string($account)} | ||
11 | - status: 1 | ||
12 | -# id: 6 | ||
13 | - permissionType: [2,3] | ||
14 | - method: POST | ||
15 | - url: v1/admin/update |
1 | -name: 管理员禁用 | 1 | +name: 事业分红详情 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - id: ${get_admin_id_from_database()} | 4 | + id: '1051' |
5 | request: | 5 | request: |
6 | headers: | 6 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
@@ -9,10 +9,11 @@ request: | @@ -9,10 +9,11 @@ request: | ||
9 | Authorization: Bearer ${get_m_accesstoken()} | 9 | Authorization: Bearer ${get_m_accesstoken()} |
10 | json: | 10 | json: |
11 | id: $id | 11 | id: $id |
12 | - statue: 0 | ||
13 | method: POST | 12 | method: POST |
14 | - url: v1/admin/forbidden | 13 | + url: /v1/dividends/detail |
14 | +# extract: | ||
15 | +# - num: content.data.gridResult.totalRow | ||
15 | validate: | 16 | validate: |
16 | - eq: | 17 | - eq: |
17 | - content.msg | 18 | - content.msg |
18 | - - ok | ||
19 | + - ok |
1 | -name: 禁用合伙人 | 1 | +name: 事业分红列表 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | -variables: | ||
4 | - id: ${get_partner_id_from_database()} | 3 | +#variables: |
4 | +# orderid: ${get_actual_id_from_database()} | ||
5 | +# msg: ok | ||
5 | request: | 6 | request: |
6 | headers: | 7 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 8 | Content-Type: application/json;charset=utf-8 |
8 | User-Agent: okhttp/3.12.3 | 9 | User-Agent: okhttp/3.12.3 |
9 | Authorization: Bearer ${get_m_accesstoken()} | 10 | Authorization: Bearer ${get_m_accesstoken()} |
10 | json: | 11 | json: |
11 | - status: 1 | ||
12 | - id: $id | 12 | + pageNumber: 1 |
13 | + pageSize: 500 | ||
14 | + partner: '' | ||
15 | + searchText: '' | ||
13 | method: POST | 16 | method: POST |
14 | - url: v1/partners/set-status | 17 | + url: /v1/dividends/list |
18 | +# extract: | ||
19 | +# - num: content.data.gridResult.totalRow | ||
15 | validate: | 20 | validate: |
16 | - eq: | 21 | - eq: |
17 | - content.msg | 22 | - content.msg |
18 | - - ok | ||
23 | + - ok |
api/m_api/m_login_api.yml
已删除
100644 → 0
1 | -name: 账号登录 | ||
2 | -base_url: ${ENV(base_manager_url)} | ||
3 | -variables: | ||
4 | - username: ${convert_to_string(10000000001)} | ||
5 | - password: 7c4a8d09ca3762af61e59520943dc26494f8941b | ||
6 | -teardown_hooks: | ||
7 | - - ${teardown_hook_get_m_accesstoken($response)} | ||
8 | -request: | ||
9 | - headers: | ||
10 | - Content-Type: application/json;charset=utf-8 | ||
11 | - User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 | ||
12 | - json: | ||
13 | - password: $password | ||
14 | - username: $username | ||
15 | - method: POST | ||
16 | - url: v1/auth/login | ||
17 | -validate: | ||
18 | -- eq: | ||
19 | - - content.msg | ||
20 | - - ok | ||
21 | - |
1 | -name: 修改密码 | 1 | +name: 切换公司:/v1/auth/change_company |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | +variables: | ||
4 | + msg: 成功 | ||
3 | teardown_hooks: | 5 | teardown_hooks: |
4 | - ${teardown_hook_get_m_accesstoken($response)} | 6 | - ${teardown_hook_get_m_accesstoken($response)} |
7 | + - ${teardown_hook_get_m_refreshtoken($response)} | ||
5 | request: | 8 | request: |
6 | headers: | 9 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 10 | Content-Type: application/json;charset=utf-8 |
11 | + Authorization: ${get_m_accesstoken()} | ||
12 | + x-mmm-refreshtoken: ${get_m_refreshtoken()} | ||
8 | User-Agent: okhttp/3.12.3 | 13 | User-Agent: okhttp/3.12.3 |
9 | - Authorization: Bearer ${get_m_accesstoken()} | ||
10 | json: | 14 | json: |
11 | - pwd: '7c4a8d09ca3762af61e59520943dc26494f8941b' | 15 | + company_id: 4 |
12 | method: POST | 16 | method: POST |
13 | - url: v1/auth/login | 17 | + url: /v1/auth/change_company |
14 | validate: | 18 | validate: |
15 | - eq: | 19 | - eq: |
16 | - content.msg | 20 | - content.msg |
17 | - - ok | ||
18 | - | 21 | + - $msg |
1 | -name: 分红管理-编辑 | ||
2 | -base_url: ${ENV(base_manager_url)} | 1 | +name: 选择公司登录 |
2 | +base_url: ${ENV(base_business_admin)} | ||
3 | variables: | 3 | variables: |
4 | - orderid: ${get_actual_id_from_database()} | ||
5 | msg: ok | 4 | msg: ok |
5 | + companyId: ${ENV(companyId)} | ||
6 | request: | 6 | request: |
7 | headers: | 7 | headers: |
8 | Content-Type: application/json;charset=utf-8 | 8 | Content-Type: application/json;charset=utf-8 |
9 | User-Agent: okhttp/3.12.3 | 9 | User-Agent: okhttp/3.12.3 |
10 | - Authorization: Bearer ${get_m_accesstoken()} | 10 | + Authorization: Bearer $pwdLogintoken |
11 | json: | 11 | json: |
12 | - id: $orderid | ||
13 | - dividendPayment: | ||
14 | - - quantityControl: | ||
15 | - stateOfPayment: 2 | ||
16 | - remark: | ||
17 | - productId: ${get_dividends_ID_from_database(0)} | ||
18 | - - quantityControl: | ||
19 | - stateOfPayment: 2 | ||
20 | - remark: | ||
21 | - productId: ${get_dividends_ID_from_database(1)} | 12 | + companyId: $companyId |
22 | method: POST | 13 | method: POST |
23 | - url: v1/dividends/edit | 14 | + url: /auth/anonymousLogin |
15 | +extract: | ||
16 | + anonymousLogintoken: content.data.access.token | ||
24 | validate: | 17 | validate: |
25 | - - eq: | ||
26 | - - content.msg | ||
27 | - - $msg | 18 | +- eq: |
19 | + - content.msg | ||
20 | + - $msg |
1 | -name: 启用合伙人 | ||
2 | -base_url: ${ENV(base_manager_url)} | 1 | +name: 单点登录 |
2 | +base_url: ${ENV(base_business_admin)} | ||
3 | variables: | 3 | variables: |
4 | - id: ${get_partner_id_from_database()} | 4 | + msg: ok |
5 | request: | 5 | request: |
6 | headers: | 6 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
8 | User-Agent: okhttp/3.12.3 | 8 | User-Agent: okhttp/3.12.3 |
9 | - Authorization: Bearer ${get_m_accesstoken()} | 9 | + Authorization: Bearer $anonymousLogintoken |
10 | json: | 10 | json: |
11 | - status: 2 | ||
12 | - id: $id | 11 | + companyId: 214 |
13 | method: POST | 12 | method: POST |
14 | - url: v1/partners/set-status | 13 | + url: /auth/getSingleLoginMenus |
14 | +extract: | ||
15 | + url: content.data.list.0.url | ||
15 | validate: | 16 | validate: |
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok | ||
17 | +- eq: | ||
18 | + - content.msg | ||
19 | + - $msg |
1 | -name: 管理员禁启用 | 1 | +name: 账号登录:/auth/login |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - id: ${get_admin_id_from_database()} | 4 | + secret: ${get_secret($url)} |
5 | + msg: ok | ||
5 | request: | 6 | request: |
6 | headers: | 7 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 8 | Content-Type: application/json;charset=utf-8 |
8 | User-Agent: okhttp/3.12.3 | 9 | User-Agent: okhttp/3.12.3 |
9 | - Authorization: Bearer ${get_m_accesstoken()} | ||
10 | json: | 10 | json: |
11 | - id: $id | ||
12 | - statue: 1 | 11 | + code: $secret |
13 | method: POST | 12 | method: POST |
14 | - url: v1/admin/forbidden | 13 | + url: /v1/auth/login |
15 | validate: | 14 | validate: |
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok | ||
15 | +- eq: | ||
16 | + - content.msg | ||
17 | + - $msg |
api/m_api/m_login_api/m_pwdLogin_api.yml
0 → 100644
1 | +name: 账号登录:/auth/login | ||
2 | +base_url: ${ENV(base_business_admin)} | ||
3 | +variables: | ||
4 | + phone: ${ENV(adminphone)} | ||
5 | + password: 7c4a8d09ca3762af61e59520943dc26494f8941b | ||
6 | + msg: ok | ||
7 | +request: | ||
8 | + headers: | ||
9 | + Content-Type: application/json;charset=utf-8 | ||
10 | + User-Agent: okhttp/3.12.3 | ||
11 | + json: | ||
12 | + username: ${phone} | ||
13 | + password: ${password} | ||
14 | + method: POST | ||
15 | + url: /auth/pwdLogin | ||
16 | +extract: | ||
17 | + pwdLogintoken: content.data.access.token | ||
18 | +validate: | ||
19 | +- eq: | ||
20 | + - content.msg | ||
21 | + - $msg |
@@ -5,18 +5,17 @@ request: | @@ -5,18 +5,17 @@ request: | ||
5 | Content-Type: application/json;charset=utf-8 | 5 | Content-Type: application/json;charset=utf-8 |
6 | User-Agent: okhttp/3.12.3 | 6 | User-Agent: okhttp/3.12.3 |
7 | Authorization: Bearer ${get_m_accesstoken()} | 7 | Authorization: Bearer ${get_m_accesstoken()} |
8 | -# | ||
9 | json: | 8 | json: |
10 | - partnerName: '卞信华' | ||
11 | - partnerType: 3 | ||
12 | - area: '福建省福州市XXXXX区' | ||
13 | - account: $account | 9 | + partnerName: '合伙人姓名${get_stringcode(5)}' |
10 | + partnerType: [1,2,3,4] | ||
11 | + area: '合伙人所属区域${get_stringcode(5)}' | ||
12 | + account: 155${get_randint(10000000,99999999)} | ||
14 | state: 1 | 13 | state: 1 |
15 | cooperationTime: ${get_today()} | 14 | cooperationTime: ${get_today()} |
16 | - salesmanName: '小小' | ||
17 | - phone: ${convert_to_string($account)} | 15 | + salesmanName: '业务员姓名${get_stringcode(5)}' |
16 | + phone: 155${get_randint(10000000,99999999)} | ||
18 | method: POST | 17 | method: POST |
19 | - url: v1/partners/add | 18 | + url: /v1/partners/add |
20 | validate: | 19 | validate: |
21 | - eq: | 20 | - eq: |
22 | - content.msg | 21 | - content.msg |
1 | name: 合伙人查看 | 1 | name: 合伙人查看 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - id: ${get_admin_id_from_database()} | 4 | + id: 1045 |
5 | request: | 5 | request: |
6 | headers: | 6 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
@@ -10,11 +10,8 @@ request: | @@ -10,11 +10,8 @@ request: | ||
10 | json: | 10 | json: |
11 | id: $id | 11 | id: $id |
12 | method: POST | 12 | method: POST |
13 | - url: v1/partners/detail | 13 | + url: /v1/partners/detail |
14 | validate: | 14 | validate: |
15 | - eq: | 15 | - eq: |
16 | - content.msg | 16 | - content.msg |
17 | - - ok | ||
18 | - - eq: | ||
19 | - - content.data.state | ||
20 | - - $status | ||
17 | + - ok |
1 | name: 合伙人编辑 | 1 | name: 合伙人编辑 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - account: ${get_partner_account_from_database()} | ||
5 | - id: ${get_partner_id_from_database()} | ||
6 | - partnerName: ${get_partner_name_from_database()} | ||
7 | - area: ${get_area_from_database()} | ||
8 | - salesmanName: ${get_salesman_from_database()} | ||
9 | - phone: ${get_partner_account_from_database()} | 4 | + id: 1046 |
10 | request: | 5 | request: |
11 | headers: | 6 | headers: |
12 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
13 | User-Agent: okhttp/3.12.3 | 8 | User-Agent: okhttp/3.12.3 |
14 | Authorization: Bearer ${get_m_accesstoken()} | 9 | Authorization: Bearer ${get_m_accesstoken()} |
15 | json: | 10 | json: |
16 | - partnerName: $partnerName | ||
17 | - partnerType: 1 | ||
18 | - area: $area | ||
19 | - account: $account | ||
20 | - state: 1 | 11 | + partnerName: '合伙人姓名修改${get_stringcode(5)}' |
12 | + partnerType: [1,2,3,4] | ||
13 | + area: '合伙人所属区域修改${get_stringcode(5)}' | ||
14 | + account: 155${get_randint(10000000,99999999)} | ||
15 | + state: 0 | ||
21 | cooperationTime: ${get_today()} | 16 | cooperationTime: ${get_today()} |
22 | - salesmanName: $salesmanName | ||
23 | - phone: $phone | 17 | + salesmanName: '业务员姓名修改${get_stringcode(5)}' |
18 | + phone: 155${get_randint(10000000,99999999)} | ||
24 | id: $id | 19 | id: $id |
25 | method: POST | 20 | method: POST |
26 | - url: v1/partners/edit | 21 | + url: /v1/partners/edit |
27 | validate: | 22 | validate: |
28 | - eq: | 23 | - eq: |
29 | - content.msg | 24 | - content.msg |
1 | name: /v1/partners/list | 1 | name: /v1/partners/list |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - status: ${get_status_from_database()} | ||
5 | - partnerName: ${get_partner_name_from_database()} | 4 | + partnerName: '合伙人' |
6 | request: | 5 | request: |
7 | headers: | 6 | headers: |
8 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
@@ -10,7 +9,7 @@ request: | @@ -10,7 +9,7 @@ request: | ||
10 | Authorization: Bearer ${get_m_accesstoken()} | 9 | Authorization: Bearer ${get_m_accesstoken()} |
11 | json: | 10 | json: |
12 | partnerName: $partnerName | 11 | partnerName: $partnerName |
13 | - partnerType: 1 | 12 | + partnerType: |
14 | pageNumber: 1 | 13 | pageNumber: 1 |
15 | pageSize: 10 | 14 | pageSize: 10 |
16 | method: POST | 15 | method: POST |
@@ -18,7 +17,4 @@ request: | @@ -18,7 +17,4 @@ request: | ||
18 | validate: | 17 | validate: |
19 | - eq: | 18 | - eq: |
20 | - content.msg | 19 | - content.msg |
21 | - - ok | ||
22 | - - eq: | ||
23 | - - content.data.gridResult.lists.0.state | ||
24 | - - $status | ||
20 | + - ok |
1 | name: /v1/partners/list | 1 | name: /v1/partners/list |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - status: ${get_status_from_database()} | 4 | + partnerType: 2 |
5 | request: | 5 | request: |
6 | headers: | 6 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
@@ -9,15 +9,12 @@ request: | @@ -9,15 +9,12 @@ request: | ||
9 | Authorization: Bearer ${get_m_accesstoken()} | 9 | Authorization: Bearer ${get_m_accesstoken()} |
10 | json: | 10 | json: |
11 | partnerName: "" | 11 | partnerName: "" |
12 | - partnerType: 1 | 12 | + partnerType: $partnerType |
13 | pageNumber: 1 | 13 | pageNumber: 1 |
14 | pageSize: 10 | 14 | pageSize: 10 |
15 | method: POST | 15 | method: POST |
16 | - url: v1/partners/list | 16 | + url: /v1/partners/list |
17 | validate: | 17 | validate: |
18 | - eq: | 18 | - eq: |
19 | - content.msg | 19 | - content.msg |
20 | - - ok | ||
21 | - - eq: | ||
22 | - - content.data.gridResult.lists.0.state | ||
23 | - - $status | ||
20 | + - ok |
1 | name: 意向订单新增 | 1 | name: 意向订单新增 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | +variables: | ||
4 | + orderId: '意向订单号${get_nowtime()}' | ||
5 | + partnerID: 1047 | ||
6 | + commissionProportion: 5 | ||
7 | + orderNum1: 100 | ||
8 | + univalence1: 15 | ||
9 | + partnerRatio1: 10 | ||
10 | + orderNum2: 200 | ||
11 | + univalence2: 15 | ||
12 | + partnerRatio2: 20 | ||
3 | request: | 13 | request: |
4 | headers: | 14 | headers: |
5 | Content-Type: application/json;charset=utf-8 | 15 | Content-Type: application/json;charset=utf-8 |
6 | User-Agent: okhttp/3.12.3 | 16 | User-Agent: okhttp/3.12.3 |
7 | Authorization: Bearer ${get_m_accesstoken()} | 17 | Authorization: Bearer ${get_m_accesstoken()} |
8 | json: | 18 | json: |
9 | - orderId: ${get_nowtime()} | ||
10 | - buyer: 我是客户${get_second()} | ||
11 | - orderDist: '福建二区' | ||
12 | - partnerID: ${get_partner_id_from_database()} | ||
13 | -# partnerID: 003 | ||
14 | - commissionProportion: 10.2 | 19 | + orderId: '意向订单号${get_nowtime()}' |
20 | + buyer: '客户名称${get_stringcode(5)}' | ||
21 | + orderDist: '订单区域${get_stringcode(5)}' | ||
22 | + partnerID: $partnerID | ||
23 | + commissionProportion: $commissionProportion | ||
15 | product: | 24 | product: |
16 | - - productName: 产品名称${get_second()} | ||
17 | - orderNum: 33 | ||
18 | - univalence: 1.12 | ||
19 | - partnerRatio: 1.27 | ||
20 | - - productName: 产品名称${get_second()} | ||
21 | - orderNum: 45 | ||
22 | - univalence: 2.22 | ||
23 | - partnerRatio: 5.7 | 25 | + - productName: 产品名称${get_stringcode(5)} |
26 | + orderNum: $orderNum1 | ||
27 | + univalence: $univalence1 | ||
28 | + partnerRatio: $partnerRatio1 | ||
29 | + - productName: 产品名称${get_stringcode(5)} | ||
30 | + orderNum: $orderNum2 | ||
31 | + univalence: $univalence2 | ||
32 | + partnerRatio: $partnerRatio2 | ||
24 | # - productName: 产品名称${get_second()} | 33 | # - productName: 产品名称${get_second()} |
25 | # orderNum: 3 | 34 | # orderNum: 3 |
26 | # univalence: 3.22 | 35 | # univalence: 3.22 |
@@ -218,7 +227,7 @@ request: | @@ -218,7 +227,7 @@ request: | ||
218 | # univalence: 2.22 | 227 | # univalence: 2.22 |
219 | # partnerRatio: 5.2 | 228 | # partnerRatio: 5.2 |
220 | method: POST | 229 | method: POST |
221 | - url: v1/order/purpose/update | 230 | + url: /v1/order/purpose/update |
222 | validate: | 231 | validate: |
223 | - eq: | 232 | - eq: |
224 | - content.msg | 233 | - content.msg |
1 | name: 删除意向订单 | 1 | name: 删除意向订单 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - id: ${get_actual_id_from_database()} | 4 | + id: 1027 |
5 | request: | 5 | request: |
6 | headers: | 6 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
@@ -10,7 +10,7 @@ request: | @@ -10,7 +10,7 @@ request: | ||
10 | json: | 10 | json: |
11 | id: $id | 11 | id: $id |
12 | method: POST | 12 | method: POST |
13 | - url: v1/order/purpose/del | 13 | + url: /v1/order/purpose/del |
14 | validate: | 14 | validate: |
15 | - eq: | 15 | - eq: |
16 | - content.msg | 16 | - content.msg |
1 | name: 查看意向订单详情 | 1 | name: 查看意向订单详情 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - id: ${get_purpose_id_from_database()} | 4 | + id: '1025' |
5 | request: | 5 | request: |
6 | headers: | 6 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
8 | User-Agent: okhttp/3.12.3 | 8 | User-Agent: okhttp/3.12.3 |
9 | Authorization: Bearer ${get_m_accesstoken()} | 9 | Authorization: Bearer ${get_m_accesstoken()} |
10 | json: | 10 | json: |
11 | - id: ${convert_to_string($id)} | 11 | + id: $id |
12 | method: POST | 12 | method: POST |
13 | - url: v1/order/purpose/detail | 13 | + url: /v1/order/purpose/detail |
14 | validate: | 14 | validate: |
15 | - eq: | 15 | - eq: |
16 | - content.msg | 16 | - content.msg |
1 | name: 意向订单编辑 | 1 | name: 意向订单编辑 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - orderid: ${get_purpose_id_from_database()} | ||
5 | - partner: ${get_partner_name_from_database()} | 4 | + id: 1025 |
6 | request: | 5 | request: |
7 | headers: | 6 | headers: |
8 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
9 | User-Agent: okhttp/3.12.3 | 8 | User-Agent: okhttp/3.12.3 |
10 | Authorization: Bearer ${get_m_accesstoken()} | 9 | Authorization: Bearer ${get_m_accesstoken()} |
11 | json: | 10 | json: |
12 | - orderId: ${get_nowtime()} | ||
13 | - buyer: 我是客户${get_second()} | ||
14 | - orderDist: '福建二区' | ||
15 | - partnerID: ${get_partner_id_from_database()} | ||
16 | - partner: $partner | ||
17 | - id: $orderid | ||
18 | - commissionProportion: 10.2 | 11 | + orderId: '意向订单号编辑${get_nowtime()}' |
12 | + buyer: '客户名称编辑${get_stringcode(5)}' | ||
13 | + orderDist: '订单区域编辑${get_stringcode(5)}' | ||
14 | + partnerID: 1047 | ||
15 | + commissionProportion: 5.1 | ||
16 | + id: $id | ||
19 | product: | 17 | product: |
20 | - - id: ${get_ID_from_database(0)} | ||
21 | - productName: 产品名称${get_second()} | ||
22 | - orderNum: 33 | ||
23 | - univalence: 1.12 | ||
24 | - partnerRatio: 1.27 | ||
25 | - - id: ${get_ID_from_database(1)} | ||
26 | - productName: 产品名称${get_second()} | ||
27 | - orderNum: 45 | ||
28 | - univalence: 2.22 | ||
29 | - partnerRatio: 5.7 | 18 | + - productName: 产品名称修改${get_stringcode(5)} |
19 | + orderNum: 101 | ||
20 | + univalence: 15.1 | ||
21 | + partnerRatio: 10.1 | ||
22 | + - productName: 产品名称修改${get_stringcode(5)} | ||
23 | + orderNum: 201 | ||
24 | + univalence: 15.1 | ||
25 | + partnerRatio: 20.1 | ||
30 | method: POST | 26 | method: POST |
31 | - url: v1/order/purpose/update | 27 | + url: /v1/order/purpose/update |
32 | validate: | 28 | validate: |
33 | - eq: | 29 | - eq: |
34 | - content.msg | 30 | - content.msg |
1 | name: 合伙人搜索——意向订单列表 | 1 | name: 合伙人搜索——意向订单列表 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - partner: ${get_partner_id_from_database()} | 4 | + partner_id: 1047 |
5 | request: | 5 | request: |
6 | headers: | 6 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
@@ -10,10 +10,10 @@ request: | @@ -10,10 +10,10 @@ request: | ||
10 | json: | 10 | json: |
11 | pageNumber: 1 | 11 | pageNumber: 1 |
12 | pageSize: 10 | 12 | pageSize: 10 |
13 | - partner: $partner | 13 | + partner: $partner_id |
14 | searchText: '' | 14 | searchText: '' |
15 | method: POST | 15 | method: POST |
16 | - url: v1/order/purpose/list | 16 | + url: /v1/order/purpose/list |
17 | validate: | 17 | validate: |
18 | - eq: | 18 | - eq: |
19 | - content.msg | 19 | - content.msg |
1 | name: 搜索订单号——意向订单列表 | 1 | name: 搜索订单号——意向订单列表 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - searchText: ${get_purpose_orderId_from_database(order)} | 4 | + searchText: '合伙人123' |
5 | request: | 5 | request: |
6 | headers: | 6 | headers: |
7 | Content-Type: application/json;charset=utf-8 | 7 | Content-Type: application/json;charset=utf-8 |
@@ -13,7 +13,7 @@ request: | @@ -13,7 +13,7 @@ request: | ||
13 | partner: 29 | 13 | partner: 29 |
14 | searchText: $searchText | 14 | searchText: $searchText |
15 | method: POST | 15 | method: POST |
16 | - url: v1/order/purpose/list | 16 | + url: /v1/order/purpose/list |
17 | validate: | 17 | validate: |
18 | - eq: | 18 | - eq: |
19 | - content.msg | 19 | - content.msg |
1 | name: 意向订单发货 | 1 | name: 意向订单发货 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | -variables: | ||
4 | - orderid: ${get_purpose_id_from_database()} | ||
5 | - | 3 | +#variables: |
4 | +# orderid: ${get_purpose_id_from_database()} | ||
5 | +# id: 1026 | ||
6 | request: | 6 | request: |
7 | headers: | 7 | headers: |
8 | Content-Type: application/json;charset=utf-8 | 8 | Content-Type: application/json;charset=utf-8 |
9 | User-Agent: okhttp/3.12.3 | 9 | User-Agent: okhttp/3.12.3 |
10 | Authorization: Bearer ${get_m_accesstoken()} | 10 | Authorization: Bearer ${get_m_accesstoken()} |
11 | json: | 11 | json: |
12 | - shipmentsId: ${get_nowtime()} | ||
13 | - id: ${convert_to_string($orderid)} | 12 | + shipmentsId: '意向订单发货${get_nowtime()}' |
13 | + id: '1026' | ||
14 | productDetail: | 14 | productDetail: |
15 | - - id: ${get_ID_from_database(0)} | ||
16 | - productName: ${get_productName_from_database(0)} | ||
17 | - orderNum: ${get_orderNum_from_database(0)} | ||
18 | - univalence: ${get_univalence_from_database(0)} | ||
19 | - partnerRatio: ${get_partnerRatio_from_database(0)} | ||
20 | - - id: ${get_ID_from_database(1)} | ||
21 | - productName: ${get_productName_from_database(1)} | ||
22 | - orderNum: ${get_orderNum_from_database(1)} | ||
23 | - univalence: ${get_univalence_from_database(1)} | ||
24 | - partnerRatio: ${get_partnerRatio_from_database(1)} | 15 | + - productName: '意向订单发货产品名称${get_stringcode(5)}' |
16 | + orderNum: 105 | ||
17 | + univalence: 15.5 | ||
18 | + partnerRatio: 10.5 | ||
19 | + id: 2048 | ||
25 | method: POST | 20 | method: POST |
26 | - url: v1/order/purpose/sendout | 21 | + url: /v1/order/purpose/sendout |
27 | validate: | 22 | validate: |
28 | - eq: | 23 | - eq: |
29 | - content.msg | 24 | - content.msg |
1 | import random | 1 | import random |
2 | import string | 2 | import string |
3 | import time,datetime | 3 | import time,datetime |
4 | +from urllib import parse | ||
5 | + | ||
4 | from helpfunc.login_func import * | 6 | from helpfunc.login_func import * |
5 | from helpfunc.pg_db_func import * | 7 | from helpfunc.pg_db_func import * |
6 | from helpfunc.db_func import * | 8 | from helpfunc.db_func import * |
@@ -86,6 +88,37 @@ def get_Decembe_timestamp(): | @@ -86,6 +88,37 @@ def get_Decembe_timestamp(): | ||
86 | return int(time.mktime(time.strptime('2021-3-31 23:59:59', '%Y-%m-%d %H:%M:%S'))*1000) | 88 | return int(time.mktime(time.strptime('2021-3-31 23:59:59', '%Y-%m-%d %H:%M:%S'))*1000) |
87 | 89 | ||
88 | 90 | ||
91 | +#获取secret用于子系统单点登录 | ||
92 | +def get_secret(url): | ||
93 | + urllist = url.split('code=',1) | ||
94 | + code = urllist[1] | ||
95 | + de_code = parse.unquote(code) | ||
96 | + return de_code | ||
97 | + | ||
98 | + | ||
99 | +def get_stringcode(n): | ||
100 | + """ | ||
101 | + 随机生成n位数字符串 | ||
102 | + :param n: | ||
103 | + :return: | ||
104 | + """ | ||
105 | + ran_str = ''.join(random.sample(string.ascii_letters + string.digits, n)) | ||
106 | + return ran_str | ||
107 | + | ||
89 | 108 | ||
109 | +def get_randint(value1, value2): | ||
110 | + return randint(value1, value2) | ||
90 | 111 | ||
91 | -# print(get_Decembe_timestamp()) | 112 | + |
113 | +def add(x, y): | ||
114 | + """ | ||
115 | + 对两个数相加 | ||
116 | + :param x: | ||
117 | + :param y: | ||
118 | + :return: | ||
119 | + """ | ||
120 | + return int(int(x)+y) | ||
121 | + | ||
122 | + | ||
123 | +def convert_to_string(value): | ||
124 | + return str(value) |
1 | -config: | ||
2 | - name: 新增实际订单 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 新增实际订单 | ||
14 | - api: api/m_api/actual/m_add_order_actual_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | -config: | ||
2 | - name: 合伙人搜索——实际订单列表 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 合伙人搜索——实际订单列表 | ||
14 | - api: api/m_api/actual/m_order_actual_partner_list_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | -config: | ||
2 | - name: 搜索发货单号——实际订单列表 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 搜索订单号——实际订单列表 | ||
14 | - api: api/m_api/actual/m_order_actual_searchText_list_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | -config: | ||
2 | - name: 查看实际订单详情 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 查看实际订单详情 | ||
14 | - api: api/m_api/actual/m_order_actual_detail_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | -config: | ||
2 | - name: 删除实际订单 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 删除实际订单 | ||
14 | - api: api/m_api/actual/m_order_actual_del_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | +config: | ||
2 | + name: COM001-新增实际订单 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + variables: | ||
5 | + shipmentsId: '实发订单发货单号${get_nowtime()}' | ||
6 | + partnerID: 1047 | ||
7 | + commissionProportion: 5 | ||
8 | + orderNum1: 100 | ||
9 | + univalence1: 15 | ||
10 | + partnerRatio1: 10 | ||
11 | + orderNum2: 200 | ||
12 | + univalence2: 15 | ||
13 | + partnerRatio2: 20 | ||
14 | + export: | ||
15 | + - actual_id | ||
16 | + | ||
17 | + | ||
18 | +teststeps: | ||
19 | +- name: $phone 登录系统 | ||
20 | + variables: | ||
21 | + phone: ${ENV(adminphone)} | ||
22 | + testcase: testcases/common/m_login_testcases.yml | ||
23 | + | ||
24 | +- name: 新增实发订单 | ||
25 | + api: api/m_api/actual/m_add_order_actual_api.yml | ||
26 | + validate: | ||
27 | + - eq: | ||
28 | + - content.msg | ||
29 | + - ok | ||
30 | + | ||
31 | +- name: 查看实际订单列表 | ||
32 | + api: api/m_api/actual/m_order_actual_partner_list_api.yml | ||
33 | + extract: | ||
34 | + - actual_id: content.data.gridResult.lists.0.id | ||
35 | + validate: | ||
36 | + - eq: | ||
37 | + - content.data.gridResult.lists.0.shipmentsId | ||
38 | + - $shipmentsId |
testcases/common/m_login_testcases.yml
0 → 100644
1 | +config: | ||
2 | + name: m_login_testcases | ||
3 | +# base_url: ${ENV(base_manager_url)} | ||
4 | + variables: | ||
5 | + phone: ${ENV(adminphone)} | ||
6 | + | ||
7 | +teststeps: | ||
8 | +- name: $phone 登录企业平台 | ||
9 | + api: api/m_api/m_login_api/m_pwdLogin_api.yml | ||
10 | + extract: | ||
11 | + pwdLogintoken: content.data.access.token | ||
12 | + validate: | ||
13 | + - eq: | ||
14 | + - content.msg | ||
15 | + - ok | ||
16 | + | ||
17 | +- name: 选择公司登录 | ||
18 | + variables: | ||
19 | + companyId: ${ENV(companyId)} | ||
20 | + api: api/m_api/m_login_api/m_anonymousLogin_api.yml | ||
21 | + extract: | ||
22 | + anonymousLogintoken: content.data.access.token | ||
23 | + validate: | ||
24 | + - eq: | ||
25 | + - content.msg | ||
26 | + - ok | ||
27 | + | ||
28 | +- name: 单点登录,获取secret用于登录子系统 | ||
29 | + api: api/m_api/m_login_api/m_getSingleLoginMenus_api.yml | ||
30 | + extract: | ||
31 | + url: content.data.list.1.url | ||
32 | + validate: | ||
33 | + - eq: | ||
34 | + - content.msg | ||
35 | + - ok | ||
36 | + | ||
37 | +- name: 使用secret登录合伙人系统 | ||
38 | + api: api/m_api/m_login_api/m_login_api.yml | ||
39 | + teardown_hooks: | ||
40 | + - ${teardown_hook_get_m_accesstoken($response)} | ||
41 | + validate: | ||
42 | + - eq: | ||
43 | + - content.msg | ||
44 | + - ok |
1 | -config: | ||
2 | - name: 已收明细——分红订单 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_partner_account_from_database()} | ||
6 | - order_code: ${get_detailAction_0_order_code_from_database()} | ||
7 | - plan_order_amount: ${get_detailAction_0_plan_order_amount_from_database()} | ||
8 | - use_partner_bonus: ${get_detailAction_0_use_partner_bonus_amount_from_database()} | ||
9 | - msg: 成功 | ||
10 | - teardown_hooks: | ||
11 | - - ${sleep(2)} | ||
12 | - | ||
13 | -teststeps: | ||
14 | -- name: $phone 登录系统 | ||
15 | - testcase: testcases/login_testcases.yml | ||
16 | - | ||
17 | -- name: $phone 已收明细——分红订单 | ||
18 | - api: api/app_api/dividend/orders001.api.yml | ||
19 | - validate: | ||
20 | - - eq: | ||
21 | - - content.msg | ||
22 | - - $msg | ||
23 | - - eq: | ||
24 | - - content.data.list.0.deliveryNo | ||
25 | - - $order_code | ||
26 | - - eq: | ||
27 | - - content.data.list.0.orderAmount | ||
28 | - - $plan_order_amount | ||
29 | - - eq: | ||
30 | - - content.data.list.0.dividendReceivable | ||
31 | - - $use_partner_bonus |
1 | -config: | ||
2 | - name: 未收明细——分红订单 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_partner_account_from_database()} | ||
6 | - order_code: ${get_detailAction_1_order_code_from_database()} | ||
7 | - plan_order_amount: ${get_detailAction_0_plan_order_amount_from_database()} | ||
8 | - use_partner_bonus: ${get_detailAction_0_use_partner_bonus_amount_from_database()} | ||
9 | - msg: 成功 | ||
10 | - teardown_hooks: | ||
11 | - - ${sleep(3)} | ||
12 | - | ||
13 | -teststeps: | ||
14 | -- name: $phone 登录系统 | ||
15 | - testcase: testcases/login_testcases.yml | ||
16 | - | ||
17 | -- name: $phone 未收明细——分红订单 | ||
18 | - api: api/app_api/dividend/orders002.api.yml | ||
19 | - validate: | ||
20 | - - eq: | ||
21 | - - content.msg | ||
22 | - - $msg | ||
23 | - - eq: | ||
24 | - - content.data.list.0.deliveryNo | ||
25 | - - $order_code | ||
26 | - - eq: | ||
27 | - - content.data.list.0.orderAmount | ||
28 | - - $plan_order_amount | ||
29 | - - eq: | ||
30 | - - content.data.list.0.dividendReceivable | ||
31 | - - $use_partner_bonus |
1 | -config: | ||
2 | - name: 分红统计 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_partner_account_from_database()} | ||
6 | - receivable: ${get_receivable_from_database()} | ||
7 | - received: ${get_received_from_database()} | ||
8 | - outstanding: ${get_outstanding_from_database()} | ||
9 | - msg: 成功 | ||
10 | - teardown_hooks: | ||
11 | - - ${sleep(2)} | ||
12 | - | ||
13 | -teststeps: | ||
14 | -- name: $phone 登录系统 | ||
15 | - testcase: testcases/login_testcases.yml | ||
16 | - | ||
17 | -- name: $phone 分红统计 | ||
18 | - api: api/app_api/dividend/statistics_api.yml | ||
19 | - validate: | ||
20 | - - eq: | ||
21 | - - content.msg | ||
22 | - - $msg | ||
23 | - | ||
24 | - - eq: | ||
25 | - - content.data.statistics.receivable | ||
26 | - - $receivable | ||
27 | - | ||
28 | - - eq: | ||
29 | - - content.data.statistics.quarters.1.received | ||
30 | - - $received | ||
31 | - | ||
32 | - - eq: | ||
33 | - - content.data.statistics.quarters.1.outstanding | ||
34 | - - $outstanding |
1 | +config: | ||
2 | + name: DIV001-事业分红列表-数据源来自于实发订单 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + | ||
5 | +teststeps: | ||
6 | +- name: $phone 登录系统 | ||
7 | + variables: | ||
8 | + phone: ${ENV(adminphone)} | ||
9 | + testcase: testcases/common/m_login_testcases.yml | ||
10 | + | ||
11 | +- name: 查看事业分红列表 | ||
12 | + api: api/m_api/dividends/m_dividends_list_api.yml | ||
13 | + extract: | ||
14 | + - num1: content.data.gridResult.totalRow | ||
15 | + | ||
16 | +- name: 新增实发订单 | ||
17 | + api: api/m_api/actual/m_add_order_actual_api.yml | ||
18 | + validate: | ||
19 | + - eq: | ||
20 | + - content.msg | ||
21 | + - ok | ||
22 | + | ||
23 | +- name: 查看事业分红列表 | ||
24 | + api: api/m_api/dividends/m_dividends_list_api.yml | ||
25 | + validate: | ||
26 | + - eq: | ||
27 | + - content.msg | ||
28 | + - ok | ||
29 | + - eq: | ||
30 | + - content.data.gridResult.totalRow | ||
31 | + - ${add($num1,1)} |
1 | +config: | ||
2 | + name: DIV002-事业分红列表-数据源不来自于意向订单 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + | ||
5 | +teststeps: | ||
6 | +- name: $phone 登录系统 | ||
7 | + variables: | ||
8 | + phone: ${ENV(adminphone)} | ||
9 | + testcase: testcases/common/m_login_testcases.yml | ||
10 | + | ||
11 | +- name: 查看事业分红列表 | ||
12 | + api: api/m_api/dividends/m_dividends_list_api.yml | ||
13 | + extract: | ||
14 | + - num1: content.data.gridResult.totalRow | ||
15 | + | ||
16 | +- name: 新增意向订单 | ||
17 | + api: api/m_api/purpose/m_order_purpose_add_api.yml | ||
18 | + validate: | ||
19 | + - eq: | ||
20 | + - content.msg | ||
21 | + - ok | ||
22 | + | ||
23 | +- name: 查看事业分红列表 | ||
24 | + api: api/m_api/dividends/m_dividends_list_api.yml | ||
25 | + validate: | ||
26 | + - eq: | ||
27 | + - content.msg | ||
28 | + - ok | ||
29 | + - eq: | ||
30 | + - content.data.gridResult.totalRow | ||
31 | + - ${add($num1,0)} |
1 | +config: | ||
2 | + name: DIV003-事业分红详情-各个值计算正确 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + | ||
5 | +teststeps: | ||
6 | +- name: 新增实际订单 | ||
7 | + testcase: testcases/common/COM001_actual_add_testcases.yml | ||
8 | + export: | ||
9 | + - actual_id | ||
10 | + | ||
11 | +- name: 查看该订单的事业分红详情 | ||
12 | + variables: | ||
13 | + id: ${convert_to_string($actual_id)} | ||
14 | + api: api/m_api/dividends/m_dividends_detail_api.yml | ||
15 | + validate: | ||
16 | + - eq: | ||
17 | + - content.msg | ||
18 | + - ok |
1 | -config: | ||
2 | - name: 分红管理-编辑 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_partner_account_from_database()} | ||
6 | - msg: ok | ||
7 | - teardown_hooks: | ||
8 | - - ${sleep(2)} | ||
9 | - | ||
10 | -teststeps: | ||
11 | -- name: $phone 登录系统 | ||
12 | - testcase: testcases/m_login_testcases.yml | ||
13 | - | ||
14 | -- name: $phone 分红管理-编辑 | ||
15 | - api: api/m_api/dividends/m_order_dividends_edit_api.yml | ||
16 | - validate: | ||
17 | - - eq: | ||
18 | - - content.msg | ||
19 | - - $msg |
testcases/m_login_testcases.yml
已删除
100644 → 0
1 | -config: | ||
2 | - name: login_testcases | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - | ||
7 | -teststeps: | ||
8 | -- name: $phone 登录系统 | ||
9 | - api: api/m_api/m_login_api.yml | ||
10 | - teardown_hooks: | ||
11 | - - ${teardown_hook_get_m_accesstoken($response)} | ||
12 | - validate: | ||
13 | - - eq: | ||
14 | - - content.msg | ||
15 | - - ok |
testcases/m_pwd_updat_testcases.yml
已删除
100644 → 0
1 | -config: | ||
2 | - name: login_testcases | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - | ||
7 | -teststeps: | ||
8 | -- name: $phone 登录系统 | ||
9 | - api: api/m_api/m_login_api.yml | ||
10 | - teardown_hooks: | ||
11 | - - ${teardown_hook_get_m_accesstoken($response)} | ||
12 | - validate: | ||
13 | - - eq: | ||
14 | - - content.msg | ||
15 | - - ok | ||
16 | - | ||
17 | - - name: $phone 修改密码 | ||
18 | - api: api/m_api/m_pwd_update_api.yml | ||
19 | - validate: | ||
20 | - - eq: | ||
21 | - - content.msg | ||
22 | - - ok |
1 | +config: | ||
2 | + name: ACT001-实际订单-各个值计算正确 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + variables: | ||
5 | + shipmentsId: '实发订单发货单号${get_nowtime()}' | ||
6 | + partnerID: 1047 | ||
7 | + commissionProportion: 5 | ||
8 | + orderNum1: 100 | ||
9 | + univalence1: 15 | ||
10 | + partnerRatio1: 10 | ||
11 | + orderNum2: 200 | ||
12 | + univalence2: 15 | ||
13 | + partnerRatio2: 20 | ||
14 | + | ||
15 | +teststeps: | ||
16 | +- name: $phone 登录系统 | ||
17 | + variables: | ||
18 | + phone: ${ENV(adminphone)} | ||
19 | + testcase: testcases/common/m_login_testcases.yml | ||
20 | + | ||
21 | +- name: 新增实发订单 | ||
22 | + api: api/m_api/actual/m_add_order_actual_api.yml | ||
23 | + validate: | ||
24 | + - eq: | ||
25 | + - content.msg | ||
26 | + - ok | ||
27 | + | ||
28 | +- name: 查看实际订单列表 | ||
29 | + api: api/m_api/actual/m_order_actual_partner_list_api.yml | ||
30 | + extract: | ||
31 | + - actual_id: content.data.gridResult.lists.0.id | ||
32 | + validate: | ||
33 | + - eq: | ||
34 | + - content.data.gridResult.lists.0.shipmentsId | ||
35 | + - $shipmentsId | ||
36 | + | ||
37 | +- name: 查看实际订单详情 | ||
38 | + variables: | ||
39 | + id: ${convert_to_string($actual_id)} | ||
40 | + api: api/m_api/actual/m_order_actual_detail_api.yml | ||
41 | + validate: | ||
42 | + - eq: | ||
43 | + - content.data.orderNumCount | ||
44 | + - ${add($orderNum1,$orderNum2)} | ||
45 | + - eq: | ||
46 | + - content.data.orderAmountAdjustmentCount | ||
47 | + - 4500 | ||
48 | + - eq: | ||
49 | + - content.data.product.0.orderPrice | ||
50 | + - 1500 | ||
51 | + - eq: | ||
52 | + - content.data.product.1.orderPrice | ||
53 | + - 3000 |
1 | -config: | ||
2 | - name: 订单详情 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_partner_account_from_database()} | ||
6 | - msg: 成功 | ||
7 | - teardown_hooks: | ||
8 | - - ${sleep(2)} | ||
9 | - | ||
10 | -teststeps: | ||
11 | -- name: $phone 登录系统 | ||
12 | - testcase: testcases/login_testcases.yml | ||
13 | - | ||
14 | -- name: $phone 订单详情 | ||
15 | - api: api/app_api/order/details_api.yml | ||
16 | - validate: | ||
17 | - - eq: | ||
18 | - - content.msg | ||
19 | - - $msg |
testcases/order/order_list_testcases.yml
已删除
100644 → 0
1 | -config: | ||
2 | - name: 实发订单列表 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_partner_account_from_database()} | ||
6 | - total: ${get_total_from_database()} | ||
7 | - msg: 成功 | ||
8 | - teardown_hooks: | ||
9 | - - ${sleep(2)} | ||
10 | - | ||
11 | -teststeps: | ||
12 | -- name: $phone 登录系统 | ||
13 | - testcase: testcases/login_testcases.yml | ||
14 | - | ||
15 | -- name: $phone 实发订单列表 | ||
16 | - api: api/app_api/order/list_api.yml | ||
17 | - validate: | ||
18 | - - eq: | ||
19 | - - content.msg | ||
20 | - - $msg | ||
21 | - - eq: | ||
22 | - - content.data.total | ||
23 | - - $total |
1 | -config: | ||
2 | - name: 订单统计 | ||
3 | - base_url: ${ENV(base_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_partner_account_from_database()} | ||
6 | - todayRealQuantity: ${get_todayRealQuantity_from_database()} | ||
7 | - todayRealMoney: ${get_todayRealMoney_from_database()} | ||
8 | - cumulativeQuantity: ${get_cumulativeQuantity_from_database()} | ||
9 | - cumulativeMoney: ${get_cumulativeMoney_from_database()} | ||
10 | - msg: 成功 | ||
11 | - teardown_hooks: | ||
12 | - - ${sleep(2)} | ||
13 | - | ||
14 | -teststeps: | ||
15 | -- name: 登录系统 | ||
16 | - testcase: testcases/login_testcases.yml | ||
17 | - | ||
18 | -- name: $phone 订单统计 | ||
19 | - api: api/app_api/order/statistics_api.yml | ||
20 | - validate: | ||
21 | - - eq: | ||
22 | - - content.msg | ||
23 | - - $msg | ||
24 | - - eq: | ||
25 | - - content.data.statistics.cumulativeMoney | ||
26 | - - $cumulativeMoney | ||
27 | - - eq: | ||
28 | - - content.data.statistics.cumulativeQuantity | ||
29 | - - $cumulativeQuantity | ||
30 | - - eq: | ||
31 | - - content.data.statistics.todayRealMoney | ||
32 | - - $todayRealMoney | ||
33 | - - eq: | ||
34 | - - content.data.statistics.todayRealQuantity | ||
35 | - - $todayRealQuantity |
1 | +config: | ||
2 | + name: ACT001-实际订单-各个值计算正确 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + variables: | ||
5 | + orderId: '意向订单号${get_nowtime()}' | ||
6 | + partnerID: 1047 | ||
7 | + commissionProportion: 5 | ||
8 | + orderNum1: 100 | ||
9 | + univalence1: 15 | ||
10 | + partnerRatio1: 10 | ||
11 | + orderNum2: 200 | ||
12 | + univalence2: 15 | ||
13 | + partnerRatio2: 20 | ||
14 | + | ||
15 | +teststeps: | ||
16 | +- name: $phone 登录系统 | ||
17 | + variables: | ||
18 | + phone: ${ENV(adminphone)} | ||
19 | + testcase: testcases/common/m_login_testcases.yml | ||
20 | + | ||
21 | +- name: 新增意向订单 | ||
22 | + api: api/m_api/purpose/m_order_purpose_add_api.yml | ||
23 | + validate: | ||
24 | + - eq: | ||
25 | + - content.msg | ||
26 | + - ok | ||
27 | + | ||
28 | +- name: 查看意向订单列表 | ||
29 | + api: api/m_api/purpose/m_order_purpose_partner_list_api.yml | ||
30 | + extract: | ||
31 | + - pur_id: content.data.gridResult.lists.0.id | ||
32 | + validate: | ||
33 | + - eq: | ||
34 | + - content.data.gridResult.lists.0.orderId | ||
35 | + - $orderId | ||
36 | + | ||
37 | +- name: 查看意向订单详情 | ||
38 | + variables: | ||
39 | + id: ${convert_to_string($pur_id)} | ||
40 | + api: api/m_api/purpose/m_order_purpose_detail_api.yml | ||
41 | + validate: | ||
42 | + - eq: | ||
43 | + - content.data.orderNumCount | ||
44 | + - ${add($orderNum1,$orderNum2)} | ||
45 | + - eq: | ||
46 | + - content.data.orderAmountAdjustmentCount | ||
47 | + - 4500 | ||
48 | + - eq: | ||
49 | + - content.data.product.0.orderPrice | ||
50 | + - 1500 | ||
51 | + - eq: | ||
52 | + - content.data.product.1.orderPrice | ||
53 | + - 3000 |
1 | -config: | ||
2 | - name: 新增意向订单 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 新增意向订单 | ||
14 | - api: api/m_api/purpose/m_order_purpose_add_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | -config: | ||
2 | - name: 编辑意向订单 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 编辑意向订单 | ||
14 | - api: api/m_api/purpose/m_order_purpose_edit_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | -config: | ||
2 | - name: 合伙人搜索——意向订单列表 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 合伙人搜索——意向订单列表 | ||
14 | - api: api/m_api/purpose/m_order_purpose_partner_list_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | -config: | ||
2 | - name: 搜索订单号——意向订单列表 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - orderStatue: ${get_purpose_order_status_from_database(order)} | ||
7 | - teardown_hooks: | ||
8 | - - ${sleep(2)} | ||
9 | - | ||
10 | -teststeps: | ||
11 | -- name: $phone 登录系统 | ||
12 | - testcase: testcases/m_login_testcases.yml | ||
13 | - | ||
14 | -- name: $phone 搜索订单号——意向订单列表 | ||
15 | - api: api/m_api/purpose/m_order_purpose_searchText_list_api.yml | ||
16 | - validate: | ||
17 | - - eq: | ||
18 | - - content.msg | ||
19 | - - ok | ||
20 | - - eq: | ||
21 | - - content.data.gridResult.lists.0.orderStatue | ||
22 | - - $orderStatue |
1 | -config: | ||
2 | - name: 意向订单发货 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 意向订单发货 | ||
14 | - api: api/m_api/purpose/m_order_purpose_sendout_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | -config: | ||
2 | - name: 查看意向订单详情 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 查看意向订单详情 | ||
14 | - api: api/m_api/purpose/m_order_purpose_detail_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | -config: | ||
2 | - name: 删除意向订单 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 删除实际订单 | ||
14 | - api: api/m_api/purpose/m_order_purpose_del_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
不能预览此文件类型
-
请 注册 或 登录 后发表评论