Skip to content
GitLab
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
290f3d8c
Commit
290f3d8c
authored
Dec 15, 2023
by
liguangyu06
Browse files
用例优化
parent
d982addc
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_demand_create_pc/多采商城需求单创建.air/多采商城需求单创建.py
View file @
290f3d8c
...
@@ -13,7 +13,6 @@ import json
...
@@ -13,7 +13,6 @@ import json
module
=
"cmdc_demand_create_pc"
module
=
"cmdc_demand_create_pc"
# print(url)
# 获取登录所需账号密码
# 获取登录所需账号密码
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
...
@@ -24,6 +23,7 @@ headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_toke
...
@@ -24,6 +23,7 @@ headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_toke
# 进行需求单创建操作
# 进行需求单创建操作
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload"
)
"""
"""
场景:通过快速下单入口提交创建需求单
场景:通过快速下单入口提交创建需求单
用例名称:通过快速下单入口提交创建需求单
用例名称:通过快速下单入口提交创建需求单
...
...
air_case/cmdc_demand_create_pc/多采商城需求单草稿创建.air/多采商城需求单草稿创建.py
View file @
290f3d8c
...
@@ -13,7 +13,6 @@ import json
...
@@ -13,7 +13,6 @@ import json
module
=
"cmdc_demand_create_pc"
module
=
"cmdc_demand_create_pc"
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url2"
)
# 获取登录所需账号密码
# 获取登录所需账号密码
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
...
@@ -21,7 +20,11 @@ password = commonFuc().get_business_data(module, "password")
...
@@ -21,7 +20,11 @@ password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
# 获取登录后Cmdc_access_token
cmdc_access_token
=
CmdcMaiiLogin
(
username
,
password
).
get_token
()
cmdc_access_token
=
CmdcMaiiLogin
(
username
,
password
).
get_token
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers"
,
cmdc_access_token
)
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers"
,
cmdc_access_token
)
# 进行需求单草稿订单的创建
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url2"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload2"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload2"
)
"""
"""
场景:通过快速下单入口提交创建需求单草稿
场景:通过快速下单入口提交创建需求单草稿
用例名称:通过快速下单入口提交创建需求单草稿
用例名称:通过快速下单入口提交创建需求单草稿
...
...
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