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

用例优化

1 merge request!4Master|需求单模块归档合并
Showing with 6 additions and 5 deletions
+6 -5
......@@ -14,7 +14,6 @@ import json
module = "cmdc_purchase_list"
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "url")
# print(url)
# 获取登录所需账号密码
username = commonFuc().get_business_data(module, "username")
......@@ -22,6 +21,9 @@ password = commonFuc().get_business_data(module, "password")
# 获取登录后Cmdc_access_token
cmdc_access_token = CmdcDoLogin(username, password).get_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")
"""
......
#采购单查询接口
"url": "/order/purchase/list"
# 后台运营管理系统登录信息
"username": "Admin00111"
"password": "Aa123456"
......@@ -10,6 +6,9 @@ json_headers1: {
"Content-Type": "application/json",
"Cmdc_access_token": "%s"
}
#采购单查询接口
"url": "/order/purchase/list"
"payload1": {"billNo":"","billStatusList":[],"creator":"","demandNo":"","startTime":"","endTime":"","times":null,"status":null,"pageNumber":1,"pageSize":8}
#预期结果
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