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
c9625c37
Commit
c9625c37
authored
Dec 05, 2023
by
xiao-hesheng
Browse files
修改脚本适合融合环境
parent
5c1471af
Changes
5
Hide whitespace changes
Inline
Side-by-side
air_case/a3_mdm3_hs/注册医院审核通过.air/注册医院审核通过.py
View file @
c9625c37
...
...
@@ -95,7 +95,7 @@ def reg_and_audit_hospital(type=1):
#将医院信息写入到文件中
info
=
(
h_name
,
h_name
)
titlename
=
(
'h_id'
,
'h_name'
)
FileUtils
().
w_info
4
(
info
,
module
,
'医院信息'
,
titlename
)
print
(
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
)
FileUtils
().
w_info
5
(
info
,
module
,
'医院信息'
,
titlename
)
#
print('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
return
h_name
reg_and_audit_hospital
()
\ No newline at end of file
common/fileUtls.py
View file @
c9625c37
...
...
@@ -149,6 +149,29 @@ class FileUtils(object):
# 写入到yaml文件
with
open
(
yamlpath
,
"a"
,
encoding
=
"utf-8"
)
as
f
:
yaml
.
dump
(
dict
,
f
,
Dumper
=
yaml
.
RoundTripDumper
,
allow_unicode
=
True
)
#写入医院信息
def
w_info5
(
self
,
info
,
module
,
keyname
,
titlename
):
module
=
module
dict
=
{}
value
=
{}
for
i
in
range
(
len
(
titlename
)):
value
[
titlename
[
i
]]
=
info
[
i
]
# value[titlename[0]] = info[0]
# value[titlename[1]] = info[1]
key
=
keyname
dict
[
key
]
=
value
w_path
=
rootPath
+
os
.
sep
+
'data'
+
os
.
sep
+
module
# print(w_path)
yamlpath
=
os
.
path
.
join
(
w_path
,
"message"
)
if
(
self
.
r_info
(
module
,
keyname
)
!=
None
):
print
(
'已有相同信息,覆盖写入'
)
# 写入到yaml文件
with
open
(
yamlpath
,
"w"
,
encoding
=
"utf-8"
)
as
f
:
yaml
.
dump
(
dict
,
f
,
Dumper
=
yaml
.
RoundTripDumper
,
allow_unicode
=
True
)
else
:
# 写入到yaml文件
with
open
(
yamlpath
,
"a"
,
encoding
=
"utf-8"
)
as
f
:
yaml
.
dump
(
dict
,
f
,
Dumper
=
yaml
.
RoundTripDumper
,
allow_unicode
=
True
)
if
__name__
==
'__main__'
:
# info=("aaaa","bbbbbb","mdm3-pim")
...
...
data/a3_mdm3_hs/data
View file @
c9625c37
...
...
@@ -23,6 +23,7 @@ json_headers2: {
"cname": "%s",
"shortName": "%s",
"hosLevel": "三级甲等",
"hosSpdType":"3",
"area": "湖南省长沙市下陆区",
"code": "420101",
"address": "湖南省长沙市下陆区",
...
...
data/a3_mdm3_hs/message
View file @
c9625c37
医院信息:
h_id: 湖南省人民医院
@yiF7
h_name: 湖南省人民医院
@yiF7
h_id: 湖南省人民医院
jtZBp
h_name: 湖南省人民医院
jtZBp
report/summary.html
View file @
c9625c37
...
...
@@ -55,9 +55,9 @@
<tr
width=
"600"
>
<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分4秒
</td>
<td
class=
"details-col-elapsed"
>
0.0%
</td>
<td
class=
"details-col-elapsed"
>
10
0.0%
</td>
</tr>
</table>
...
...
@@ -72,9 +72,9 @@
</tr>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/
a3供货关系申请_客户类型_医院_供销关系申请提交
/log.html'
target=
'_blank'
>
a3供货关系申请_客户类型_医院_供销关系申请提交
</a></td>
<td
class=
"
fail"
>
失败
</td>
<td
class=
"details-col-elapsed"
>
4.
75
9
</td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/
注册医院审核通过
/log.html'
target=
'_blank'
>
注册医院审核通过
</a></td>
<td
class=
"
success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
4.
11
9
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
</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