Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
Z
znfz_autotest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qianyanyan
znfz_autotest
Commits
a539ccea
Commit
a539ccea
authored
Jul 07, 2020
by
高涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete test_index.py
parent
1cdae5b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
test_cases/test_index.py
test_cases/test_index.py
+0
-33
No files found.
test_cases/test_index.py
deleted
100644 → 0
View file @
1cdae5b7
import
pytest
,
time
from
basepage
import
get_engine
'''
测试主页面的功能
'''
@
pytest
.
mark
.
select
@
get_engine
(
__file__
,
'INDEX'
)
def
test_select
(
engine
):
'''搜索功能'''
bmsah
=
engine
.
get_caseId
(
'caseId'
)
engine
.
logger
.
info
(
'bmsah:'
+
bmsah
)
scqs_button
=
engine
.
driver
.
xpath
(
"//span[text()='审查起诉']/.."
)[
0
]
scqs_button
.
click
()
time
.
sleep
(
0.5
)
anjian_list
=
engine
.
driver
.
xpath
(
"//div[@class='ant-table-body']//tr"
)
engine
.
logger
.
info
(
'案件列表长度:{}'
.
format
(
len
(
anjian_list
)))
input_button
=
engine
.
driver
.
xpath
(
"//input[@id='ajmc']"
)[
0
]
input_button
.
send_keys
(
bmsah
)
engine
.
logger
.
info
(
'输入受案号'
)
time
.
sleep
(
0.5
)
submit_button
=
engine
.
driver
.
xpath
(
"//button[@class='ant-btn ant-btn-primary']"
)[
0
]
submit_button
.
click
()
engine
.
logger
.
info
(
'点击提交'
)
time
.
sleep
(
1
)
anjian_list
=
engine
.
driver
.
xpath
(
"//div[@class='ant-table-body']//tr"
)
anjian
=
anjian_list
[
0
]
engine
.
logger
.
info
(
'案件列表长度:{}'
.
format
(
len
(
anjian_list
)))
shouanhao
=
anjian
.
get_attribute
(
'data-row-key'
)
engine
.
logger
.
info
(
'部门受案号/案件名称:{}'
.
format
(
shouanhao
))
assert
shouanhao
==
bmsah
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