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
d80d3e13
Commit
d80d3e13
authored
Sep 07, 2020
by
gaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审查处理
parent
f6accf60
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
821 additions
and
15 deletions
+821
-15
config/config.ini
config/config.ini
+12
-12
engine/__init__.py
engine/__init__.py
+3
-3
engine/browser_engine.py
engine/browser_engine.py
+2
-0
tests/test_cases/pytest.ini
tests/test_cases/pytest.ini
+3
-0
tests/test_cases/test_sccl.py
tests/test_cases/test_sccl.py
+801
-0
No files found.
config/config.ini
View file @
d80d3e13
...
@@ -2,16 +2,16 @@
...
@@ -2,16 +2,16 @@
[browserType]
[browserType]
#browserName = Firefox
#browserName = Firefox
browserName
=
Chrome
browserName
=
Chrome
driverPath
=
r"C:
\U
sers
\8
0980
\z
nfz_autotest
\d
river
\c
hromedriver.exe"
driverPath
=
C:/Users/80980/znfz_autotest/driver/chromedriver.exe
#browserName = IE
#browserName = IE
[testUrl]
[testUrl]
#URL = https://www.baidu.com
#URL = https://www.baidu.com
;URL = http://192.168.2.31/cm
;URL = http://192.168.2.31/cm
URL
=
http://2u8997d500.zicp.vip:46630/cm
URL
=
http://2u8997d500.zicp.vip:46630/cm
JBAQ_URL
=
http://2u8997d500.zicp.vip:46630/cm/currencydeal/{bmsah}/case?bmsah={bmsah}
;
JBAQ_URL = http://2u8997d500.zicp.vip:46630/cm/currencydeal/{bmsah}/case?bmsah={bmsah}
SCJL_URL
=
http://2u8997d500.zicp.vip:46630/cm/currencydeal/{bmsah}/conclusion?bmsah={bmsah}&stage=GS&tysah=33030420200123700&ysay={ysay}
;
SCJL_URL = http://2u8997d500.zicp.vip:46630/cm/currencydeal/{bmsah}/conclusion?bmsah={bmsah}&stage=GS&tysah=33030420200123700&ysay={ysay}
BD_URL
=
http://www.baidu.com
;
BD_URL = http://www.baidu.com
;JBAQ_URL = http://192.168.2.31/cm/currencydeal/{bmsah}/case?bmsah={bmsah}
;JBAQ_URL = http://192.168.2.31/cm/currencydeal/{bmsah}/case?bmsah={bmsah}
[userInfo]
[userInfo]
username
=
周朝阳
username
=
周朝阳
...
@@ -28,11 +28,11 @@ database=cmrobot
...
@@ -28,11 +28,11 @@ database=cmrobot
[gsjdCase]
[gsjdCase]
#考虑循环
#考虑循环
# 审查逮捕和审查起诉测试用id
# 审查逮捕和审查起诉测试用id
caseId_审查逮捕=温平检刑捕受
[2020]
33032600562号
;
caseId_审查逮捕=温平检刑捕受[2020]33032600562号
caseId_审查起诉=瓯检起诉受
[2020]
33030400557号
;
caseId_审查起诉=瓯检起诉受[2020]33030400557号
# 盗窃罪
;
# 盗窃罪
caseId_dqz
=
瓯检起诉受[2020]33030400557号
;
caseId_dqz=瓯检起诉受[2020]33030400557号
# 故意伤害罪
;
# 故意伤害罪
caseId_gyshz
=
瓯检起诉受[2020]33030400881号
;
caseId_gyshz=瓯检起诉受[2020]33030400881号
caseName_审查逮捕=陈庆涉嫌故意伤害案
;
caseName_审查逮捕=陈庆涉嫌故意伤害案
caseName_审查起诉=陈小秋诈骗案
;
caseName_审查起诉=陈小秋诈骗案
engine/__init__.py
View file @
d80d3e13
...
@@ -11,9 +11,9 @@ def get_engine(file, url=None, login=True):
...
@@ -11,9 +11,9 @@ def get_engine(file, url=None, login=True):
try
:
try
:
start_time
=
time
.
time
()
start_time
=
time
.
time
()
log_name
=
os
.
path
.
split
(
file
)[
-
1
]
.
split
(
"."
)[
0
]
log_name
=
os
.
path
.
split
(
file
)[
-
1
]
.
split
(
"."
)[
0
]
image_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
file
)),
"images"
)
#
image_path = os.path.join(os.path.dirname(os.path.dirname(file)), "images")
image_path
=
os
.
path
.
join
(
image_path
,
log_name
)
#
image_path = os.path.join(image_path, log_name)
image_path
+=
'.png'
#
image_path += '.png'
engine
=
BrowserEngine
(
url
,
login
,
log_name
)
engine
=
BrowserEngine
(
url
,
login
,
log_name
)
...
...
engine/browser_engine.py
View file @
d80d3e13
...
@@ -82,10 +82,12 @@ class BrowserEngine(ReadConfig):
...
@@ -82,10 +82,12 @@ class BrowserEngine(ReadConfig):
self
.
INDEXURL
=
url
self
.
INDEXURL
=
url
def
get_page
(
self
,
url
):
def
get_page
(
self
,
url
):
time
.
sleep
(
0.5
)
if
url
is
None
:
if
url
is
None
:
return
return
self
.
logger
.
info
(
"the testUrl :
%
s"
%
url
)
self
.
logger
.
info
(
"the testUrl :
%
s"
%
url
)
self
.
driver
.
get
(
url
)
self
.
driver
.
get
(
url
)
time
.
sleep
(
0.5
)
# def load_image(self):
# def load_image(self):
# print(self.image_path)
# print(self.image_path)
...
...
tests/test_cases/pytest.ini
View file @
d80d3e13
...
@@ -14,4 +14,7 @@ markers= login
...
@@ -14,4 +14,7 @@ markers= login
basicmatter
basicmatter
lxfz
lxfz
lxfz1
lxfz1
scclGyssz
scclTb1
scclTb
demo
demo
tests/test_cases/test_sccl.py
0 → 100644
View file @
d80d3e13
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