Commit d80d3e13 authored by gaotao's avatar gaotao

审查处理

parent f6accf60
......@@ -2,16 +2,16 @@
[browserType]
#browserName = Firefox
browserName = Chrome
driverPath = r"C:\Users\80980\znfz_autotest\driver\chromedriver.exe"
driverPath = C:/Users/80980/znfz_autotest/driver/chromedriver.exe
#browserName = IE
[testUrl]
#URL = https://www.baidu.com
;URL = http://192.168.2.31/cm
URL = http://2u8997d500.zicp.vip:46630/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
;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
;JBAQ_URL = http://192.168.2.31/cm/currencydeal/{bmsah}/case?bmsah={bmsah}
[userInfo]
username=周朝阳
......@@ -28,11 +28,11 @@ database=cmrobot
[gsjdCase]
#考虑循环
# 审查逮捕和审查起诉测试用id
caseId_审查逮捕=温平检刑捕受[2020]33032600562号
caseId_审查起诉=瓯检起诉受[2020]33030400557号
# 盗窃罪
caseId_dqz=瓯检起诉受[2020]33030400557号
# 故意伤害罪
caseId_gyshz=瓯检起诉受[2020]33030400881号
caseName_审查逮捕=陈庆涉嫌故意伤害案
caseName_审查起诉=陈小秋诈骗案
;caseId_审查逮捕=温平检刑捕受[2020]33032600562号
;caseId_审查起诉=瓯检起诉受[2020]33030400557号
;# 盗窃罪
;caseId_dqz=瓯检起诉受[2020]33030400557号
;# 故意伤害罪
;caseId_gyshz=瓯检起诉受[2020]33030400881号
;caseName_审查逮捕=陈庆涉嫌故意伤害案
;caseName_审查起诉=陈小秋诈骗案
......@@ -11,9 +11,9 @@ def get_engine(file, url=None, login=True):
try:
start_time = time.time()
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(image_path, log_name)
image_path += '.png'
# image_path = os.path.join(os.path.dirname(os.path.dirname(file)), "images")
# image_path = os.path.join(image_path, log_name)
# image_path += '.png'
engine = BrowserEngine(url, login, log_name)
......
......@@ -82,10 +82,12 @@ class BrowserEngine(ReadConfig):
self.INDEXURL = url
def get_page(self, url):
time.sleep(0.5)
if url is None:
return
self.logger.info("the testUrl : %s" % url)
self.driver.get(url)
time.sleep(0.5)
# def load_image(self):
# print(self.image_path)
......
......@@ -14,4 +14,7 @@ markers= login
basicmatter
lxfz
lxfz1
scclGyssz
scclTb1
scclTb
demo
This diff is collapsed.
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