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
dc7a17c7
Commit
dc7a17c7
authored
Apr 30, 2024
by
xiao-hesheng
Browse files
流程五脚本编写
parent
d5f74ce9
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/public1/public1/public1.py
View file @
dc7a17c7
...
@@ -950,32 +950,54 @@ def SaveCacheBatch2(headers):
...
@@ -950,32 +950,54 @@ def SaveCacheBatch2(headers):
viewId
=
j
[
'viewId'
]
viewId
=
j
[
'viewId'
]
break
break
for
i
in
list_a
:
# for i in list_a:
pid2
=
i
[
'pid'
]
# pid2 = i['pid']
settleMonth2
=
i
[
'settleMonth'
]
# settleMonth2 = i['settleMonth']
hosGoodsId2
=
i
[
'hosGoodsId'
]
# hosGoodsId2 = i['hosGoodsId']
detailList2
=
i
[
'detailList'
]
detailList2
=
commonFuc
().
analysis_json
(
'detailList'
,
list_a
)[
1
]
for
j
in
detailList2
:
print
(
'detailList2'
,
detailList2
)
batchCode2
=
j
[
'batchCode'
]
pid2
=
commonFuc
().
analysis_json
(
'pid'
,
detailList2
)
distrDetailId2
=
j
[
'distrDetailId'
]
settleMonth2
=
commonFuc
().
analysis_json
(
'settleMonth'
,
detailList2
)
distrId2
=
j
[
'distrId'
]
hosGoodsId2
=
commonFuc
().
analysis_json
(
'hosGoodsId'
,
detailList2
)
distrOrderNo2
=
j
[
'distrOrderNo'
]
batchCode2
=
commonFuc
().
analysis_json
(
'batchCode'
,
detailList2
)
settlePrice2
=
j
[
'settlePrice'
]
distrDetailId2
=
commonFuc
().
analysis_json
(
'distrDetailId'
,
detailList2
)
maxSettleQty2
=
j
[
'maxSettleQty'
]
distrId2
=
commonFuc
().
analysis_json
(
'distrId'
,
detailList2
)
maxSettleAmount2
=
j
[
'maxSettleAmount'
]
distrOrderNo2
=
commonFuc
().
analysis_json
(
'distrOrderNo'
,
detailList2
)
curSettleQty2
=
j
[
'curSettleQty'
]
settlePrice2
=
commonFuc
().
analysis_json
(
'settlePrice'
,
detailList2
)
curSettleAmount2
=
j
[
'curSettleAmount'
]
maxSettleQty2
=
commonFuc
().
analysis_json
(
'maxSettleQty'
,
detailList2
)
leftSettleQty2
=
j
[
'leftSettleQty'
]
maxSettleAmount2
=
commonFuc
().
analysis_json
(
'maxSettleAmount'
,
detailList2
)
leftSettleAmount2
=
j
[
'leftSettleAmount'
]
curSettleQty2
=
commonFuc
().
analysis_json
(
'curSettleQty'
,
detailList2
)
hosId2
=
j
[
'hosId'
]
curSettleAmount2
=
commonFuc
().
analysis_json
(
'curSettleAmount'
,
detailList2
)
provId2
=
j
[
'provId'
]
leftSettleQty2
=
commonFuc
().
analysis_json
(
'leftSettleQty'
,
detailList2
)
branchId2
=
j
[
'branchId'
]
leftSettleAmount2
=
commonFuc
().
analysis_json
(
'leftSettleAmount'
,
detailList2
)
balanceDetId2
=
j
[
'balanceDetId'
]
# hosId2 = j['hosId']
purMode2
=
j
[
'purMode'
]
# provId2 = j['provId']
barCode2
=
j
[
'barCode'
]
# branchId2 = j['branchId']
viewId2
=
j
[
'viewId'
]
# balanceDetId2 = j['balanceDetId']
break
# purMode2 = j['purMode']
# barCode2 = j['barCode']
# viewId2 = j['viewId']
# for j in detailList2:
# batchCode2 = j['batchCode']
# distrDetailId2 = j['distrDetailId']
# distrId2 = j['distrId']
# distrOrderNo2 = j['distrOrderNo']
# settlePrice2 = j['settlePrice']
# maxSettleQty2 = j['maxSettleQty']
# maxSettleAmount2 = j['maxSettleAmount']
# curSettleQty2 = j['curSettleQty']
# curSettleAmount2 = j['curSettleAmount']
# leftSettleQty2 = j['leftSettleQty']
# leftSettleAmount2 = j['leftSettleAmount']
# hosId2 = j['hosId']
# provId2 = j['provId']
# branchId2 = j['branchId']
# balanceDetId2 = j['balanceDetId']
# purMode2 = j['purMode']
# barCode2 = j['barCode']
# viewId2 = j['viewId']
# break
# list2=[]
# list2=[]
# detailList=None
# detailList=None
# for i in list_a:
# for i in list_a:
...
@@ -996,17 +1018,19 @@ def SaveCacheBatch2(headers):
...
@@ -996,17 +1018,19 @@ def SaveCacheBatch2(headers):
provId
,
provId
,
branchId
,
balanceDetId
,
purMode
,
barCode
,
viewId
)
branchId
,
balanceDetId
,
purMode
,
barCode
,
viewId
)
request_body2
=
commonFuc
().
get_business_data
(
module
,
"payload3_1_1_
1
"
,
pid2
,
settleMonth2
,
hosGoodsId2
,
batchCode2
,
request_body2
=
commonFuc
().
get_business_data
(
module
,
"payload3_1_1_
2
"
,
pid2
,
settleMonth2
,
hosGoodsId2
,
batchCode2
,
distrDetailId2
,
distrId2
,
distrOrderNo2
,
settlePrice2
,
maxSettleQty2
,
distrDetailId2
,
distrId2
,
distrOrderNo2
,
settlePrice2
,
maxSettleQty2
,
maxSettleAmount2
,
curSettleQty2
,
curSettleAmount2
,
leftSettleQty2
,
maxSettleAmount2
,
curSettleQty2
,
curSettleAmount2
,
leftSettleQty2
,
leftSettleAmount2
,
hosId
2
,
leftSettleAmount2
,
hosId
,
provId
2
,
provId
,
branchId
2
,
balanceDetId
2
,
purMode
2
,
barCode
2
,
viewId
2
)
branchId
,
balanceDetId
,
purMode
,
barCode
,
viewId
)
# print('request_body1', request_body1,request_body1)
# print('request_body1', request_body1,request_body1)
# print('request_body2', request_body2, request_body2)
# print('request_body2', request_body2, request_body2)
request_body3
=
str
(
request_body1
)
+
','
+
str
(
request_body2
)
request_body3
=
str
(
request_body1
)
+
','
+
str
(
request_body2
)
request_body4
=
get_process_list
(
request_body3
)
request_body4
=
get_process_list
(
request_body3
)
print
(
'request_body4'
,
request_body4
)
print
(
'request_body4'
,
request_body4
)
# while True:
# time.sleep(3)
result
=
commonFuc
().
http_post
(
url
,
request_body4
,
headers
)
result
=
commonFuc
().
http_post
(
url
,
request_body4
,
headers
)
print
(
'result'
,
result
)
print
(
'result'
,
result
)
...
...
data/a6_mdm3_si/data
View file @
dc7a17c7
...
@@ -32,6 +32,7 @@ json_headers2: {
...
@@ -32,6 +32,7 @@ json_headers2: {
"payload3": {"settleMonth":"%s","hosGoodsId":"%s","batchCode":"%s","distrDetailId":"%s","distrId":"%s","distrOrderNo":"%s","settlePrice":2.3,"maxSettleQty":0.0,"maxSettleAmount":0.0,"curSettleQty":0.0,"curSettleAmount":0.0,"leftSettleQty":33,"leftSettleAmount":"%s","hosId":"%s","provId":"%s","branchId":"%s","balanceDetId":"%s","purMode":"%s","barCode":"%s","batchId":null,"price":null,"maxQty":null,"settleQty":null,"id":null,"hosVersion":null,"jsonData":null}
"payload3": {"settleMonth":"%s","hosGoodsId":"%s","batchCode":"%s","distrDetailId":"%s","distrId":"%s","distrOrderNo":"%s","settlePrice":2.3,"maxSettleQty":0.0,"maxSettleAmount":0.0,"curSettleQty":0.0,"curSettleAmount":0.0,"leftSettleQty":33,"leftSettleAmount":"%s","hosId":"%s","provId":"%s","branchId":"%s","balanceDetId":"%s","purMode":"%s","barCode":"%s","batchId":null,"price":null,"maxQty":null,"settleQty":null,"id":null,"hosVersion":null,"jsonData":null}
"payload3_1": {"settleMonth":"%s","hosGoodsId":"%s","batchCode":"%s","distrDetailId":"%s","distrId":"%s","distrOrderNo":"%s","settlePrice":2.3,"maxSettleQty":33,"maxSettleAmount":75.9,"curSettleQty":33,"curSettleAmount":75.89999999999999,"leftSettleQty":33,"leftSettleAmount":75.9,"hosId":"%s","provId":"%s","branchId":"%s","balanceDetId":"%s","purMode":10,"barCode":"%s","batchId":null,"price":null,"maxQty":null,"settleQty":null,"id":null,"hosVersion":null,"jsonData":null}
"payload3_1": {"settleMonth":"%s","hosGoodsId":"%s","batchCode":"%s","distrDetailId":"%s","distrId":"%s","distrOrderNo":"%s","settlePrice":2.3,"maxSettleQty":33,"maxSettleAmount":75.9,"curSettleQty":33,"curSettleAmount":75.89999999999999,"leftSettleQty":33,"leftSettleAmount":75.9,"hosId":"%s","provId":"%s","branchId":"%s","balanceDetId":"%s","purMode":10,"barCode":"%s","batchId":null,"price":null,"maxQty":null,"settleQty":null,"id":null,"hosVersion":null,"jsonData":null}
"payload3_1_1_1": {"pid":"%s","settleMonth":"%s","hosGoodsId":"%s","batchCode":"%s","distrDetailId":"%s","distrId":"%s","distrOrderNo":"%s","settlePrice":"%s","maxSettleQty":"%s","maxSettleAmount":"%s","curSettleQty":"%s","curSettleAmount":"%s","leftSettleQty":"%s","leftSettleAmount":"%s","hosId":"%s","provId":"%s","branchId":"%s","balanceDetId":"%s","purMode":"%s","barCode":"%s","batchId":null,"price":null,"maxQty":null,"settleQty":null,"id":null,"hosVersion":null,"jsonData":null,"viewId":"%s"}
"payload3_1_1_1": {"pid":"%s","settleMonth":"%s","hosGoodsId":"%s","batchCode":"%s","distrDetailId":"%s","distrId":"%s","distrOrderNo":"%s","settlePrice":"%s","maxSettleQty":"%s","maxSettleAmount":"%s","curSettleQty":"%s","curSettleAmount":"%s","leftSettleQty":"%s","leftSettleAmount":"%s","hosId":"%s","provId":"%s","branchId":"%s","balanceDetId":"%s","purMode":"%s","barCode":"%s","batchId":null,"price":null,"maxQty":null,"settleQty":null,"id":null,"hosVersion":null,"jsonData":null,"viewId":"%s"}
"payload3_1_1_2": {"pid":"%s","settleMonth":"%s","hosGoodsId":"%s","batchCode":"%s","distrDetailId":"%s","distrId":"%s","distrOrderNo":"%s","settlePrice":"%s","maxSettleQty":"%s","maxSettleAmount":"%s","curSettleQty":"%s","curSettleAmount":"%s","leftSettleQty":"%s","leftSettleAmount":"%s","hosId":"%s","provId":"%s","branchId":"%s","balanceDetId":"%s","purMode":"%s","barCode":"%s","batchId":null,"price":null,"maxQty":null,"settleQty":null,"id":null,"hosVersion":null,"jsonData":null,"viewId":"%s"}
"payload3_2": {"hosName":"邹城市人民医院(test)","invoiceQty":33,"invoiceAmount":"75.9000","invoiceNumber":"1","invoiceCode":"1","invoiceNum":1,"remarks":"","invoiceTagList":[],"attachmentList":[],"hosId":"h0347","provId":null,"hosVersion":"3"}
"payload3_2": {"hosName":"邹城市人民医院(test)","invoiceQty":33,"invoiceAmount":"75.9000","invoiceNumber":"1","invoiceCode":"1","invoiceNum":1,"remarks":"","invoiceTagList":[],"attachmentList":[],"hosId":"h0347","provId":null,"hosVersion":"3"}
"payload3_2_2_2": {"hosName":"%s","invoiceQty":"%s","invoiceAmount":"%s","invoiceNumber":"test","invoiceCode":"test","invoiceNum":1,"remarks":"","invoiceDate":"%sT08:23:22.467Z","invoiceTagList":[],"attachmentList":[],"hosId":"%s","hosVersion":"%s"}
"payload3_2_2_2": {"hosName":"%s","invoiceQty":"%s","invoiceAmount":"%s","invoiceNumber":"test","invoiceCode":"test","invoiceNum":1,"remarks":"","invoiceDate":"%sT08:23:22.467Z","invoiceTagList":[],"attachmentList":[],"hosId":"%s","hosVersion":"%s"}
...
...
report/summary.html
View file @
dc7a17c7
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1分2秒
</td>
<td
class=
'details-col-elapsed'
>
1分2
8
秒
</td>
<td
class=
"details-col-elapsed"
>
100.0%
</td>
<td
class=
"details-col-elapsed"
>
100.0%
</td>
</tr>
</tr>
</table>
</table>
...
@@ -72,9 +72,9 @@
...
@@ -72,9 +72,9 @@
</tr>
</tr>
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_
a9
流程
六
_中心库入库结算_负结算/log.html'
target=
'_blank'
>
a_
a9
流程
六
_中心库入库结算_负结算
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_
b0
流程
七
_中心库入库结算_
正
负结算/log.html'
target=
'_blank'
>
a_
b0
流程
七
_中心库入库结算_
正
负结算
</a></td>
<td
class=
"success"
>
成功
</td>
<td
class=
"success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
61.873
</td>
<td
class=
"details-col-elapsed"
>
87.982
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
</tr>
</tr>
...
...
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