diff --git "a/air_case/b2_herp3_bs/g2_14\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/g2_14\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/g2_14\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/g2_14\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" index 21fc8f7e3a66e4128a165bf9235771a7a0d742b6..48fd02ee1c91bcb961a38f9f87e214267e6b258b 100644 --- "a/air_case/b2_herp3_bs/g2_14\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/g2_14\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/g2_14\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/g2_14\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" @@ -45,7 +45,7 @@ def test1(): pro_path = commonFuc().get_pro_path() sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g2_13添加产品列表_查询.air') using(pro_path + r'\\air_case\\b2_herp3_bs\\g2_13添加产品列表_查询.air') - from g8_6添加产品列表_查询 import select1 + from g2_13添加产品列表_查询 import select1 hosGoodsId,provGoodsId = select1() # #请求体 request_body = commonFuc().get_business_data(module, "payload50_2",hosGoodsId) diff --git "a/air_case/b2_herp3_bs/g2_15\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/g2_15\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/g2_15\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/g2_15\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" index 23593462e5746961c5301c1c4ee77029075c84c5..9fb196cda31054be67d5c3673f36221e3142f4e8 100644 --- "a/air_case/b2_herp3_bs/g2_15\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/g2_15\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/g2_15\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/g2_15\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" @@ -46,7 +46,7 @@ def test1(): pro_path = commonFuc().get_pro_path() sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g2_13添加产品列表_查询.air') using(pro_path + r'\\air_case\\b2_herp3_bs\\g2_13添加产品列表_查询.air') - from g8_6添加产品列表_查询 import select1 + from g2_13添加产品列表_查询 import select1 hosGoodsId,provGoodsId = select1() #获取日期 currentdate=dateUtils().get_current_date() diff --git "a/air_case/b2_herp3_bs/g2_17\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\217\220\344\272\244.air/g2_17\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\217\220\344\272\244.py" "b/air_case/b2_herp3_bs/g2_17\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\217\220\344\272\244.air/g2_17\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\217\220\344\272\244.py" index e43a9fee5db3da649e9af1a5d13888fbdada4bae..25a675deca152bf785ab10e7289c22d2a7f2a319 100644 --- "a/air_case/b2_herp3_bs/g2_17\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\217\220\344\272\244.air/g2_17\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\217\220\344\272\244.py" +++ "b/air_case/b2_herp3_bs/g2_17\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\217\220\344\272\244.air/g2_17\344\277\256\346\224\271\344\272\247\345\223\201\344\273\267\346\240\274_\346\217\220\344\272\244.py" @@ -46,12 +46,12 @@ def test1(): pro_path = commonFuc().get_pro_path() sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g2_13添加产品列表_查询.air') using(pro_path + r'\\air_case\\b2_herp3_bs\\g2_13添加产品列表_查询.air') - from g8_6添加产品列表_查询 import select1 + from g2_13添加产品列表_查询 import select1 hosGoodsId,provGoodsId = select1() #获取GChid sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g2_16调价管理列表_查询_暂存状态数据.air') using(pro_path + r'\\air_case\\b2_herp3_bs\\g2_16调价管理列表_查询_暂存状态数据.air') - from g8_9调价管理列表_查询_暂存状态数据 import test1 + from g2_16调价管理列表_查询_暂存状态数据 import test1 GChid,orderNo = test1() #获取日期 currentdate=dateUtils().get_current_date() diff --git "a/air_case/b2_herp3_bs/g2_18\345\256\241\346\211\271\344\270\255\345\277\203_\345\210\227\350\241\250\346\237\245\350\257\242.air/g2_18\345\256\241\346\211\271\344\270\255\345\277\203_\345\210\227\350\241\250\346\237\245\350\257\242.py" "b/air_case/b2_herp3_bs/g2_18\345\256\241\346\211\271\344\270\255\345\277\203_\345\210\227\350\241\250\346\237\245\350\257\242.air/g2_18\345\256\241\346\211\271\344\270\255\345\277\203_\345\210\227\350\241\250\346\237\245\350\257\242.py" index f90ef91925c1c09ec0ebb20309a71f0826d64682..c25deb589163cb20f9d89249f8efe1f059363d06 100644 --- "a/air_case/b2_herp3_bs/g2_18\345\256\241\346\211\271\344\270\255\345\277\203_\345\210\227\350\241\250\346\237\245\350\257\242.air/g2_18\345\256\241\346\211\271\344\270\255\345\277\203_\345\210\227\350\241\250\346\237\245\350\257\242.py" +++ "b/air_case/b2_herp3_bs/g2_18\345\256\241\346\211\271\344\270\255\345\277\203_\345\210\227\350\241\250\346\237\245\350\257\242.air/g2_18\345\256\241\346\211\271\344\270\255\345\277\203_\345\210\227\350\241\250\346\237\245\350\257\242.py" @@ -13,7 +13,7 @@ from common.timeUtils import timeUtils __author__ = "xiaohesheng" """ -case_tag:api,herp-web,g9_2审批中心_列表查询,id2263,id2263-78,sit,on +case_tag:api,herp-web,g9_2审批中心_列表查询,id2263,id2263-79,sit,on 内网:g9_2审批中心_列表查询 """ @@ -22,8 +22,8 @@ from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_ module = "b2_herp3_bs" def test1(): """ - 场景:g8_8修改产品价格_暂存 - 用例名称:g8_8修改产品价格_暂存 + 场景:g9_2审批中心_列表查询 + 用例名称:g9_2审批中心_列表查询 输入:无 输出:"rtn_msg": {"code": 0, "msg": null, "data": 1} """ @@ -35,29 +35,29 @@ def test1(): # 获取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") + #g9_2审批中心_列表查询 + url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "apprCenter_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 + # # # 获取hosGoodsId pro_path = commonFuc().get_pro_path() - sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g2_13添加产品列表_查询.air') - using(pro_path + r'\\air_case\\b2_herp3_bs\\g2_13添加产品列表_查询.air') - from g8_6添加产品列表_查询 import select1 - hosGoodsId,provGoodsId = select1() - #获取GChid + # sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g2_13添加产品列表_查询.air') + # using(pro_path + r'\\air_case\\b2_herp3_bs\\g2_13添加产品列表_查询.air') + # from g8_6添加产品列表_查询 import select1 + # hosGoodsId,provGoodsId = select1() + #获取orderNo sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g2_16调价管理列表_查询_暂存状态数据.air') using(pro_path + r'\\air_case\\b2_herp3_bs\\g2_16调价管理列表_查询_暂存状态数据.air') - from g8_9调价管理列表_查询_暂存状态数据 import test1 + from g2_16调价管理列表_查询_暂存状态数据 import test1 GChid,orderNo = test1() #获取日期 - currentdate=dateUtils().get_current_date() + # currentdate=dateUtils().get_current_date() # print(currentdate) #请求体 - request_body = commonFuc().get_business_data(module, "payload50_5",hosGoodsId,provGoodsId,currentdate,GChid) + request_body = commonFuc().get_business_data(module, "payload50_6",orderNo) print(request_body) # # # 发送请求 result = commonFuc().http_post(url, request_body, headers) diff --git a/data/b2_herp3_bs/data b/data/b2_herp3_bs/data index 6f28311f5a70068d323947888a2931cc3d26940d..f63c05c95da81819fcfcfac7e23a44b5cee78f67 100644 --- a/data/b2_herp3_bs/data +++ b/data/b2_herp3_bs/data @@ -34,6 +34,8 @@ "supplyHosGoodsPage_url": "/hospitaltest2api/herpService/goodsChgMain/supplyHosGoodsPage" "queryInSettlementStockQty_url": "/hospitaltest2api/herpService/goodsChgSub/queryInSettlementStockQty" "goodsChgMain_insert_url": "/hospitaltest2api/herpService/goodsChgMain/insert" +"apprCenter_url": "/hospitaltest2api/herpService/apprCenter/waitPage" + "username": "xhs1009" "password": "1qaz!QAZ" @@ -240,7 +242,7 @@ json_headers2: { "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} "payload50_4": {"pageNum":1,"pageSize":50,"orderBy":"mgcm.create_time desc","queryObject":{"startDate":null,"endDate":null,"goodsName":"","hosId":"h0347", "tbStatus":"0"}} "payload50_5": {"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": "%s","submit": true} - +"payload50_6": {"pageNum":1,"pageSize":50,"queryObject":{"orderNo":"%s","createOrderTimeStart":"","createOrderTimeEnd":""}} checkDict: {"code": 0,'msg': None,'data': True} checkDict1: { diff --git a/report/summary.html b/report/summary.html index bf08f94c9d6d6e54f04222f67af0e896990f424f..934a5503a91c3c337d9d35bf46565037448830fc 100644 --- a/report/summary.html +++ b/report/summary.html @@ -55,9 +55,9 @@