作者 dengyuting

add V0.8.0

name: 合伙人搜索——实际订单列表
base_url: ${ENV(base_manager_url)}
variables:
searchText: ''
partnerName: ''
orderCode: ''
deliveryCode: ''
partnerCategory: 1
updateTime:
createTime:
request:
headers:
Content-Type: application/json;charset=utf-8
... ... @@ -13,8 +16,11 @@ request:
pageNumber: 1
pageSize: 10
partnerCategory: $partnerCategory
searchText: $searchText
partnerName: $partnerName
updateTime: $updateTime
createTime: $createTime
orderCode: $orderCode
deliveryCode: $deliveryCode
method: POST
url: /v1/order/actual/list
validate:
... ...
name: 管理员详情
base_url: ${ENV(base_manager_url)}
variables:
id: 123456
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
id: $id
method: POST
url: /v1/admin/detail
validate:
- eq:
- content.msg
- ok
\ No newline at end of file
... ...
name: 编辑用户
base_url: ${ENV(base_manager_url)}
variables:
id: 123456
account: '19911111111'
permissionType:
status: 1
checkedPartner:
isSenior: 2
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
id: $id
account: $account
permissionType: $permissionType
status: $status
checkedPartner: $checkedPartner
isSenior: $isSenior
method: POST
url: /v1/admin/update
validate:
- eq:
- content.msg
- ok
\ No newline at end of file
... ...
config:
name: ADMIN004-管理员高管设置是否正确
base_url: ${ENV(base_manager_url)}
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(adminphone)}
testcase: testcases/common/m_login_testcases.yml
- name: 管理员列表
variables:
searchText: 'autotester'
api: api/m_api/admin/m_admin_list_api.yml
extract:
- totalRow: content.data.gridResult.totalRow
- adminid: content.data.gridResult.lists.0.id
validate:
- length_equals:
- content.data.gridResult.lists
- $totalRow
- equals:
- content.data.gridResult.lists.0.isSenior
- 1
- name: 查看用户详情
variables:
id: $adminid
api: api/m_api/admin/m_admin_detail_api.yml
validate:
- equals:
- content.data.isSenior
- 1
- name: 编辑用户,改为非高管
variables:
id: $adminid
isSenior: 2
api: api/m_api/admin/m_admin_update_api.yml
validate:
- equals:
- content.code
- 0
- name: 管理员列表
variables:
searchText: 'autotester'
api: api/m_api/admin/m_admin_list_api.yml
extract:
- totalRow: content.data.gridResult.totalRow
- adminid: content.data.gridResult.lists.0.id
validate:
- length_equals:
- content.data.gridResult.lists
- $totalRow
- equals:
- content.data.gridResult.lists.0.isSenior
- 2
- name: 查看用户详情
variables:
id: $adminid
api: api/m_api/admin/m_admin_detail_api.yml
validate:
- equals:
- content.data.isSenior
- 2
... ...
... ... @@ -87,4 +87,7 @@ testcases:
- name: ADMIN003-查看权限
testcase: testcases/admin/ADMIN003_list_admin_permission_testcases.yml
- name: ADMIN004-管理员高管设置是否正确
testcase: testcases/admin/ADMIN004_admin_isSenior_testcases.yml
#################################成员管理结束################################
\ No newline at end of file
... ...