Commit 290f3d8c authored by liguangyu06's avatar liguangyu06
Browse files

用例优化

parent d982addc
......@@ -13,7 +13,6 @@ import json
module = "cmdc_demand_create_pc"
# print(url)
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username")
password = commonFuc().get_business_data(module, "password")
......@@ -24,6 +23,7 @@ headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_toke
# 进行需求单创建操作
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url")
request_body = commonFuc().get_business_data(module, "payload")
"""
场景:通过快速下单入口提交创建需求单
用例名称:通过快速下单入口提交创建需求单
......
......@@ -13,7 +13,6 @@ import json
module = "cmdc_demand_create_pc"
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url2")
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username")
......@@ -21,7 +20,11 @@ password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcMaiiLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers", cmdc_access_token)
# 进行需求单草稿订单的创建
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url2")
request_body = commonFuc().get_business_data(module, "payload2")
"""
场景:通过快速下单入口提交创建需求单草稿
用例名称:通过快速下单入口提交创建需求单草稿
......
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