Commit 669469ea authored by xiao-hesheng's avatar xiao-hesheng
Browse files

增加配送模块脚本

parent 40096b41
......@@ -24,8 +24,8 @@ def select1():
# from a1结算单查询_列表数据查询 import select1
# id1 = select1()
"""
场景:a1结算单查询-结算单详情
用例名称:a1结算单查询-结算单详情
场景:a2结算管理-发票录入查询
用例名称:a2结算管理-发票录入查询
输入:无
输出:"rtn_msg": 0
"""
......
......@@ -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_url1")
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
......
# -*- 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()
# -*- 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()
# -*- 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()
# -*- 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()
......@@ -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
......@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment