Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-cmdc
Commits
0a1c3826
Commit
0a1c3826
authored
1 year ago
by
liguangyu06
Browse files
Options
Download
Email Patches
Plain Diff
优化
parent
90828884
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
air_case/cmdc_rebate/返利发放明细获取验证.air/返利发放明细获取验证.py
+4
-2
air_case/cmdc_rebate/返利发放明细获取验证.air/返利发放明细获取验证.py
with
4 additions
and
2 deletions
+4
-2
air_case/cmdc_rebate/返利发放明细获取验证.air/返利发放明细获取验证.py
+
4
-
2
View file @
0a1c3826
...
...
@@ -36,8 +36,10 @@ request_body = commonFuc().get_business_data(module, "payload33")
result
=
requests
.
post
(
url
,
json
=
request_body
,
headers
=
headers
)
# 获取接口响应时间
api_time
=
float
(
result
.
elapsed
.
total_seconds
())
result
=
json
.
loads
(
result
.
content
)
# 将接口响应时间添加至result
result
=
json
.
loads
(
result
.
content
)
result
[
"api_time"
]
=
api_time
# print(result)
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict33"
)
...
...
@@ -55,7 +57,7 @@ host, port, user, pwd = mysql_handle.getConf(db="cmdc_db")
# 数据库查询返利发放规则状态
sql
=
"SELECT t.rebateTripId FROM `cmdc-order`.tc_rebatetrip t"
result
=
{
"total"
:
len
(
mysql_handle
.
selectSql
(
host
,
port
,
user
,
pwd
,
"cmdc-order"
,
sql
))}
result
[
"api_time"
]
=
api_time
# print(result)
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict33_1"
,
total
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets