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
276562ff
Commit
276562ff
authored
Apr 08, 2024
by
xiao-hesheng
Browse files
新增期初录入脚本
parent
c7e4da01
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/b4_herp3_InitStock/a_a6_期初录入_低值_暂存.air/a_a6_期初录入_低值_暂存.py
View file @
276562ff
...
@@ -85,7 +85,7 @@ def test1():
...
@@ -85,7 +85,7 @@ def test1():
info
=
FileUtils
().
r_info8
(
module
,
"期初产品信息"
,
'message2'
)
info
=
FileUtils
().
r_info8
(
module
,
"期初产品信息"
,
'message2'
)
# print('info', info)
# print('info', info)
list_a
=
info
[
'list_a'
]
list_a
=
info
[
'list_a'
]
#
print('list_a', list_a)
print
(
'list_a
啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
'
,
list_a
)
hosGoodsId
=
'hosGoodsId'
hosGoodsId
=
'hosGoodsId'
hosGoodsCode
=
'hosGoodsCode'
hosGoodsCode
=
'hosGoodsCode'
provId
=
'provId'
provId
=
'provId'
...
@@ -118,14 +118,25 @@ def test1():
...
@@ -118,14 +118,25 @@ def test1():
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\b4_herp3_InitStock\\a_a7_期初录入_低值_查询单元含量信息.air'
)
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\b4_herp3_InitStock\\a_a7_期初录入_低值_查询单元含量信息.air'
)
using
(
pro_path
+
r
'\\air_case\\b4_herp3_InitStock\\a_a7_期初录入_低值_查询单元含量信息.air'
)
using
(
pro_path
+
r
'\\air_case\\b4_herp3_InitStock\\a_a7_期初录入_低值_查询单元含量信息.air'
)
from
a_a7_期初录入_低值_查询单元含量信息
import
test1
from
a_a7_期初录入_低值_查询单元含量信息
import
test1
print
(
'hosGoodsId'
,
hosGoodsId
)
test1
(
hosGoodsId
)
test1
(
hosGoodsId
)
#从message3文件中读取单元包信息
#从message3文件中读取单元包信息
info
=
FileUtils
().
r_info8
(
module
,
"产品单元包信息"
,
'message3'
)
info
=
FileUtils
().
r_info8
(
module
,
"产品单元包信息"
,
'message3'
)
# print('info', info)
# print('info', info)
list_a
=
info
[
'list_a'
]
list_a
=
info
[
'list_a'
]
# print('list_a', list_a)
list_a
=
','
.
join
(
map
(
str
,
list_a
))
print
(
list_a
)
# 输出:
print
(
'list_a不不不不不不不不不不不不不不不不不不不不不不不不不'
,
list_a
,
type
(
list_a
))
import
json
new_request_body
=
list_a
.
replace
(
"'"
,
'"'
)
new_request_body1
=
new_request_body
.
replace
(
"None"
,
'null'
)
print
(
new_request_body1
)
list_a2
=
json
.
loads
(
new_request_body1
)
print
(
'list_a2不不不不不不不不不不不不不不不不不不不不不不不不不'
,
list_a2
,
type
(
list_a2
))
pkgDefId
=
'pkgDefId'
pkgDefId
=
'pkgDefId'
for
i
in
list_a
:
for
i
in
list_a
2
:
pkgDefId
=
i
[
'id'
]
pkgDefId
=
i
[
'id'
]
pkgDefName
=
i
[
'pkgDefName'
]
pkgDefName
=
i
[
'pkgDefName'
]
pkgDefQty
=
i
[
'pkgDefQty'
]
pkgDefQty
=
i
[
'pkgDefQty'
]
...
...
report/summary.html
View file @
276562ff
...
@@ -55,9 +55,9 @@
...
@@ -55,9 +55,9 @@
<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'
>
0
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
0分1秒
</td>
<td
class=
'details-col-elapsed'
>
0分1秒
</td>
<td
class=
"details-col-elapsed"
>
0.0%
</td>
<td
class=
"details-col-elapsed"
>
10
0.0%
</td>
</tr>
</tr>
</table>
</table>
...
@@ -73,8 +73,8 @@
...
@@ -73,8 +73,8 @@
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_a6_期初录入_低值_暂存/log.html'
target=
'_blank'
>
a_a6_期初录入_低值_暂存
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_a6_期初录入_低值_暂存/log.html'
target=
'_blank'
>
a_a6_期初录入_低值_暂存
</a></td>
<td
class=
"
fail"
>
失败
</td>
<td
class=
"
success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
1.
195
</td>
<td
class=
"details-col-elapsed"
>
1.
213
</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