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
5a4e54db
Commit
5a4e54db
authored
Oct 12, 2020
by
gaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改host
parent
00f00e78
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
config/config.ini
config/config.ini
+1
-1
tests/test_cases/test_gsjd.py
tests/test_cases/test_gsjd.py
+1
-1
tests/test_cases/test_jbaq.py
tests/test_cases/test_jbaq.py
+1
-1
tests/test_cases/test_sccl.py
tests/test_cases/test_sccl.py
+1
-1
tests/test_cases/test_scjl.py
tests/test_cases/test_scjl.py
+1
-1
tests/test_cases/test_yjhc.py
tests/test_cases/test_yjhc.py
+2
-2
No files found.
config/config.ini
View file @
5a4e54db
...
@@ -8,7 +8,7 @@ driverPath = C:/Users/80980/znfz_autotest/driver/chromedriver.exe
...
@@ -8,7 +8,7 @@ driverPath = C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[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:
14106
/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
...
...
tests/test_cases/test_gsjd.py
View file @
5a4e54db
...
@@ -2,7 +2,7 @@ from engine import get_engine
...
@@ -2,7 +2,7 @@ from engine import get_engine
import
pytest
,
time
import
pytest
,
time
HOST
=
'2u8997d500.zicp.vip:
46630
'
HOST
=
'2u8997d500.zicp.vip:
14106
'
URL1
=
'''http://{host}/cm'''
URL1
=
'''http://{host}/cm'''
params1
=
{
params1
=
{
...
...
tests/test_cases/test_jbaq.py
View file @
5a4e54db
...
@@ -5,7 +5,7 @@ import pytest,time
...
@@ -5,7 +5,7 @@ import pytest,time
from
engine
import
get_engine
from
engine
import
get_engine
HOST
=
'2u8997d500.zicp.vip:
46630
'
HOST
=
'2u8997d500.zicp.vip:
14106
'
URL1
=
'''http://{host}/cm/currencydeal/{bmsah}/{page}?bmsah={bmsah}'''
URL1
=
'''http://{host}/cm/currencydeal/{bmsah}/{page}?bmsah={bmsah}'''
params1
=
{
params1
=
{
...
...
tests/test_cases/test_sccl.py
View file @
5a4e54db
...
@@ -7,7 +7,7 @@ from copy import deepcopy
...
@@ -7,7 +7,7 @@ from copy import deepcopy
from
datetime
import
datetime
from
datetime
import
datetime
HOST
=
'2u8997d500.zicp.vip:
46630
'
HOST
=
'2u8997d500.zicp.vip:
14106
'
URL1
=
'''http://{host}/cm/currencydeal/{bmsah}/{page}?bmsah={bmsah}&stage=GS&tysah={tysah}&ysay={ysay}'''
URL1
=
'''http://{host}/cm/currencydeal/{bmsah}/{page}?bmsah={bmsah}&stage=GS&tysah={tysah}&ysay={ysay}'''
params1
=
{
params1
=
{
'host'
:
HOST
,
'host'
:
HOST
,
...
...
tests/test_cases/test_scjl.py
View file @
5a4e54db
...
@@ -5,7 +5,7 @@ import pytest,time
...
@@ -5,7 +5,7 @@ import pytest,time
from
engine
import
get_engine
from
engine
import
get_engine
HOST
=
'2u8997d500.zicp.vip:
46630
'
HOST
=
'2u8997d500.zicp.vip:
14106
'
URL1
=
'''http://{host}/cm/currencydeal/{bmsah}/{page}?bmsah={bmsah}&stage=GS&tysah={tysah}&ysay={ysay}'''
URL1
=
'''http://{host}/cm/currencydeal/{bmsah}/{page}?bmsah={bmsah}&stage=GS&tysah={tysah}&ysay={ysay}'''
params1
=
{
params1
=
{
...
...
tests/test_cases/test_yjhc.py
View file @
5a4e54db
...
@@ -7,7 +7,7 @@ from copy import deepcopy
...
@@ -7,7 +7,7 @@ from copy import deepcopy
from
datetime
import
datetime
from
datetime
import
datetime
HOST
=
'2u8997d500.zicp.vip:
46630
'
HOST
=
'2u8997d500.zicp.vip:
14106
'
URL1
=
'''http://{host}/cm/currencydeal/{bmsah}/{page}?bmsah={bmsah}&stage=GS&tysah={tysah}&ysay={ysay}'''
URL1
=
'''http://{host}/cm/currencydeal/{bmsah}/{page}?bmsah={bmsah}&stage=GS&tysah={tysah}&ysay={ysay}'''
# params1 = {
# params1 = {
# 'host' : HOST,
# 'host' : HOST,
...
@@ -382,7 +382,7 @@ def test_xgxyrxm(engine): # 修改嫌疑人姓名
...
@@ -382,7 +382,7 @@ def test_xgxyrxm(engine): # 修改嫌疑人姓名
engine
.
driver
.
xpath
(
"//span[text()='保 存']/.."
)[
0
]
.
click
()
engine
.
driver
.
xpath
(
"//span[text()='保 存']/.."
)[
0
]
.
click
()
time
.
sleep
(
0.5
)
time
.
sleep
(
0.5
)
message
=
engine
.
driver
.
xpath
(
"//div[@class='ant-message']//span[contains(text(),'保存成功')]"
)
message
=
engine
.
driver
.
xpath
(
"//div[@class='ant-message']//span[contains(text(),'保存成功')]"
)
test_name
=
engine
.
driver
.
xpath
(
"//input[@id='起诉意见书_犯罪嫌疑人_0_犯罪嫌疑人姓名']"
)[
-
1
]
.
text
test_name
=
engine
.
driver
.
xpath
(
"//input[@id='起诉意见书_犯罪嫌疑人_0_犯罪嫌疑人姓名']"
)[
0
]
.
text
assert
len
(
message
)
==
1
and
test_name
==
xyr_name
assert
len
(
message
)
==
1
and
test_name
==
xyr_name
...
...
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