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
8bd7cd1a
Commit
8bd7cd1a
authored
May 24, 2021
by
huangchengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ҵģ鲿
parent
b7306d2e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test_case/bmc/test_my.py
+5
-5
No files found.
test_case/bmc/test_my.py
View file @
8bd7cd1a
...
@@ -16,7 +16,7 @@ from common.utils import getExcelData
...
@@ -16,7 +16,7 @@ from common.utils import getExcelData
@allure.feature
(
"我的"
)
@allure.feature
(
"我的"
)
class
TestMy
:
class
TestMy
:
workbook
=
xlrd
.
open_workbook
(
f
'{config.BaseConfig.root_path}/test_case_data
\\
bmc
\\
bmc_my_2021513.xlsx'
)
workbook
=
xlrd
.
open_workbook
(
f
'{config.BaseConfig.root_path}/test_case_data
/bmc/
bmc_my_2021513.xlsx'
)
def
setup_class
(
self
):
def
setup_class
(
self
):
config
.
BMCConfig
.
headers
[
"Pvt-Token"
]
=
getattr
(
config
.
BMCConfig
,
"bmc_pvt_token"
)
config
.
BMCConfig
.
headers
[
"Pvt-Token"
]
=
getattr
(
config
.
BMCConfig
,
"bmc_pvt_token"
)
...
@@ -267,7 +267,7 @@ class TestMy:
...
@@ -267,7 +267,7 @@ class TestMy:
assert
res
[
"code"
]
==
expectdata
[
"code"
]
assert
res
[
"code"
]
==
expectdata
[
"code"
]
except
Exception
as
e
:
except
Exception
as
e
:
raise
e
raise
e
#
if __name__ == '__main__':
if
__name__
==
'__main__'
:
#
pytest.main(["-s","-v","test_my.py",'--alluredir', './bmc/report',"--clean-alluredir"])
pytest
.
main
([
"-s"
,
"-v"
,
"test_my.py"
,
'--alluredir'
,
'./bmc/report'
,
"--clean-alluredir"
])
# pytest.main(['-v', '-s', "test_my.py::TestMy::test_myservicehotlist", '--alluredir', './bmc/report', "--clean-alluredir"])
# pytest.main(['-v', '-s', "test_my.py::TestMy::test_myservicehotlist", '--alluredir', './bmc/report', "--clean-alluredir"])
# os.system('allure serve ./bmc/report')
os
.
system
(
'allure serve ./bmc/report'
)
\ No newline at end of file
\ No newline at end of file
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