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

用例优化

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