Commit 0f20f91e authored by xiao-hesheng's avatar xiao-hesheng
Browse files

新增采购计划模块脚本

parent c8a60207
Showing with 11 additions and 3 deletions
+11 -3
...@@ -49,7 +49,15 @@ def branch_goods_add(): ...@@ -49,7 +49,15 @@ def branch_goods_add():
result = commonFuc().http_post(url,request_body,headers) result = commonFuc().http_post(url,request_body,headers)
print('result', result) print('result', result)
# #断言 # #断言
# total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result)) # # total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result))
checkDict=commonFuc().get_business_data(module,'checkDict14') # checkDict=commonFuc().get_business_data(module,'checkDict14')
commonFuc().check_result(checkDict,result) # commonFuc().check_result(checkDict,result)
code = commonFuc().analysis_json('code', result)
data = commonFuc().analysis_json('data', result)
if code == 1100000 and data == None:
# checkDict=commonFuc().get_business_data(module,'checkDict7')
# commonFuc().check_result(checkDict,result)
commonFuc().check_text_exist(0, result)
else:
commonFuc().check_text_exist('error', result)
branch_goods_add() branch_goods_add()
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