diff --git "a/air_case/a6_mdm3_dp/a3\350\256\242\345\215\225\351\205\215\351\200\201\346\217\220\344\272\244_3_0\345\214\273\351\231\242.air/a3\350\256\242\345\215\225\351\205\215\351\200\201\346\217\220\344\272\244_3_0\345\214\273\351\231\242.py" "b/air_case/a6_mdm3_dp/a3\350\256\242\345\215\225\351\205\215\351\200\201\346\217\220\344\272\244_3_0\345\214\273\351\231\242.air/a3\350\256\242\345\215\225\351\205\215\351\200\201\346\217\220\344\272\244_3_0\345\214\273\351\231\242.py" index dd1dba6b78933b8769383967f249af5b8b2e668c..38f59fccb6b87f44cf37832b5d83f91220dc705f 100644 --- "a/air_case/a6_mdm3_dp/a3\350\256\242\345\215\225\351\205\215\351\200\201\346\217\220\344\272\244_3_0\345\214\273\351\231\242.air/a3\350\256\242\345\215\225\351\205\215\351\200\201\346\217\220\344\272\244_3_0\345\214\273\351\231\242.py" +++ "b/air_case/a6_mdm3_dp/a3\350\256\242\345\215\225\351\205\215\351\200\201\346\217\220\344\272\244_3_0\345\214\273\351\231\242.air/a3\350\256\242\345\215\225\351\205\215\351\200\201\346\217\220\344\272\244_3_0\345\214\273\351\231\242.py" @@ -54,7 +54,7 @@ def select1(): commonFuc().check_text_exist('00001977', result) else: commonFuc().check_text_exist('error', result) - # check_dict=commonFuc().get_business_data(module,'checkDict4') - # commonFuc().check_result(check_dict,result) + check_dict=commonFuc().get_business_data(module,'checkDict4') + commonFuc().check_result(check_dict,result) select1() diff --git "a/air_case/b2_herp3_bs/g8_1\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\347\273\223\347\256\227.air/g8_1\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\347\273\223\347\256\227.py" "b/air_case/b2_herp3_bs/g8_1\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\347\273\223\347\256\227.air/g8_1\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\347\273\223\347\256\227.py" index 0bc3c83018c30f53beb267c994cc344ec034fb32..cfae02622951b1564a57b4203388980fe9a3aa46 100644 --- "a/air_case/b2_herp3_bs/g8_1\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\347\273\223\347\256\227.air/g8_1\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\347\273\223\347\256\227.py" +++ "b/air_case/b2_herp3_bs/g8_1\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\347\273\223\347\256\227.air/g8_1\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\347\273\223\347\256\227.py" @@ -41,7 +41,7 @@ def test1(): headers = commonFuc().get_business_data(module, "json_headers2", commonFuc().get_business_data(module, "json_contentType"), token, commonFuc().get_business_data(module, "X-APP-CODE")) - # # 获取结算id + # # 获取id pro_path = commonFuc().get_pro_path() sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g7_批量导入_查询产品信息.air') using(pro_path + r'\\air_case\\b2_herp3_bs\\g7_批量导入_查询产品信息.air') diff --git "a/air_case/b2_herp3_bs/g8_2\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\215\347\273\223\347\256\227.air/g8_2\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\215\347\273\223\347\256\227.py" "b/air_case/b2_herp3_bs/g8_2\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\215\347\273\223\347\256\227.air/g8_2\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\215\347\273\223\347\256\227.py" index f3f471009eac08387148733b8c96fd32c01ece4d..3c243e20e5a99ff59ac1502c64074af0ee669320 100644 --- "a/air_case/b2_herp3_bs/g8_2\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\215\347\273\223\347\256\227.air/g8_2\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\215\347\273\223\347\256\227.py" +++ "b/air_case/b2_herp3_bs/g8_2\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\215\347\273\223\347\256\227.air/g8_2\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\215\347\273\223\347\256\227.py" @@ -41,7 +41,7 @@ def test1(): headers = commonFuc().get_business_data(module, "json_headers2", commonFuc().get_business_data(module, "json_contentType"), token, commonFuc().get_business_data(module, "X-APP-CODE")) - # # 获取结算id + # # 获取id pro_path = commonFuc().get_pro_path() sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g7_批量导入_查询产品信息.air') using(pro_path + r'\\air_case\\b2_herp3_bs\\g7_批量导入_查询产品信息.air') diff --git "a/air_case/b2_herp3_bs/g8_3\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\346\266\210\350\200\227\347\273\223\347\256\227.air/g8_3\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\346\266\210\350\200\227\347\273\223\347\256\227.py" "b/air_case/b2_herp3_bs/g8_3\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\346\266\210\350\200\227\347\273\223\347\256\227.air/g8_3\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\346\266\210\350\200\227\347\273\223\347\256\227.py" index 1541544c5d1ae4f7d6427732fdb1278d7a4bf1a2..9fd5b37c9acf948693828435da41b9c9edd176a5 100644 --- "a/air_case/b2_herp3_bs/g8_3\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\346\266\210\350\200\227\347\273\223\347\256\227.air/g8_3\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\346\266\210\350\200\227\347\273\223\347\256\227.py" +++ "b/air_case/b2_herp3_bs/g8_3\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\346\266\210\350\200\227\347\273\223\347\256\227.air/g8_3\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\346\266\210\350\200\227\347\273\223\347\256\227.py" @@ -41,7 +41,7 @@ def test1(): headers = commonFuc().get_business_data(module, "json_headers2", commonFuc().get_business_data(module, "json_contentType"), token, commonFuc().get_business_data(module, "X-APP-CODE")) - # # 获取结算id + # # 获取id pro_path = commonFuc().get_pro_path() sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g7_批量导入_查询产品信息.air') using(pro_path + r'\\air_case\\b2_herp3_bs\\g7_批量导入_查询产品信息.air') diff --git "a/air_case/b2_herp3_bs/g8_4\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\345\207\272\345\272\223\347\273\223\347\256\227.air/g8_4\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\345\207\272\345\272\223\347\273\223\347\256\227.py" "b/air_case/b2_herp3_bs/g8_4\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\345\207\272\345\272\223\347\273\223\347\256\227.air/g8_4\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\345\207\272\345\272\223\347\273\223\347\256\227.py" index 4dad719d46fd1dfc8c688bf2bc49b5d41b81f338..4f5a9aaebd0e017f80443afead1991e68c14b8bf 100644 --- "a/air_case/b2_herp3_bs/g8_4\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\345\207\272\345\272\223\347\273\223\347\256\227.air/g8_4\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\345\207\272\345\272\223\347\273\223\347\256\227.py" +++ "b/air_case/b2_herp3_bs/g8_4\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\345\207\272\345\272\223\347\273\223\347\256\227.air/g8_4\346\211\271\351\207\217\345\257\274\345\205\245_\345\257\274\345\205\245\344\270\200\344\270\252\344\272\247\345\223\201_\344\270\255\345\277\203\345\272\223\345\207\272\345\272\223\347\273\223\347\256\227.py" @@ -41,7 +41,7 @@ def test1(): headers = commonFuc().get_business_data(module, "json_headers2", commonFuc().get_business_data(module, "json_contentType"), token, commonFuc().get_business_data(module, "X-APP-CODE")) - # # 获取结算id + # # id pro_path = commonFuc().get_pro_path() sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g7_批量导入_查询产品信息.air') using(pro_path + r'\\air_case\\b2_herp3_bs\\g7_批量导入_查询产品信息.air') diff --git "a/air_case/b2_herp3_bs/g8_5\350\260\203\344\273\267\347\256\241\347\220\206\345\210\227\350\241\250_\346\237\245\350\257\242.air/g8_5\350\260\203\344\273\267\347\256\241\347\220\206\345\210\227\350\241\250_\346\237\245\350\257\242.py" "b/air_case/b2_herp3_bs/g8_5\350\260\203\344\273\267\347\256\241\347\220\206\345\210\227\350\241\250_\346\237\245\350\257\242.air/g8_5\350\260\203\344\273\267\347\256\241\347\220\206\345\210\227\350\241\250_\346\237\245\350\257\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..30f364b910ea186e784a8d8869537a24141bdcee --- /dev/null +++ "b/air_case/b2_herp3_bs/g8_5\350\260\203\344\273\267\347\256\241\347\220\206\345\210\227\350\241\250_\346\237\245\350\257\242.air/g8_5\350\260\203\344\273\267\347\256\241\347\220\206\345\210\227\350\241\250_\346\237\245\350\257\242.py" @@ -0,0 +1,62 @@ +# -*- encoding=utf8 -*- +import sys + +from airtest.core.helper import using + +from common.db.sql.sql_del_branch_info import delByBranchId +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,g8_5调价管理列表_查询,id2263,id2263-73,sit,on +内网:g8_5调价管理列表_查询 +""" + +from common.common_func import commonFuc +from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system +module = "b2_herp3_bs" +def test1(): + """ + 场景:g8_5调价管理列表_查询 + 用例名称:g8_5调价管理列表_查询 + 输入:无 + 输出:"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) + #g8_5调价管理列表_查询 + url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "pricePage_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")) + + # #请求体 + request_body = commonFuc().get_business_data(module, "payload50") + print(request_body) + # # # 发送请求 + 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 total>=0: + # print(code) + commonFuc().check_text_exist(0, result) + else: + commonFuc().check_text_exist('error', result) +test1() diff --git "a/air_case/b2_herp3_bs/g8_6\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\346\237\245\350\257\242.air/g8_6\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\346\237\245\350\257\242.py" "b/air_case/b2_herp3_bs/g8_6\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\346\237\245\350\257\242.air/g8_6\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\346\237\245\350\257\242.py" new file mode 100644 index 0000000000000000000000000000000000000000..5a65e0698973b22803c87774eb79f8f57384f9b5 --- /dev/null +++ "b/air_case/b2_herp3_bs/g8_6\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\346\237\245\350\257\242.air/g8_6\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\346\237\245\350\257\242.py" @@ -0,0 +1,68 @@ +# -*- encoding=utf8 -*- +import sys + +from airtest.core.helper import using + +from common.db.sql.sql_del_branch_info import delByBranchId +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,g8_7添加产品列表_确定添加产品,id2263,id2263-74,sit,on +内网:g8_7添加产品列表_确定添加产品 +""" + +from common.common_func import commonFuc +from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system +module = "b2_herp3_bs" +def select1(): + """ + 场景:g8_7添加产品列表_确定添加产品 + 用例名称:g8_7添加产品列表_确定添加产品 + 输入:无 + 输出:"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) + #g8_7添加产品列表_确定添加产品 + url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "supplyHosGoodsPage_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")) + + # #请求体 + request_body = commonFuc().get_business_data(module, "payload50_1") + print(request_body) + # # # 发送请求 + 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 total>=0: + # print(code) + commonFuc().check_text_exist('一次性使用Y型连接器套件', result) + commonFuc().check_text_exist(0, result) + data1=commonFuc().analysis_json('data',data) + hosGoodsId=commonFuc().analysis_json('hosGoodsId', data1[0]) + provGoodsId=commonFuc().analysis_json('provGoodsId', data1[0]) + print(hosGoodsId,provGoodsId) + return hosGoodsId,provGoodsId + else: + commonFuc().check_text_exist('error', result) +select1() diff --git "a/air_case/b2_herp3_bs/g8_7\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\347\241\256\345\256\232\346\267\273\345\212\240\344\272\247\345\223\201.air/g8_7\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\347\241\256\345\256\232\346\267\273\345\212\240\344\272\247\345\223\201.py" "b/air_case/b2_herp3_bs/g8_7\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\347\241\256\345\256\232\346\267\273\345\212\240\344\272\247\345\223\201.air/g8_7\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\347\241\256\345\256\232\346\267\273\345\212\240\344\272\247\345\223\201.py" new file mode 100644 index 0000000000000000000000000000000000000000..57f6c6f00a4037de97362c5c8ed3c6cdf67927ca --- /dev/null +++ "b/air_case/b2_herp3_bs/g8_7\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\347\241\256\345\256\232\346\267\273\345\212\240\344\272\247\345\223\201.air/g8_7\346\267\273\345\212\240\344\272\247\345\223\201\345\210\227\350\241\250_\347\241\256\345\256\232\346\267\273\345\212\240\344\272\247\345\223\201.py" @@ -0,0 +1,69 @@ +# -*- encoding=utf8 -*- +import sys + +from airtest.core.helper import using + +from common.db.sql.sql_del_branch_info import delByBranchId +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,g8_7添加产品列表_确定添加产品,id2263,id2263-75,sit,on +内网:g8_7添加产品列表_确定添加产品 +""" + +from common.common_func import commonFuc +from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system +module = "b2_herp3_bs" +def test1(): + """ + 场景:g8_7添加产品列表_确定添加产品 + 用例名称:g8_7添加产品列表_确定添加产品 + 输入:无 + 输出:"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) + #g8_7添加产品列表_确定添加产品 + url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "queryInSettlementStockQty_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")) + # # 获取hosGoodsId + pro_path = commonFuc().get_pro_path() + sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g8_6添加产品列表_查询.air') + using(pro_path + r'\\air_case\\b2_herp3_bs\\g8_6添加产品列表_查询.air') + from g8_6添加产品列表_查询 import select1 + hosGoodsId,provGoodsId = select1() + # #请求体 + request_body = commonFuc().get_business_data(module, "payload50_2",hosGoodsId) + print(request_body) + # # # 发送请求 + 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) + hosGoodsInd=commonFuc().analysis_json('hosGoodsInd',data) + if code>=0 : + # print(code) + commonFuc().check_text_exist(hosGoodsId, result) + commonFuc().check_text_exist(0, result) + + else: + commonFuc().check_text_exist('error', result) +test1() diff --git "a/air_case/b2_herp3_bs/g8_8\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\232\202\345\255\230.air/g8_8\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\232\202\345\255\230.py" "b/air_case/b2_herp3_bs/g8_8\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\232\202\345\255\230.air/g8_8\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\232\202\345\255\230.py" new file mode 100644 index 0000000000000000000000000000000000000000..5c5380b666bb50b4cbed32e32f1866b1bf7d44d1 --- /dev/null +++ "b/air_case/b2_herp3_bs/g8_8\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\232\202\345\255\230.air/g8_8\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\232\202\345\255\230.py" @@ -0,0 +1,72 @@ +# -*- encoding=utf8 -*- +import sys + +from airtest.core.helper import using + +from common.dateUtils import dateUtils +from common.db.sql.sql_del_branch_info import delByBranchId +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,g8_8修改产品价格_暂存,id2263,id2263-76,sit,on +内网:g8_8修改产品价格_暂存 +""" + +from common.common_func import commonFuc +from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_system +module = "b2_herp3_bs" +def test1(): + """ + 场景:g8_8修改产品价格_暂存 + 用例名称:g8_8修改产品价格_暂存 + 输入:无 + 输出:"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) + #g8_8修改产品价格_暂存 + url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "goodsChgMain_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")) + # # 获取hosGoodsId + pro_path = commonFuc().get_pro_path() + sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g8_6添加产品列表_查询.air') + using(pro_path + r'\\air_case\\b2_herp3_bs\\g8_6添加产品列表_查询.air') + from g8_6添加产品列表_查询 import select1 + hosGoodsId,provGoodsId = select1() + #获取日期 + currentdate=dateUtils().get_current_date() + # print(currentdate) + #请求体 + request_body = commonFuc().get_business_data(module, "payload50_3",hosGoodsId,provGoodsId,currentdate) + print(request_body) + # # # 发送请求 + 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) + checkDict=commonFuc().get_business_data(module,'checkDict10') + if code>=0 : + print(code) + commonFuc().check_text_exist(0, result) + commonFuc().check_result(checkDict,result) + else: + commonFuc().check_text_exist('error', result) +test1() diff --git a/data/b2_herp3_bs/data b/data/b2_herp3_bs/data index 10e897a6bd70d3ad13b6b24661a21ea4309ddb14..7fa33fad62dfeb30845b632ee569302af1c335f0 100644 --- a/data/b2_herp3_bs/data +++ b/data/b2_herp3_bs/data @@ -29,7 +29,10 @@ "branchGoodsPkgDef_update_url": "/hospitaltest2api/herpService/branchGoodsPkgDef/updateById" "updateSettleType_url": "/hospitaltest2api/herpService/basic/mcmsBranchGoodsInfo/updateSettleType" "updateSettleType_url1": "/hospitaltest2api/herpService/supplyProvHosGoods/updateSettleType" - +"pricePage_url": "/hospitaltest2api/herpService/goodsChgMain/pricePage" +"supplyHosGoodsPage_url": "/hospitaltest2api/herpService/goodsChgMain/supplyHosGoodsPage" +"queryInSettlementStockQty_url": "/hospitaltest2api/herpService/goodsChgSub/queryInSettlementStockQty" +"goodsChgMain_insert_url": "/hospitaltest2api/herpService/goodsChgMain/insert" "username": "xhs1009" "password": "1qaz!QAZ" @@ -230,7 +233,10 @@ json_headers2: { "payload49_8": {"ids":["%s"],"settleType":2,"opMenu":"/platform/settle/rules"} "payload49_9": {"ids":["%s"],"settleType":3,"opMenu":"/platform/settle/rules"} "payload49_10": {"ids":["%s"],"settleType":5,"opMenu":"/platform/settle/rules"} - +"payload50": {"pageNum":1,"pageSize":50,"orderBy":"mgcm.create_time desc","queryObject":{"startDate":null,"endDate":null,"goodsName":"","hosId":"h0347"}} +"payload50_1": {"queryObject":{"provId":"p10d95","hosId":"h0347","subProvId":"p10d95","goodsMfrsName":"","goodsName":"","sphgIds":[]},"pageNum":1,"pageSize":50} +"payload50_2": {"hosGoodsIds": ["%s"],"hosId": "h0347"} +"payload50_3": {"attachments":[{"fileName":"","filePath":""}],"changeDetails":[{"hosGoodsId":"%s","newValue":2659,"oldValue":2658,"supplyProvId":"%s"}],"chgType":"GOODS_COLLECT_CHANGE_PRICE","provId":"p10d95","subProvId":"p10d95","hosId":"h0347","planEffectiveDate":"%s 00:00:00","remark":"","id":"","submit":false} checkDict: {"code": 0,'msg': None,'data': True} checkDict1: { diff --git a/report/summary.html b/report/summary.html index 0d4f6760e3919cf266fe3f45777a6df30b254e21..438c0b7710c7ce02ea7adb25ffc8c838d3414adc 100644 --- a/report/summary.html +++ b/report/summary.html @@ -56,7 +56,7 @@ 1 1 - 0分10秒 + 0分2秒 100.0% @@ -72,9 +72,9 @@ - a3订单配送提交_3_0医院 + g8_7添加产品列表_确定添加产品 成功 - 9.917 + 2.508 xiaohesheng