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
a37c6fb4
Commit
a37c6fb4
authored
May 16, 2024
by
xiao-hesheng
Browse files
流程八脚本编写
parent
053f680c
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/public1/public1/public1.py
View file @
a37c6fb4
...
...
@@ -840,13 +840,14 @@ def invoice(type=1, OBh_ID='OBhxxxxxxxxxxxxxxx'):
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"mcmsInvoice_listVoPage_url"
)
print
(
'url'
,
url
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload11"
,
timeUtils
.
get_time_hms
(
5
),
timeUtils
.
get_time_hms
(
5
),
get_hosid
(),
get_hosid
())
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload11"
,
timeUtils
()
.
get_time_hms
(
5
),
timeUtils
()
.
get_time_hms
(
5
),
get_hosid
(),
get_hosid
())
print
(
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
'内网发票提交列表查询结果'
,
result
)
data1
=
commonFuc
().
analysis_json
(
'data'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
total
=
commonFuc
().
analysis_json
(
'total'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
VI_id2
=
'VI_id2'
if
total
==
0
:
print
(
'检查被测程序,发票提交列表查询数据是否正确'
)
else
:
...
...
@@ -854,6 +855,9 @@ def invoice(type=1, OBh_ID='OBhxxxxxxxxxxxxxxx'):
VI_id2
=
commonFuc
().
analysis_json
(
'id'
,
data1
[
i
])
if
VI_id2
==
VI_id
:
break
else
:
print
(
'内网发票提交列表中发票单号未找到'
)
print
(
'VI_id2'
,
VI_id2
)
# ==============发票提交,下一步归档
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
...
...
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