Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-cmdc
Commits
92897d84
Commit
92897d84
authored
1 year ago
by
liguangyu06
Browse files
Options
Download
Email Patches
Plain Diff
用例优化
parent
407d0027
main
master
1 merge request
!4
Master|需求单模块归档合并
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
air_case/cmdc_purchase_list/采购单查询.air/采购单查询.py
+3
-1
air_case/cmdc_purchase_list/采购单查询.air/采购单查询.py
data/cmdc_purchase_list/data
+3
-4
data/cmdc_purchase_list/data
with
6 additions
and
5 deletions
+6
-5
air_case/cmdc_purchase_list/采购单查询.air/采购单查询.py
+
3
-
1
View file @
92897d84
...
...
@@ -14,7 +14,6 @@ import json
module
=
"cmdc_purchase_list"
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url"
)
# print(url)
# 获取登录所需账号密码
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
...
...
@@ -22,6 +21,9 @@ password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
cmdc_access_token
=
CmdcDoLogin
(
username
,
password
).
get_token
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers1"
,
cmdc_access_token
)
# 获取采购单列表
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload1"
)
"""
...
...
This diff is collapsed.
Click to expand it.
data/cmdc_purchase_list/data
+
3
-
4
View file @
92897d84
#采购单查询接口
"url": "/order/purchase/list"
# 后台运营管理系统登录信息
"username": "Admin00111"
"password": "Aa123456"
...
...
@@ -10,6 +6,9 @@ json_headers1: {
"Content-Type": "application/json",
"Cmdc_access_token": "%s"
}
#采购单查询接口
"url": "/order/purchase/list"
"payload1": {"billNo":"","billStatusList":[],"creator":"","demandNo":"","startTime":"","endTime":"","times":null,"status":null,"pageNumber":1,"pageSize":8}
#预期结果
checkDict2: {"success":true,"code":"200","message":null}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets