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
7fc3f294
Commit
7fc3f294
authored
Sep 27, 2020
by
gaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基本案情优化
parent
a18825d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
tests/test_cases/test_jbaq.py
tests/test_cases/test_jbaq.py
+7
-4
No files found.
tests/test_cases/test_jbaq.py
View file @
7fc3f294
...
...
@@ -255,11 +255,14 @@ def test_notnulladdr(engine):
@
pytest
.
mark
.
basicmatter
@
get_engine
(
__file__
,
url
=
URL1
.
format
(
**
params1
))
def
test_notnullSpecifPerson
(
engine
):
def
test_notnullSpecifPerson
(
engine
):
# 特定人员不为空
# engine.get_page(engine.DQZ)
engine
.
driver
.
xpath
(
"//div[@id='起诉意见书_犯罪嫌疑人_0_特定人员']"
)[
0
]
.
click
()
engine
.
driver
.
xpath
(
"//li[@data='聋哑人']"
)[
0
]
.
click
()
# engine.driver.xpath("//div[@id='起诉意见书_犯罪嫌疑人_0_特定人员']")[0].click()
# engine.driver.xpath("//li[@data='盲人']")[0].click()
if
len
(
engine
.
driver
.
xpath
(
"//div[@id='起诉意见书_犯罪嫌疑人_0_特定人员']//ul/li"
))
==
1
:
engine
.
driver
.
xpath
(
"//div[@id='起诉意见书_犯罪嫌疑人_0_特定人员']"
)[
0
]
.
click
()
engine
.
driver
.
xpath
(
"//li[@data='盲人']"
)[
0
]
.
click
()
time
.
sleep
(
0.5
)
save_button
=
engine
.
driver
.
xpath
(
"//span[text()='保存']/.."
)[
0
]
save_button
.
click
()
...
...
@@ -326,7 +329,7 @@ def test_IncorrectFormatFilingTime(engine): # 立案时间格式于标准不一
save_button
.
click
()
time
.
sleep
(
0.5
)
message
=
engine
.
driver
.
xpath
(
"//div[@class='ant-message']//span[text()='日期格式不正确!']"
)
assert
len
(
message
)
==
1
and
'不提示格式不正确!!'
assert
len
(
message
)
==
1
...
...
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