Commit b4cff8ba authored by xiao-hesheng's avatar xiao-hesheng
Browse files

新增请领模板维护脚本

parent e66e09b4
# -*- encoding=utf8 -*-
import sys
from airtest.core.helper import using
from common.db.sql.sql_del_branch_info import delData
from common.db.sql.sql_del_kind_goodsinfo import delKindGoodsinfo
from common.db.sql.sql_del_notices_info import delByNoticeName
from common.fileUtls import FileUtils
from common.timeUtils import timeUtils
__author__ = "xiaohesheng"
"""
case_tag:api,herp-web,q1科室管理_科室产品分配_请领模板维护_添加产品,id2263,id2263-193,sit,on
内网:q1科室管理_科室产品分配_请领模板维护_添加产品
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:q1科室管理_科室产品分配_请领模板维护_添加产品
用例名称:q1科室管理_科室产品分配_请领模板维护_添加产品
输入:""
输出:"rtn_msg": {"code": 0, "msg": null, "data":[]}
"""
# 内网登录
username = commonFuc().get_business_data(module, "username")
# # print('医院名称',username)
password = commonFuc().get_business_data(module, "password")
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token, projectCode, uxid, corpId, info = login_system(username, password).get_token()
# print( token,projectCode,uxid,corpId,info)
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
from p4科室管理_科室产品分配_请领模板维护_模板列表查询 import test1
id1 = test1()
print(id1)
# q1科室管理_科室产品分配_请领模板维护_添加产品
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "basic_goodsPurTemplateGoods_insert_url")
# url=url+id1
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
commonFuc().get_business_data(module, "X-APP-CODE"))
# branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
# str = commonFuc().get_business_data(module, 'data3')
# list2 = list(str.split(","))
# print(list2)
# #获取日期
# date1=timeUtils().get_time_hms(2)
# date2=timeUtils().get_time_hms(2)
# for i in list2:
# dept2_id = FileUtils().r_info(module, '科室信息')["dept2_id"]
# 请求体
request_body = commonFuc().get_business_data(module, "payload59_13", id1)
request_body='['+str(request_body)+']'
new_request_body = request_body.replace("'", '"')
# print(new_request_body)
import json
request_body_json = json.loads(new_request_body)
# # # 发送请求
result = commonFuc().http_post(url, request_body_json, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
# 断言
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
data1 = commonFuc().analysis_json('data', data)
# print(len(data1))
if code == 0 and data == 1:
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
test1()
# -*- encoding=utf8 -*-
import sys
from airtest.core.helper import using
from common.db.sql.sql_del_branch_info import delData
from common.db.sql.sql_del_kind_goodsinfo import delKindGoodsinfo
from common.db.sql.sql_del_notices_info import delByNoticeName
from common.fileUtls import FileUtils
from common.timeUtils import timeUtils
__author__ = "xiaohesheng"
"""
case_tag:api,herp-web,q2科室管理_科室产品分配_请领模板维护_编辑产品,id2263,id2263-194,sit,on
内网:q2科室管理_科室产品分配_请领模板维护_编辑产品
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:q2科室管理_科室产品分配_请领模板维护_编辑产品
用例名称:q2科室管理_科室产品分配_请领模板维护_编辑产品
输入:""
输出:"rtn_msg": {"code": 0, "msg": null, "data":[]}
"""
# 内网登录
username = commonFuc().get_business_data(module, "username")
# # print('医院名称',username)
password = commonFuc().get_business_data(module, "password")
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token, projectCode, uxid, corpId, info = login_system(username, password).get_token()
# print( token,projectCode,uxid,corpId,info)
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
from p4科室管理_科室产品分配_请领模板维护_模板列表查询 import test1
id1 = test1()
print(id1)
#查询产品获取id
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "basic_goodsPurTemplateGoods_page_url")
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
commonFuc().get_business_data(module, "X-APP-CODE"))
# branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
request_body = commonFuc().get_business_data(module, "payload59_14", id1)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
id2=commonFuc().analysis_json('id',commonFuc().analysis_json('data',commonFuc().analysis_json('data', result)))
print('id2',id2)
#=====================分割线========================================
# q2科室管理_科室产品分配_请领模板维护_编辑产品
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "basic_goodsPurTemplateGoods_updateById_url")
# url=url+id1
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
commonFuc().get_business_data(module, "X-APP-CODE"))
# branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
# str = commonFuc().get_business_data(module, 'data3')
# list2 = list(str.split(","))
# print(list2)
# #获取日期
# date1=timeUtils().get_time_hms(2)
# date2=timeUtils().get_time_hms(2)
# for i in list2:
# dept2_id = FileUtils().r_info(module, '科室信息')["dept2_id"]
# 请求体
request_body = commonFuc().get_business_data(module, "payload59_15", id2)
# request_body='['+str(request_body)+']'
# new_request_body = request_body.replace("'", '"')
# print(new_request_body)
# import json
# request_body_json = json.loads(new_request_body)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
# 断言
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
data1 = commonFuc().analysis_json('data', data)
# print(len(data1))
if code == 0 and data == 1:
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
test1()
# -*- encoding=utf8 -*-
import sys
from airtest.core.helper import using
from common.db.sql.sql_del_branch_info import delData
from common.db.sql.sql_del_kind_goodsinfo import delKindGoodsinfo
from common.db.sql.sql_del_notices_info import delByNoticeName
from common.fileUtls import FileUtils
from common.timeUtils import timeUtils
__author__ = "xiaohesheng"
"""
case_tag:api,herp-web,q3科室管理_科室产品分配_请领模板维护_产品页面查询_查询全部,id2263,id2263-195,sit,on
内网:q3科室管理_科室产品分配_请领模板维护_产品页面查询_查询全部
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:p7科室管理_科室产品分配_请领模板维护_添加产品子页面_查询全部
用例名称:p7科室管理_科室产品分配_请领模板维护_添加产品子页面_查询全部
输入:""
输出:"rtn_msg": {"code": 0, "msg": null, "data":51660462cb564f2e84e93d70661f3ec8}
"""
# 内网登录
username = commonFuc().get_business_data(module, "username")
# # print('医院名称',username)
password = commonFuc().get_business_data(module, "password")
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token, projectCode, uxid, corpId, info = login_system(username, password).get_token()
# print( token,projectCode,uxid,corpId,info)
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
from p4科室管理_科室产品分配_请领模板维护_模板列表查询 import test1
id1 = test1()
print(id1)
# q3科室管理_科室产品分配_请领模板维护_产品页面查询_查询全部
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "basic_goodsPurTemplateGoods_page_url")
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
commonFuc().get_business_data(module, "X-APP-CODE"))
# branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
request_body = commonFuc().get_business_data(module, "payload59_14", id1)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
id2 = commonFuc().analysis_json('id', commonFuc().analysis_json('data', commonFuc().analysis_json('data', result)))
print('id2', id2)
# 断言
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
if code == 0 and len(data) >= 1:
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
test1()
# -*- encoding=utf8 -*-
import sys
from airtest.core.helper import using
from common.db.sql.sql_del_branch_info import delData
from common.db.sql.sql_del_kind_goodsinfo import delKindGoodsinfo
from common.db.sql.sql_del_notices_info import delByNoticeName
from common.fileUtls import FileUtils
from common.timeUtils import timeUtils
__author__ = "xiaohesheng"
"""
case_tag:api,herp-web,q4科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询,id2263,id2263-196,sit,on
内网:q4科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:q4科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询
用例名称:q4科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询
输入:""
输出:"rtn_msg": {"code": 0, "msg": null, "data":51660462cb564f2e84e93d70661f3ec8}
"""
# 内网登录
username = commonFuc().get_business_data(module, "username")
# # print('医院名称',username)
password = commonFuc().get_business_data(module, "password")
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token, projectCode, uxid, corpId, info = login_system(username, password).get_token()
# print( token,projectCode,uxid,corpId,info)
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
from p4科室管理_科室产品分配_请领模板维护_模板列表查询 import test1
id1 = test1()
print(id1)
# q4科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询
url = commonFuc().get_api_url() + commonFuc().get_business_data(module,
"basic_goodsPurTemplateGoods_page_url")
# url=url+id1
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
commonFuc().get_business_data(module, "X-APP-CODE"))
# branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
# str = commonFuc().get_business_data(module, 'data3')
# list2 = list(str.split(","))
# print(list2)
# #获取日期
# date1=timeUtils().get_time_hms(2)
# date2=timeUtils().get_time_hms(2)
# for i in list2:
# dept2_id = FileUtils().r_info(module, '科室信息')["dept2_id"]
# 请求体
# for i in list2:
#查询条件全部输入
request_body = commonFuc().get_business_data(module, "payload59_16", id1)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
# 断言
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
goodsName = commonFuc().analysis_json('goodsName', data)
if code == 0 and len(data) >= 1 and goodsName=="一次性使用无菌手术包":
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
#查询条件输入产品名称
request_body = commonFuc().get_business_data(module, "payload59_17", id1)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
# 断言
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
goodsName = commonFuc().analysis_json('goodsName', data)
if code == 0 and len(data) >= 1 and goodsName == "一次性使用无菌手术包":
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
#规格型号输入
request_body = commonFuc().get_business_data(module, "payload59_18", id1)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
# 断言
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
goodsName = commonFuc().analysis_json('goodsName', data)
if code == 0 and len(data) >= 1 and goodsName == "一次性使用无菌手术包":
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
# 耗材类型输入
str = commonFuc().get_business_data(module, 'data11')
list2 = list(str.split(","))
print(list2)
for i in list2:
request_body = commonFuc().get_business_data(module, "payload59_19", id1,i)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
# 断言
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
goodsName = commonFuc().analysis_json('goodsName', data)
if code == 0 and len(data) >= 0:
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
test1()
# -*- encoding=utf8 -*-
import sys
from airtest.core.helper import using
from common.db.sql.sql_del_branch_info import delData
from common.db.sql.sql_del_kind_goodsinfo import delKindGoodsinfo
from common.db.sql.sql_del_notices_info import delByNoticeName
from common.fileUtls import FileUtils
from common.timeUtils import timeUtils
__author__ = "xiaohesheng"
"""
case_tag:api,herp-web,q5科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询_异常场景,id2263,id2263-197,sit,on
内网:q5科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询_异常场景
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:q5科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询_异常场景
用例名称:q5科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询_异常场景
输入:""
输出:"rtn_msg": {"code": 0, "msg": null, "data":51660462cb564f2e84e93d70661f3ec8}
"""
# 内网登录
username = commonFuc().get_business_data(module, "username")
# # print('医院名称',username)
password = commonFuc().get_business_data(module, "password")
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token, projectCode, uxid, corpId, info = login_system(username, password).get_token()
# print( token,projectCode,uxid,corpId,info)
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
from p4科室管理_科室产品分配_请领模板维护_模板列表查询 import test1
id1 = test1()
print(id1)
# q5科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询_异常场景
url = commonFuc().get_api_url() + commonFuc().get_business_data(module,
"basic_goodsPurTemplateGoods_page_url")
# url=url+id1
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
commonFuc().get_business_data(module, "X-APP-CODE"))
# branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
str = commonFuc().get_business_data(module, 'data3')
list2 = list(str.split(","))
print(list2)
# #获取日期
# date1=timeUtils().get_time_hms(2)
# date2=timeUtils().get_time_hms(2)
# for i in list2:
# dept2_id = FileUtils().r_info(module, '科室信息')["dept2_id"]
# 请求体
for i in list2:
#查询条件输入产品名称
request_body = commonFuc().get_business_data(module, "payload59_20", id1,i)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
# 断言
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
data1 = commonFuc().analysis_json('data', data)
if code == 0 and len(data1) == 0:
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
#规格型号输入
request_body = commonFuc().get_business_data(module, "payload59_21", id1,i)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
# 断言
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
data1 = commonFuc().analysis_json('data', data)
if code == 0 and len(data1) == 0 :
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
# 耗材类型输入
# str = commonFuc().get_business_data(module, 'data11')
# list3 = list(str.split(","))
# print(list3)
request_body = commonFuc().get_business_data(module, "payload59_22", id1,i)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
# 断言
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
data1 = commonFuc().analysis_json('data', data)
if code == 0 and len(data1) == 0:
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
test1()
# -*- encoding=utf8 -*-
import sys
from airtest.core.helper import using
from common.db.sql.sql_del_branch_info import delData
from common.db.sql.sql_del_kind_goodsinfo import delKindGoodsinfo
from common.db.sql.sql_del_notices_info import delByNoticeName
from common.fileUtls import FileUtils
from common.timeUtils import timeUtils
__author__ = "xiaohesheng"
"""
case_tag:api,herp-web,q3科室管理_科室产品分配_请领模板维护_移除产品,id2263,id2263-198,sit,on
内网:q3科室管理_科室产品分配_请领模板维护_移除产品
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:q3科室管理_科室产品分配_请领模板维护_移除产品
用例名称:q3科室管理_科室产品分配_请领模板维护_移除产品
输入:""
输出:"rtn_msg": {"code": 0, "msg": null, "data":[]}
"""
# 内网登录
username = commonFuc().get_business_data(module, "username")
# # print('医院名称',username)
password = commonFuc().get_business_data(module, "password")
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token, projectCode, uxid, corpId, info = login_system(username, password).get_token()
# print( token,projectCode,uxid,corpId,info)
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\p4科室管理_科室产品分配_请领模板维护_模板列表查询.air')
from p4科室管理_科室产品分配_请领模板维护_模板列表查询 import test1
id1 = test1()
print(id1)
#查询产品获取id
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "basic_goodsPurTemplateGoods_page_url")
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
commonFuc().get_business_data(module, "X-APP-CODE"))
# branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
request_body = commonFuc().get_business_data(module, "payload59_14", id1)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
id2=commonFuc().analysis_json('id',commonFuc().analysis_json('data',commonFuc().analysis_json('data', result)))
print('id2',id2)
#=====================分割线========================================
# q2科室管理_科室产品分配_请领模板维护_移除产品
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "basic_goodsPurTemplateGoods_deleteById_url")
url=url+id2
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
commonFuc().get_business_data(module, "X-APP-CODE"))
# branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
# str = commonFuc().get_business_data(module, 'data3')
# list2 = list(str.split(","))
# print(list2)
# #获取日期
# date1=timeUtils().get_time_hms(2)
# date2=timeUtils().get_time_hms(2)
# for i in list2:
# dept2_id = FileUtils().r_info(module, '科室信息')["dept2_id"]
# 请求体
# request_body = commonFuc().get_business_data(module, "payload59_15", id2)
# request_body='['+str(request_body)+']'
# new_request_body = request_body.replace("'", '"')
# print(new_request_body)
# import json
# request_body_json = json.loads(new_request_body)
# # # 发送请求
result = commonFuc().http_delte(url, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
# 断言
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
data1 = commonFuc().analysis_json('data', data)
# print(len(data1))
if code == 0 and data == 1:
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
test1()
...@@ -77,8 +77,10 @@ ...@@ -77,8 +77,10 @@
"basic_goodsPurTemplate_updateById_url": "/api/herpService/basic/goodsPurTemplate/updateById" "basic_goodsPurTemplate_updateById_url": "/api/herpService/basic/goodsPurTemplate/updateById"
"basic_goodsPurTemplate_deleteById_url": "/api/herpService/basic/goodsPurTemplate/deleteById?id=" "basic_goodsPurTemplate_deleteById_url": "/api/herpService/basic/goodsPurTemplate/deleteById?id="
"basic_mcmsDeptGoodsInfo_queryGoodsByDeptTemplate_url": "/api/herpService/basic/mcmsDeptGoodsInfo/queryGoodsByDeptTemplate" "basic_mcmsDeptGoodsInfo_queryGoodsByDeptTemplate_url": "/api/herpService/basic/mcmsDeptGoodsInfo/queryGoodsByDeptTemplate"
"basic_goodsPurTemplateGoods_insert_url": "/api/herpService/basic/goodsPurTemplateGoods/insert"
"basic_goodsPurTemplateGoods_page_url": "/api/herpService/basic/goodsPurTemplateGoods/page"
"basic_goodsPurTemplateGoods_updateById_url": "/api/herpService/basic/goodsPurTemplateGoods/updateById"
"basic_goodsPurTemplateGoods_deleteById_url": "/api/herpService/basic/goodsPurTemplateGoods/deleteById/"
"basic_stockInfo_stockTree": "/api/herpService/basic/stockInfo/stockTree" "basic_stockInfo_stockTree": "/api/herpService/basic/stockInfo/stockTree"
data1: '条码,high_info,check_detail,高值打码,out_stock,goods_change_baseInfo,center_out_stock_pkg,mcms_centre_out_stock,pkg_info,mcms_dept_out_stock,barcode_common,mcms_centre_in_stock,goods_change_price,mcms_dept_in_stock,check_detail_pkg,center_out_stock_high,center_out_stock_high,high_consume,shelf_code,barcode_common_pkg,check_detail_high,balance_bill,barcode_rfid,bottle_info,验收单明细打印,产品信息变更,中心库出库单低值,医院中心库出库单,包信息,医院科室出库单,高值纸质条码打印,医院中心库入库单,产品调价,医院科室入库单,低值验收单,中心库出库单高值,高值耗材使用登记表,货位码,单元包纸质条码打印,高值验收单,结算单打印,高值RFID条码打印,单瓶码打印' data1: '条码,high_info,check_detail,高值打码,out_stock,goods_change_baseInfo,center_out_stock_pkg,mcms_centre_out_stock,pkg_info,mcms_dept_out_stock,barcode_common,mcms_centre_in_stock,goods_change_price,mcms_dept_in_stock,check_detail_pkg,center_out_stock_high,center_out_stock_high,high_consume,shelf_code,barcode_common_pkg,check_detail_high,balance_bill,barcode_rfid,bottle_info,验收单明细打印,产品信息变更,中心库出库单低值,医院中心库出库单,包信息,医院科室出库单,高值纸质条码打印,医院中心库入库单,产品调价,医院科室入库单,低值验收单,中心库出库单高值,高值耗材使用登记表,货位码,单元包纸质条码打印,高值验收单,结算单打印,高值RFID条码打印,单瓶码打印'
...@@ -404,6 +406,18 @@ json_headers2: { ...@@ -404,6 +406,18 @@ json_headers2: {
"payload59_10": {"queryObject":{"deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","hosId":"h0347","goodsMfrsName":"国药集团浙江医疗器材有限公司","goodsName":"%s","goodsSpec":"B型"},"pageNum":1,"pageSize":50} "payload59_10": {"queryObject":{"deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","hosId":"h0347","goodsMfrsName":"国药集团浙江医疗器材有限公司","goodsName":"%s","goodsSpec":"B型"},"pageNum":1,"pageSize":50}
"payload59_11": {"queryObject":{"deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","hosId":"h0347","goodsMfrsName":"","goodsName":"","goodsSpec":"%s"},"pageNum":1,"pageSize":50} "payload59_11": {"queryObject":{"deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","hosId":"h0347","goodsMfrsName":"","goodsName":"","goodsSpec":"%s"},"pageNum":1,"pageSize":50}
"payload59_12": {"queryObject":{"deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","hosId":"h0347","goodsMfrsName":"%s","goodsName":"","goodsSpec":""},"pageNum":1,"pageSize":50} "payload59_12": {"queryObject":{"deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","hosId":"h0347","goodsMfrsName":"%s","goodsName":"","goodsSpec":""},"pageNum":1,"pageSize":50}
"payload59_13": {"tempId":"%s","deptGoodsId":"c10e07057ee244999890078c9e1fdbd4","goodsNum":1,"hosId":"h0347","tbStatus":1}
"payload59_14": {"queryObject":{"branchId":"h0347-2011","deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","goodsName":"","goodsSpec":"","purModes":[],"hosId":"h0347"},"pageNum":1,"pageSize":50}
"payload59_15": {"id":"%s","goodsNum":3}
"payload59_16": {"queryObject":{"branchId":"h0347-2011","deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","goodsName":"00001743","goodsSpec":"B型","purModes":["10"],"hosId":"h0347"},"pageNum":1,"pageSize":50}
"payload59_17": {"queryObject":{"branchId":"h0347-2011","deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","goodsName":"一次性使用无菌手术包","goodsSpec":"B型","purModes":["10"],"hosId":"h0347"},"pageNum":1,"pageSize":50}
"payload59_18": {"queryObject":{"branchId":"h0347-2011","deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","goodsName":"","goodsSpec":"B型","purModes":["10"],"hosId":"h0347"},"pageNum":1,"pageSize":50}
"payload59_19": {"queryObject":{"branchId":"h0347-2011","deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","goodsName":"","goodsSpec":"","purModes":["%s"],"hosId":"h0347"},"pageNum":1,"pageSize":50}
"payload59_20": {"queryObject":{"branchId":"h0347-2011","deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","goodsName":"%s","goodsSpec":"B型","purModes":["10"],"hosId":"h0347"},"pageNum":1,"pageSize":50}
"payload59_21": {"queryObject":{"branchId":"h0347-2011","deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","goodsName":"一次性使用无菌手术包","goodsSpec":"%s","purModes":["10"],"hosId":"h0347"},"pageNum":1,"pageSize":50}
"payload59_22": {"queryObject":{"branchId":"h0347-2011","deptId":"d69a68df361a4289b2262e4ef75b55a5","tempId":"%s","goodsName":"一次性使用无菌手术包","goodsSpec":"B型","purModes":["%s"],"hosId":"h0347"},"pageNum":1,"pageSize":50}
"payload60": {"hosId":"h0347","stockCode":"%s"} "payload60": {"hosId":"h0347","stockCode":"%s"}
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<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'>1</td> <td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>0分7</td> <td class='details-col-elapsed'>0分8</td>
<td class="details-col-elapsed">100.0%</td> <td class="details-col-elapsed">100.0%</td>
</tr> </tr>
</table> </table>
...@@ -72,9 +72,9 @@ ...@@ -72,9 +72,9 @@
</tr> </tr>
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/q0科室管理_科室产品分配_请领模板维护_添加产品页面_条件查询_异常测试/log.html' target='_blank'>q0科室管理_科室产品分配_请领模板维护_添加产品页面_条件查询_异常测试</a></td> <td class="details-col-elapsed"><a href='../log/q5科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询_异常场景/log.html' target='_blank'>q5科室管理_科室产品分配_请领模板维护_产品页面查询_条件查询_异常场景</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">7.718</td> <td class="details-col-elapsed">8.046</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </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