Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InterfaceAutoTest
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TestAuto
InterfaceAutoTest
Commits
1b64b0d1
Commit
1b64b0d1
authored
May 19, 2021
by
fanxun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签到更改 用例完善
parent
1dc0b748
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
3 deletions
+6
-3
test_case/bmc/test_integral.py
+6
-3
test_case_data/bmc/bmc_credit_score_20210513.xlsx
+0
-0
test_case_data/bmc/bmc_illegal_study_20210513.xlsx
+0
-0
test_case_data/bmc/bmc_integral_20210513.xlsx
+0
-0
test_case_data/bmc/bmc_vehicle_steward_29_39_20210513.xlsx
+0
-0
No files found.
test_case/bmc/test_integral.py
View file @
1b64b0d1
...
...
@@ -59,15 +59,18 @@ class TestIntegral():
@pytest.mark.usefixtures
(
'test_pre_get_sign_integral'
)
@pytest.mark.parametrize
(
"inData"
,
get_excelData
(
workBook
,
'积分商城'
,
'postSignIntegral'
))
def
test_post_sign_integral
(
self
,
inData
,
test_pre_get_sign_integral
):
if
not
test_pre_get_sign_integral
:
pytest
.
skip
(
msg
=
"今天已经进行签到过,此用例不执行"
)
url
=
f
"{BMCConfig().host}{inData['url']}"
method
=
inData
[
'method'
]
req_data
=
inData
[
'reqData'
]
expectData
=
inData
[
'expectData'
]
headers
=
inData
[
'headers'
]
other_expected_data
=
inData
[
'otherExpectData'
]
res
=
request_main
(
url
=
url
,
headers
=
headers
,
method
=
method
,
data
=
req_data
,
has_token
=
False
)
assert
res
[
'code'
]
==
expectData
[
'code'
]
if
not
test_pre_get_sign_integral
:
# 已经签到过
assert
res
[
'code'
]
==
other_expected_data
[
'code'
]
else
:
assert
res
[
'code'
]
==
expectData
[
'code'
]
@allure.story
(
"查询待领取积分清单"
)
@allure.link
(
"http://yapi.hikcreate.com/project/31/interface/api/55887"
)
...
...
test_case_data/bmc/bmc_credit_score_20210513.xlsx
View file @
1b64b0d1
No preview for this file type
test_case_data/bmc/bmc_illegal_study_20210513.xlsx
View file @
1b64b0d1
No preview for this file type
test_case_data/bmc/bmc_integral_20210513.xlsx
View file @
1b64b0d1
No preview for this file type
test_case_data/bmc/bmc_vehicle_steward_29_39_20210513.xlsx
View file @
1b64b0d1
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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