Commit 3a1a3e67 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

优化脚本

parent 804ff445
......@@ -42,7 +42,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"))
# # # 获取instId
# # # 获取taskId
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g2_18审批中心_列表查询.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\g2_18审批中心_列表查询.air')
......
......@@ -13,8 +13,8 @@ from common.timeUtils import timeUtils
__author__ = "xiaohesheng"
"""
case_tag:api,herp-web,g2_19审批中心_审核通过,id2263,id2263-92,sit,on
内网:g2_19审批中心_审核通过
case_tag:api,herp-web,h4审批中心_审核通过,id2263,id2263-92,sit,on
内网:h4审批中心_审核通过
"""
from common.common_func import commonFuc
......@@ -22,8 +22,8 @@ from air_case.b1_herp3_login.登录内网系统.登录内网系统 import login_
module = "b2_herp3_bs"
def test1():
"""
场景:g2_19审批中心_审核通过
用例名称:g2_19审批中心_审核通过
场景:h4审批中心_审核通过
用例名称:h4审批中心_审核通过
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
......@@ -35,14 +35,14 @@ def test1():
# 获取token和projectCode
token,projectCode,uxid,corpId,info= login_system(username, password).get_token()
# print( token,projectCode,uxid,corpId,info)
#g2_19审批中心_审核通过
#h4审批中心_审核通过
url=commonFuc().get_api_url()+commonFuc().get_business_data(module, "approvalBatch_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"))
# # # 获取instId
# # # 获取taskId
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\g2_18审批中心_列表查询.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\g2_18审批中心_列表查询.air')
......
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