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-spd
Commits
82c7234e
Commit
82c7234e
authored
10 months ago
by
xiao-hesheng
Browse files
Options
Download
Email Patches
Plain Diff
数据库验证流程十脚本编写
parent
37555d33
master
core_flow
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向直送.air/a_b4流程十一请领业务流_二级库向直送.py
+29
-13
...ess_flow/a_b4流程十一请领业务流_二级库向直送.air/a_b4流程十一请领业务流_二级库向直送.py
air_case/public1/public1/public1.py
+8
-0
air_case/public1/public1/public1.py
runner.py
+1
-1
runner.py
with
38 additions
and
14 deletions
+38
-14
air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向直送.air/a_b4流程十一请领业务流_二级库向直送.py
+
29
-
13
View file @
82c7234e
...
...
@@ -752,20 +752,21 @@ def check_accept_order(type=1):
break
# ==============================查看订单详情==================
# ========设置验收全部合格
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"check_barcode_save_url"
)
print
(
'check_barcode_save_url'
,
url
)
url
2
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"check_barcode_save_url"
)
print
(
'check_barcode_save_url'
,
url
2
)
sourceBillId
=
sourceId
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload2"
,
sourceBillId
,
viewId
)
request_body
2
=
commonFuc
().
get_business_data
(
module
,
"payload2"
,
sourceBillId
,
viewId
)
print
(
'设置验收全部合格request_body'
,
request_body
)
print
(
'设置验收全部合格request_body
2
'
,
request_body
2
)
# 发送请求
time
.
sleep
(
6
)
while
True
:
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
result2
=
commonFuc
().
http_post
(
url2
,
request_body2
,
headers
)
print
(
'result'
,
result2
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result2
)
code
=
commonFuc
().
analysis_json
(
'code'
,
result2
)
msg
=
commonFuc
().
analysis_json
(
'msg'
,
result2
)
print
(
code
)
if
code
==
0
and
len
(
data
)
>=
1
:
break
...
...
@@ -800,8 +801,23 @@ def check_accept_order(type=1):
print
(
'result'
,
result
)
CHECK_NO
=
commonFuc
().
analysis_json
(
'data'
,
result
)
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
msg
=
commonFuc
().
analysis_json
(
'msg'
,
result
)
if
code
==
0
:
break
elif
code
==
14031083
and
"不允许验收"
in
msg
:
result2
=
commonFuc
().
http_post
(
url2
,
request_body2
,
headers
)
print
(
'result'
,
result2
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result2
)
code
=
commonFuc
().
analysis_json
(
'code'
,
result2
)
print
(
code
)
if
code
==
0
and
len
(
data
)
>=
1
:
break
else
:
print
(
'设置产品合格出现问题'
)
time
.
sleep
(
6
)
continue
info
=
(
CHECK_NO
,
CHECK_NO
)
titlename
=
(
'CHECK_NO1'
,
'CHECK_NO2'
)
...
...
@@ -839,11 +855,11 @@ def main():
check_accept_order
(
1
)
# 低值
check_accept_order
(
2
)
# 高值
check_accept_order
(
3
)
# 试剂
second_dept_one_key_in
()
second_dept_one_key_in
()
second_dept_one_key_in
()
second_dept_one_key_in
(
2
)
second_dept_one_key_in
(
2
)
second_dept_one_key_in
(
2
)
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
print
(
'==========================流程十一结束=============================='
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
# main()
\ No newline at end of file
main
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
air_case/public1/public1/public1.py
+
8
-
0
View file @
82c7234e
...
...
@@ -3058,6 +3058,14 @@ def second_dept_one_key_in(type=2):
# # # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
while
True
:
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
total
=
commonFuc
().
analysis_json
(
'total'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
if
total
>=
1
:
break
else
:
continue
deptid
=
commonFuc
().
analysis_json
(
'deptId'
,
commonFuc
().
analysis_json
(
'data'
,
commonFuc
().
analysis_json
(
'data'
,
result
)))
sourceId
=
commonFuc
().
analysis_json
(
'sourceId'
,
...
...
This diff is collapsed.
Click to expand it.
runner.py
+
1
-
1
View file @
82c7234e
...
...
@@ -98,7 +98,7 @@ if __name__ == '__main__':
delData
().
Delete_branch_by_id
()
delData
().
Delete_goods_change_info
()
delData
().
Delete_probeInfo_other
()
#
delData().Del_supply_relation()
delData
().
Del_supply_relation
()
delData
().
Delete_business_Data
()
delData
().
Del_reporter_data
()
delData
().
Delete_business_Data_All
()
...
...
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