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
669469ea
Commit
669469ea
authored
Dec 28, 2023
by
xiao-hesheng
Browse files
增加配送模块脚本
parent
40096b41
Changes
8
Hide whitespace changes
Inline
Side-by-side
air_case/a6_mdm3_si/a2结算管理_发票录入查询.air/a2结算管理_发票录入查询.py
View file @
669469ea
...
...
@@ -24,8 +24,8 @@ def select1():
# from a1结算单查询_列表数据查询 import select1
# id1 = select1()
"""
场景:a
1
结算
单查询-结算单详情
用例名称:a
1
结算
单查询-结算单详情
场景:a
2
结算
管理-发票录入查询
用例名称:a
2
结算
管理-发票录入查询
输入:无
输出:"rtn_msg": 0
"""
...
...
air_case/a6_mdm3_si/a3结算管理_发票确认列表查询.air/a3结算管理_发票确认列表查询.py
View file @
669469ea
...
...
@@ -36,7 +36,7 @@ def select1():
"""
# module = "a6_mdm3_si"
#a1订单配送列表数据查询_全部
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"listVoPage_url"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"listVoPage_url
1
"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
...
...
air_case/a6_mdm3_si/a4_3结算管理_结算单开票_发票录入查询.air/a4_3结算管理_结算单开票_发票录入查询.py
0 → 100644
View file @
669469ea
# -*- encoding=utf8 -*-
from
common.fileUtls
import
FileUtils
__author__
=
"xiaohesheng"
"""
case_tag:api,mdm-web,a4_3结算管理_结算单开票_发票录入查询,id2293,id2292-9,sit,on
主数据平台:a4_3结算管理_结算单开票_发票录入查询
"""
from
common.common_func
import
commonFuc
from
airtest.core.api
import
using
import
sys
module
=
"a6_mdm3_si"
def
select1
():
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\a6_mdm3_dp\\a1企业登录.air'
)
using
(
pro_path
+
r
'\\air_case\\a6_mdm3_dp\\a1企业登录.air'
)
from
a1企业登录
import
e_login
token
,
projectCode
,
uxid
,
corpId
,
e_name
=
e_login
()
# # 获取发票信息
# sys.path.append(pro_path + r'\\air_case\\a6_mdm3_si\\a3结算管理_发票确认列表查询.air')
# using(pro_path + r'\\air_case\\a6_mdm3_si\\a3结算管理_发票确认列表查询.air')
# from a3结算管理_发票确认列表查询 import select1
# id1 = select1()
"""
场景:a4_3结算管理_结算单开票_发票录入查询
用例名称:a4_3结算管理_结算单开票_发票录入查询
输入:无
输出:"rtn_msg": 0
"""
# module = "a6_mdm3_si"
#a4_3结算管理_结算单开票_发票录入查询
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"listDetailByPage_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
projectCode
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload4"
)
# 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
#断言
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
if
code
==
0
:
commonFuc
().
check_text_exist
(
code
,
result
)
else
:
commonFuc
().
check_text_exist
(
'error'
,
result
)
select1
()
air_case/a6_mdm3_si/a4_4结算管理_结算单开票_结算单发票录入查询.air/a4_4结算管理_结算单开票_结算单发票录入查询.py
0 → 100644
View file @
669469ea
# -*- encoding=utf8 -*-
from
common.fileUtls
import
FileUtils
__author__
=
"xiaohesheng"
"""
case_tag:api,mdm-web,a4_4结算管理_结算单开票_结算单发票录入查询,id2293,id2292-10,sit,on
主数据平台:a4_4结算管理_结算单开票_结算单发票录入查询
"""
from
common.common_func
import
commonFuc
from
airtest.core.api
import
using
import
sys
module
=
"a6_mdm3_si"
def
select1
():
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\a6_mdm3_dp\\a1企业登录.air'
)
using
(
pro_path
+
r
'\\air_case\\a6_mdm3_dp\\a1企业登录.air'
)
from
a1企业登录
import
e_login
token
,
projectCode
,
uxid
,
corpId
,
e_name
=
e_login
()
# # 获取发票信息
# sys.path.append(pro_path + r'\\air_case\\a6_mdm3_si\\a3结算管理_发票确认列表查询.air')
# using(pro_path + r'\\air_case\\a6_mdm3_si\\a3结算管理_发票确认列表查询.air')
# from a3结算管理_发票确认列表查询 import select1
# id1 = select1()
"""
场景:a4_3结算管理_结算单开票_发票录入查询
用例名称:a4_3结算管理_结算单开票_发票录入查询
输入:无
输出:"rtn_msg": 0
"""
# module = "a6_mdm3_si"
#a4_3结算管理_结算单开票_发票录入查询
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"listDetailByPageDetailJnsy_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
projectCode
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload4_1"
)
# 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
#断言
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
if
code
==
0
:
commonFuc
().
check_text_exist
(
code
,
result
)
else
:
commonFuc
().
check_text_exist
(
'error'
,
result
)
select1
()
air_case/a6_mdm3_si/a4_5结算管理_结算单开票_发票明细打印查询.air/a4_5结算管理_结算单开票_发票明细打印查询.py
0 → 100644
View file @
669469ea
# -*- encoding=utf8 -*-
from
common.fileUtls
import
FileUtils
__author__
=
"xiaohesheng"
"""
case_tag:api,mdm-web,a4_5结算管理_结算单开票_发票明细打印查询,id2293,id2292-11,sit,on
主数据平台:a4_5结算管理_结算单开票_发票明细打印查询
"""
from
common.common_func
import
commonFuc
from
airtest.core.api
import
using
import
sys
module
=
"a6_mdm3_si"
def
select1
():
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\a6_mdm3_dp\\a1企业登录.air'
)
using
(
pro_path
+
r
'\\air_case\\a6_mdm3_dp\\a1企业登录.air'
)
from
a1企业登录
import
e_login
token
,
projectCode
,
uxid
,
corpId
,
e_name
=
e_login
()
# # 获取发票信息
# sys.path.append(pro_path + r'\\air_case\\a6_mdm3_si\\a3结算管理_发票确认列表查询.air')
# using(pro_path + r'\\air_case\\a6_mdm3_si\\a3结算管理_发票确认列表查询.air')
# from a3结算管理_发票确认列表查询 import select1
# id1 = select1()
"""
场景:a4_5结算管理_结算单开票_发票明细打印查询
用例名称:a4_5结算管理_结算单开票_发票明细打印查询
输入:无
输出:"rtn_msg": 0
"""
# module = "a6_mdm3_si"
#a4_3结算管理_结算单开票_发票录入查询
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"invoiceDetailList_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
projectCode
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload4_2"
)
# 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
#断言
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
if
code
==
0
:
commonFuc
().
check_text_exist
(
code
,
result
)
else
:
commonFuc
().
check_text_exist
(
'error'
,
result
)
select1
()
air_case/a6_mdm3_si/a4_6结算管理_发票查询.air/a4_6结算管理_发票查询.py
0 → 100644
View file @
669469ea
# -*- encoding=utf8 -*-
from
common.fileUtls
import
FileUtils
__author__
=
"xiaohesheng"
"""
case_tag:api,mdm-web,a4_6结算管理_发票查询,id2293,id2292-12,sit,on
主数据平台:a4_6结算管理_发票查询
"""
from
common.common_func
import
commonFuc
from
airtest.core.api
import
using
import
sys
module
=
"a6_mdm3_si"
def
select1
():
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\a6_mdm3_dp\\a1企业登录.air'
)
using
(
pro_path
+
r
'\\air_case\\a6_mdm3_dp\\a1企业登录.air'
)
from
a1企业登录
import
e_login
token
,
projectCode
,
uxid
,
corpId
,
e_name
=
e_login
()
# # 获取发票信息
# sys.path.append(pro_path + r'\\air_case\\a6_mdm3_si\\a3结算管理_发票确认列表查询.air')
# using(pro_path + r'\\air_case\\a6_mdm3_si\\a3结算管理_发票确认列表查询.air')
# from a3结算管理_发票确认列表查询 import select1
# id1 = select1()
"""
场景:a4_6结算管理_发票查询
用例名称:a4_6结算管理_发票查询
输入:无
输出:"rtn_msg": 0
"""
# module = "a6_mdm3_si"
#a4_3结算管理_结算单开票_发票录入查询
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"listVoPage_url1"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
projectCode
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload4_3"
)
# 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
#断言
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
if
code
==
0
:
commonFuc
().
check_text_exist
(
code
,
result
)
else
:
commonFuc
().
check_text_exist
(
'error'
,
result
)
select1
()
air_case/b2_herp3_bs/a2_编辑医院信息.air/a2_编辑医院信息.py
View file @
669469ea
...
...
@@ -38,9 +38,14 @@ def h_edit_info():
# 发送请求
result
=
commonFuc
().
http_get
(
url
,
headers
,
params
=
""
)
#
print('result', result)
print
(
'result'
,
result
)
#断言
checkDict
=
commonFuc
().
get_business_data
(
module
,
'checkDict1'
)
commonFuc
().
check_result
(
checkDict
,
result
)
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
if
code
==
0
:
commonFuc
().
check_text_exist
(
code
,
result
)
else
:
commonFuc
().
check_text_exist
(
'error'
,
result
)
# checkDict=commonFuc().get_business_data(module,'checkDict1')
# commonFuc().check_result(checkDict,result)
h_edit_info
()
\ No newline at end of file
report/summary.html
View file @
669469ea
...
...
@@ -56,7 +56,7 @@
<tr
width=
"600"
>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
0分
5
秒
</td>
<td
class=
'details-col-elapsed'
>
0分
0
秒
</td>
<td
class=
"details-col-elapsed"
>
100.0%
</td>
</tr>
</table>
...
...
@@ -72,9 +72,9 @@
</tr>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a2
结算单查询-结算单详情
/log.html'
target=
'_blank'
>
a2
结算单查询-结算单详情
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a2
_编辑医院信息
/log.html'
target=
'_blank'
>
a2
_编辑医院信息
</a></td>
<td
class=
"success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
5.232
</td>
<td
class=
"details-col-elapsed"
>
0.696
</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