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
619bb758
Commit
619bb758
authored
Mar 13, 2024
by
xiao-hesheng
Browse files
优化脚本
parent
0629ad3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
air_case/b2_herp3_bs/o7科室管理_科室产品分配_科室新增产品.air/o7科室管理_科室产品分配_科室新增产品.py
View file @
619bb758
...
@@ -58,7 +58,11 @@ def test1():
...
@@ -58,7 +58,11 @@ def test1():
pro_path
=
commonFuc
().
get_pro_path
()
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\r_b8库房管理_库区设置_同步库房信息.air'
)
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\r_b8库房管理_库区设置_同步库房信息.air'
)
using
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\r_b8库房管理_库区设置_同步库房信息.air'
)
using
(
pro_path
+
r
'\\air_case\\b2_herp3_bs\\r_b8库房管理_库区设置_同步库房信息.air'
)
from
r_b8库房管理_库区设置_同步库房信息
import
test1
try
:
from
r_b8库房管理_库区设置_同步库房信息
import
test1
except
Exception
as
e
:
print
(
"r_b8库房管理_库区设置_同步库房信息发生异常:"
,
str
(
e
))
# test1()
# test1()
#查询库房id
#查询库房id
pro_path
=
commonFuc
().
get_pro_path
()
pro_path
=
commonFuc
().
get_pro_path
()
...
...
air_case/b2_herp3_bs/r_b8库房管理_库区设置_同步库房信息.air/r_b8库房管理_库区设置_同步库房信息.py
View file @
619bb758
...
@@ -73,7 +73,7 @@ def test1():
...
@@ -73,7 +73,7 @@ def test1():
# request_body_json = json.loads(new_request_body)
# request_body_json = json.loads(new_request_body)
# # # 发送请求
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result
aaaaaaaaaaaaaaaaaaaaaaaaaaa
'
,
result
)
print
(
'result
'
,
'r_b8库房管理_库区设置_同步库房信息
'
,
result
)
# 断言
# 断言
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
...
...
report/summary.html
View file @
619bb758
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/r_b8库房管理_库区设置_同步库房信息/log.html'
target=
'_blank'
>
r_b8库房管理_库区设置_同步库房信息
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/r_b8库房管理_库区设置_同步库房信息/log.html'
target=
'_blank'
>
r_b8库房管理_库区设置_同步库房信息
</a></td>
<td
class=
"success"
>
成功
</td>
<td
class=
"success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
1.947
</td>
<td
class=
"details-col-elapsed"
>
2.219
</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