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-spd
Commits
3a1a3e67
Commit
3a1a3e67
authored
Jan 18, 2024
by
xiao-hesheng
Browse files
优化脚本
parent
804ff445
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/b2_herp3_bs/g2_19审批中心_审核通过.air/g2_19审批中心_审核通过.py
View file @
3a1a3e67
...
...
@@ -42,7 +42,7 @@ def test1():
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
# # # 获取
inst
Id
# # # 获取
task
Id
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\g2_18审批中心_列表查询.air'
)
using
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\g2_18审批中心_列表查询.air'
)
...
...
air_case/b2_herp3_bs/h4审批中心_审核通过.air/h4审批中心_审核通过.py
View file @
3a1a3e67
...
...
@@ -13,8 +13,8 @@ from common.timeUtils import timeUtils
__author__
=
"xiaohesheng"
"""
case_tag:api,herp-web,
g2_19
审批中心_审核通过,id2263,id2263-92,sit,on
内网:
g2_19
审批中心_审核通过
case_tag:api,herp-web,
h4
审批中心_审核通过,id2263,id2263-92,sit,on
内网:
h4
审批中心_审核通过
"""
from
common.common_func
import
commonFuc
...
...
@@ -22,8 +22,8 @@ from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_
module
=
"b2_herp3_bs"
def
test1
():
"""
场景:
g2_19
审批中心_审核通过
用例名称:
g2_19
审批中心_审核通过
场景:
h4
审批中心_审核通过
用例名称:
h4
审批中心_审核通过
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
...
...
@@ -35,14 +35,14 @@ def test1():
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
# print( token,projectCode,uxid,corpId,info)
#
g2_19
审批中心_审核通过
#
h4
审批中心_审核通过
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"approvalBatch_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
# # # 获取
inst
Id
# # # 获取
task
Id
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\g2_18审批中心_列表查询.air'
)
using
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\g2_18审批中心_列表查询.air'
)
...
...
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