Commit 92897d84 authored by liguangyu06's avatar liguangyu06
Browse files

用例优化

parent 407d0027
...@@ -14,7 +14,6 @@ import json ...@@ -14,7 +14,6 @@ import json
module = "cmdc_purchase_list" module = "cmdc_purchase_list"
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url")
# print(url) # print(url)
# 获取登录所需账号密码 # 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username") username = commonFuc().get_business_data(module, "username")
...@@ -22,6 +21,9 @@ password = commonFuc().get_business_data(module, "password") ...@@ -22,6 +21,9 @@ password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token # 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_token() cmdc_access_token = CmdcDoLogin(username, password).get_token()
headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token) headers = commonFuc().get_business_data(module, "json_headers1", cmdc_access_token)
# 获取采购单列表
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url")
request_body = commonFuc().get_business_data(module, "payload1") request_body = commonFuc().get_business_data(module, "payload1")
""" """
......
#采购单查询接口
"url": "/order/purchase/list"
# 后台运营管理系统登录信息 # 后台运营管理系统登录信息
"username": "Admin00111" "username": "Admin00111"
"password": "Aa123456" "password": "Aa123456"
...@@ -10,6 +6,9 @@ json_headers1: { ...@@ -10,6 +6,9 @@ json_headers1: {
"Content-Type": "application/json", "Content-Type": "application/json",
"Cmdc_access_token": "%s" "Cmdc_access_token": "%s"
} }
#采购单查询接口
"url": "/order/purchase/list"
"payload1": {"billNo":"","billStatusList":[],"creator":"","demandNo":"","startTime":"","endTime":"","times":null,"status":null,"pageNumber":1,"pageSize":8} "payload1": {"billNo":"","billStatusList":[],"creator":"","demandNo":"","startTime":"","endTime":"","times":null,"status":null,"pageNumber":1,"pageSize":8}
#预期结果 #预期结果
checkDict2: {"success":true,"code":"200","message":null} checkDict2: {"success":true,"code":"200","message":null}
......
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