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
3 years ago
by
fanxun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签到更改 用例完善
parent
1dc0b748
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
2 deletions
+5
-2
test_case/bmc/test_integral.py
+5
-2
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,14 +59,17 @@ class TestIntegral():
...
@@ -59,14 +59,17 @@ class TestIntegral():
@pytest.mark.usefixtures
(
'test_pre_get_sign_integral'
)
@pytest.mark.usefixtures
(
'test_pre_get_sign_integral'
)
@pytest.mark.parametrize
(
"inData"
,
get_excelData
(
workBook
,
'积分商城'
,
'postSignIntegral'
))
@pytest.mark.parametrize
(
"inData"
,
get_excelData
(
workBook
,
'积分商城'
,
'postSignIntegral'
))
def
test_post_sign_integral
(
self
,
inData
,
test_pre_get_sign_integral
):
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']}"
url
=
f
"{BMCConfig().host}{inData['url']}"
method
=
inData
[
'method'
]
method
=
inData
[
'method'
]
req_data
=
inData
[
'reqData'
]
req_data
=
inData
[
'reqData'
]
expectData
=
inData
[
'expectData'
]
expectData
=
inData
[
'expectData'
]
headers
=
inData
[
'headers'
]
headers
=
inData
[
'headers'
]
other_expected_data
=
inData
[
'otherExpectData'
]
res
=
request_main
(
url
=
url
,
headers
=
headers
,
method
=
method
,
data
=
req_data
,
has_token
=
False
)
res
=
request_main
(
url
=
url
,
headers
=
headers
,
method
=
method
,
data
=
req_data
,
has_token
=
False
)
if
not
test_pre_get_sign_integral
:
# 已经签到过
assert
res
[
'code'
]
==
other_expected_data
[
'code'
]
else
:
assert
res
[
'code'
]
==
expectData
[
'code'
]
assert
res
[
'code'
]
==
expectData
[
'code'
]
@allure.story
(
"查询待领取积分清单"
)
@allure.story
(
"查询待领取积分清单"
)
...
...
This diff is collapsed.
Click to expand it.
test_case_data/bmc/bmc_credit_score_20210513.xlsx
View file @
1b64b0d1
No preview for this file type
This diff is collapsed.
Click to expand it.
test_case_data/bmc/bmc_illegal_study_20210513.xlsx
View file @
1b64b0d1
No preview for this file type
This diff is collapsed.
Click to expand it.
test_case_data/bmc/bmc_integral_20210513.xlsx
View file @
1b64b0d1
No preview for this file type
This diff is collapsed.
Click to expand it.
test_case_data/bmc/bmc_vehicle_steward_29_39_20210513.xlsx
View file @
1b64b0d1
No preview for this file type
This diff is collapsed.
Click to expand it.
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