Commit 3136b2e6 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

基础设置模块-运维管理-编码规则管理添加

parent 75d4a897
# -*- 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,l1运维管理_编码规则管理_编码规则列表查询,id2263,id2263-127,sit,on
内网:l1运维管理_编码规则管理_编码规则列表查询
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:l1运维管理_编码规则管理_编码规则列表查询
用例名称:l1运维管理_编码规则管理_编码规则列表查询
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
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)
#l1运维管理_编码规则管理_编码规则列表查询
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "sysrAtomHead_listVo_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, "payload53")
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
code=commonFuc().analysis_json('code',result)
data=commonFuc().analysis_json('data',result)
total=commonFuc().analysis_json('total',data)
if code==0 and data!=None:
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,l2运维管理_编码规则管理_编码规则列表_条件查询,id2263,id2263-128,sit,on
内网:l2运维管理_编码规则管理_编码规则列表_条件查询
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:l2运维管理_编码规则管理_编码规则列表_条件查询
用例名称:l2运维管理_编码规则管理_编码规则列表_条件查询
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
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)
#l2运维管理_编码规则管理_编码规则列表_条件查询
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "sysrAtomHead_listVo_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"]
str = commonFuc().get_business_data(module, 'data5')
list2 = list(str.split(","))
print(list2)
# #请求体
for i in list2:
request_body = commonFuc().get_business_data(module, "payload53_1",i)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
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,l2运维管理_编码规则管理_编码规则列表_模糊查询,id2263,id2263-129,sit,on
内网:l2运维管理_编码规则管理_编码规则列表_模糊查询
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:l2运维管理_编码规则管理_编码规则列表_模糊查询
用例名称:l2运维管理_编码规则管理_编码规则列表_模糊查询
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
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)
#l2运维管理_编码规则管理_编码规则列表_模糊查询
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "sysrAtomHead_listVo_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"]
str = commonFuc().get_business_data(module, 'data6')
list2 = list(str.split(","))
print(list2)
# #请求体
for i in list2:
request_body = commonFuc().get_business_data(module, "payload53_1",i)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
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,l3运维管理_编码规则管理_编码规则列表_异常查询,id2263,id2263-130,sit,on
内网:l3运维管理_编码规则管理_编码规则列表_异常查询
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:l3运维管理_编码规则管理_编码规则列表_异常查询
用例名称:l3运维管理_编码规则管理_编码规则列表_异常查询
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
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)
#l3运维管理_编码规则管理_编码规则列表_异常查询
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "sysrAtomHead_listVo_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"]
str = commonFuc().get_business_data(module, 'data3')
list2 = list(str.split(","))
print(list2)
# #请求体
for i in list2:
request_body = commonFuc().get_business_data(module, "payload53_1",i)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
code=commonFuc().analysis_json('code',result)
data=commonFuc().analysis_json('data',result)
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,l4运维管理_编码规则管理_编码规则编辑,id2263,id2263-131,sit,on
内网:l4运维管理_编码规则管理_编码规则编辑
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:l4运维管理_编码规则管理_编码规则编辑
用例名称:l4运维管理_编码规则管理_编码规则编辑
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
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)
#l4运维管理_编码规则管理_编码规则编辑
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "sysrAtomHead_updateById_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, "payload53_2")
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
code=commonFuc().analysis_json('code',result)
data=commonFuc().analysis_json('data',result)
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,l5运维管理_编码规则管理_规则编码查询,id2263,id2263-132,sit,on
内网:l5运维管理_编码规则管理_规则编码查询
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:l5运维管理_编码规则管理_规则编码查询
用例名称:l5运维管理_编码规则管理_规则编码查询
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
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)
#l5运维管理_编码规则管理_规则编码查询
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "sysrAtomDet_listVoPage_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, "payload53_3")
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
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,l6运维管理_编码规则管理_规则编码编辑,id2263,id2263-133,sit,on
内网:l6运维管理_编码规则管理_规则编码编辑
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:l6运维管理_编码规则管理_规则编码编辑
用例名称:l6运维管理_编码规则管理_规则编码编辑
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
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)
#l6运维管理_编码规则管理_规则编码编辑
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "sysrAtomDet_updateById_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, "payload53_4")
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
code=commonFuc().analysis_json('code',result)
data=commonFuc().analysis_json('data',result)
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,l7运维管理_编码规则管理_规则编码_新增,id2263,id2263-134,sit,on
内网:l7运维管理_编码规则管理_规则编码_新增
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:l7运维管理_编码规则管理_规则编码_新增
用例名称:l7运维管理_编码规则管理_规则编码_新增
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
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)
#l7运维管理_编码规则管理_规则编码_新增
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "sysrAtomDet_insert_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, "payload53_5")
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
code=commonFuc().analysis_json('code',result)
data=commonFuc().analysis_json('data',result)
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,l8运维管理_编码规则管理_规则编码_查询id,id2263,id2263-135,sit,on
内网:l8运维管理_编码规则管理_规则编码_查询id
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:l8运维管理_编码规则管理_规则编码_查询id
用例名称:l8运维管理_编码规则管理_规则编码_查询id
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
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)
#l8运维管理_编码规则管理_规则编码_查询id
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "sysrAtomDet_listVoPage_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, "payload53_6")
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
code=commonFuc().analysis_json('code',result)
data=commonFuc().analysis_json('data',result)
data1=commonFuc().analysis_json('data',data)
prefix=commonFuc().analysis_json('prefix',data1[1])
if code==0 and len(data)>=1 and prefix=="YS2":
id1=commonFuc().analysis_json('id',data1[1])
code1=commonFuc().analysis_json('code',data1[1])
commonFuc().check_text_exist(0, result)
print(id1,code1)
return id1,code1
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,l8运维管理_编码规则管理_规则编码_禁用,id2263,id2263-136,sit,on
内网:l8运维管理_编码规则管理_规则编码_禁用
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:l8运维管理_编码规则管理_规则编码_禁用
用例名称:l8运维管理_编码规则管理_规则编码_禁用
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
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)
#l8运维管理_编码规则管理_规则编码_禁用
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "sysrAtomDet_updateById_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"]
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\l8运维管理_编码规则管理_规则编码_查询id.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\l8运维管理_编码规则管理_规则编码_查询id.air')
from l8运维管理_编码规则管理_规则编码_查询id import test1
id1,code1 = test1()
print(id1,code1)
#
# #请求体
request_body = commonFuc().get_business_data(module, "payload53_7",id1,code1)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
code=commonFuc().analysis_json('code',result)
data=commonFuc().analysis_json('data',result)
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,l9运维管理_编码规则管理_规则编码_启用,id2263,id2263-137,sit,on
内网:l9运维管理_编码规则管理_规则编码_启用
"""
from common.common_func import commonFuc
from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system
module = "b2_herp3_bs"
def test1():
"""
场景:l9运维管理_编码规则管理_规则编码_启用
用例名称:l9运维管理_编码规则管理_规则编码_启用
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
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)
#l9运维管理_编码规则管理_规则编码_启用
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "sysrAtomDet_updateById_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"]
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\l8运维管理_编码规则管理_规则编码_查询id.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\l8运维管理_编码规则管理_规则编码_查询id.air')
from l8运维管理_编码规则管理_规则编码_查询id import test1
id1,code1 = test1()
print(id1,code1)
#
# #请求体
request_body = commonFuc().get_business_data(module, "payload53_8",id1,code1)
# # # 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('resultaaaaaaaaaaaaaaaaaaaaaaaaaaa', result)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
code=commonFuc().analysis_json('code',result)
data=commonFuc().analysis_json('data',result)
if code==0 and data==1:
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
test1()
#删除规则编码记录
delData().Delete_sysrAtomDet()
\ No newline at end of file
......@@ -40,7 +40,17 @@ class delData(object):
cursor.execute("commit;")
print('院区参数信息已经删除成功 ')
cursor.close()
def Delete_sysrAtomDet(self):
connection = pymysql.connect(host="10.17.65.108", user="root", password="Cmic.2023", database="spd3_herp_test2",
charset="utf8")
cursor = connection.cursor()
# 删除产品信息修改数据
sql = "delete from sysr_atom_det where create_user='UID-050151';"
print(sql)
cursor.execute(sql)
cursor.execute("commit;")
print('院区参数信息已经删除成功 ')
cursor.close()
# delData().Delete_branch_by_id()
# delData().Delete_goods_change_info()
# delData().Delete_sys_config()
\ No newline at end of file
......@@ -44,17 +44,23 @@
"sysConfig_insert_url": "/hospitaltest2api/herpService/basic/sysConfig/insert"
"sysConfig_updateById_url": "/hospitaltest2api/herpService/basic/sysConfig/updateById"
"sysrPrintHead_url": "/hospitaltest2api/platformService/sysrPrintHead/listVo"
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条码打印,单瓶码打印'
"sysrPrintHead_listVoPage_url": "/hospitaltest2api/platformService/sysrPrint/listVoPage"
"sysrPrint_updateById_url": "/hospitaltest2api/platformService/sysrPrint/updateById"
"dict_list_page_url": "/hospitaltest2api/platformService/dict/list/page"
"value_list_page_url": "/hospitaltest2api/platformService/dict/value/list"
"sysDictValue_updateById_url": "/hospitaltest2api/platformService/basic/sysDictValue/updateById"
"sysrAtomHead_listVo_url": "/hospitaltest2api/herpService/sysrAtomHead/listVo"
"sysrAtomHead_updateById_url": "/hospitaltest2api/herpService/sysrAtomHead/updateById"
"sysrAtomDet_listVoPage_url": "/hospitaltest2api/herpService/sysrAtomDet/listVoPage"
"sysrAtomDet_updateById_url": "/hospitaltest2api/herpService/sysrAtomDet/updateById"
"sysrAtomDet_insert_url": "/hospitaltest2api/herpService/sysrAtomDet/insert"
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条码打印,单瓶码打印'
data2: 'code,医院标识,code1,code1,erpCode,JDE编码修改,GOODS_CHANGE_STATUS,产品信息变更状态,GOODS_CHARGE_COST,是否计入成本,GOODS_KIND_TYPE,产品分类类型,MFRS_KIND,企业职能,miCode,医保编码修改,NOTICE_RANGE_KIND,公告通知范围,PUR_MODE,耗材类型,YWMS,业务模式,CORP_TYPE,主体类别,PROGRAM_TYPE,程序端,GRAIN,参数粒度,ENV,发布环境,PROJECT_GROUP,系统分组,RETURN_REASON_TYPE,退货原因,NEWCPFL,新产品分类,ZZLX,企业证照类型,68FL,68器械分类,18FL,18器械分类,GOODS_START_STOP,产品启停,YYDJ,医院等级,GOODS_TEMP,产品临采,GLJB,耗材管理级别,GOODS_PURCHASE,产品是否采购,HIS_CODE_CHANGE,HIS编码修改,MI_CODE_CHANGE,医保型号修改,MI_GOODS_GG_CHANGE,医保产品规格,MI_GOODS_XH_CHANGE,医保型号修改,GOODS_CHARGE,产品是否计费,GOODS_BAR_CODE,产品管理模式,GOODS_PUR_MODE,耗材类型,GOODS_CHANGE_PRICE,产品调价类型,GOODS_BAR_CODE_STRATEGY,UDI管理策略,FOCUS_CONTROL_TYPE,重点管控分类,MANUAL_PICK_REASON,手工出库原因,RFID_LABEL_CHANGE,RFID标签管理,ALLOT_PICK_REASON,调拨出库原因,MAGRE_PICK_REASON,移库出库原因'
data3: "abcxxedd,1234456,',!@#$%,select,where 1=1"
data4: "名称,code,code1,1"
data5: "mcms_performance_verify_no,试剂性能验证单号,mcms_check_no,验收单号,mcms_dept_buy_no,请领单号,mcms_goods_chg_main_no,产品信息变更单NO,mcms_init_stock_no,期初单单号,mcms_operation_apply_no,手术申请单号,mcms_operation_notice_no,手术通知单号,mcms_pick_no,拣货单号,mcms_psi_dept_no,科室出入库单NO,mcms_psi_no,出入库单NO,mcms_pur_no,采购单号,mcms_pur_plan_no,采购计划单号"
data6: "mcms,试剂性能,check_no,收单号,dept,单,_,NO,tock_no,期初单,peration_,手术申,mcms_operation,号,no,拣货,psi,出入库单NO,mcms_psi_no,出入库单NO,mcms_pur_no,采购单号,mcms_pur_plan_no,采购计划"
"username": "xhs1009"
"password": "1qaz!QAZ"
......@@ -301,7 +307,15 @@ json_headers2: {
"payload52_2": {"dictId":"code","cname":"%s","val":""}
"payload52_3": {"id":"da6a0e97d4d94aa8aa746427014b12c3","enableFlag":0}
"payload52_4": {"id":"da6a0e97d4d94aa8aa746427014b12c3","enableFlag":1}
"payload53": {"nameOrCode":""}
"payload53_1": {"nameOrCode":"%s"}
"payload53_2": {"id":"415242cfc2db4db5929947f53987f5ab","name":"试剂性能验证单号","code":"mcms_performance_verify_no","remark":"试剂性能验证单号"}
"payload53_3": {"orderBy":"","pageNum":1,"pageSize":50,"predicate":"","queryObject":{"pcode":"mcms_check_no","code":"mcms_check_no"}}
"payload53_4": {"id":"56c79934841a488e95beb6005c7edea3","code":"mcms_check_no.00036","enableFlag":1,"example":"YS240126001","format":"%{yyMMdd}%03d","pcode":"mcms_check_no","prefix":"YS","remark":"","suffix":""}
"payload53_5": {"code":"","example":"","format":"%{yyMMdd}%03d","pcode":"mcms_check_no","prefix":"YS2","remark":"","suffix":""}
"payload53_6": {"orderBy":"","pageNum":1,"pageSize":50,"predicate":"","queryObject":{"pcode":"mcms_check_no","code":""}}
"payload53_7": {"id":"%s","code":"%s","enableFlag":0,"example":"YS2240129001","format":"{yyMMdd}03d","pcode":"mcms_check_no","prefix":"YS2","remark":"","suffix":""}
"payload53_8": {"id":"%s","code":"%s","enableFlag":1,"example":"YS2240129001","format":"{yyMMdd}03d","pcode":"mcms_check_no","prefix":"YS2","remark":"","suffix":""}
checkDict: {"code": 0,'msg': None,'data': True}
checkDict1: {
......
......@@ -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'>0分8</td>
<td class="details-col-elapsed">0.0%</td>
<td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>0分3</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/a3订单配送提交_3_0医院/log.html' target='_blank'>a3订单配送提交_3_0医院</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">8.736</td>
<td class="details-col-elapsed"><a href='../log/l9运维管理_编码规则管理_规则编码_启用/log.html' target='_blank'>l9运维管理_编码规则管理_规则编码_启用</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">3.557</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