Commit 5a4e54db authored by gaotao's avatar gaotao

修改host

parent 00f00e78
......@@ -8,7 +8,7 @@ driverPath = C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[testUrl]
#URL = https://www.baidu.com
;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}
;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
......
......@@ -2,7 +2,7 @@ from engine import get_engine
import pytest,time
HOST = '2u8997d500.zicp.vip:46630'
HOST = '2u8997d500.zicp.vip:14106'
URL1 = '''http://{host}/cm'''
params1 = {
......
......@@ -5,7 +5,7 @@ import pytest,time
from engine import get_engine
HOST = '2u8997d500.zicp.vip:46630'
HOST = '2u8997d500.zicp.vip:14106'
URL1 = '''http://{host}/cm/currencydeal/{bmsah}/{page}?bmsah={bmsah}'''
params1 = {
......
......@@ -7,7 +7,7 @@ from copy import deepcopy
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}'''
params1 = {
'host' : HOST,
......
......@@ -5,7 +5,7 @@ import pytest,time
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}'''
params1 = {
......
......@@ -7,7 +7,7 @@ from copy import deepcopy
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}'''
# params1 = {
# 'host' : HOST,
......@@ -382,7 +382,7 @@ def test_xgxyrxm(engine): # 修改嫌疑人姓名
engine.driver.xpath("//span[text()='保 存']/..")[0].click()
time.sleep(0.5)
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment