Commit d80d3e13 authored by gaotao's avatar gaotao

审查处理

parent f6accf60
...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
[browserType] [browserType]
#browserName = Firefox #browserName = Firefox
browserName = Chrome browserName = Chrome
driverPath = r"C:\Users\80980\znfz_autotest\driver\chromedriver.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_审查起诉=陈小秋诈骗案
...@@ -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)
......
...@@ -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)
......
...@@ -14,4 +14,7 @@ markers= login ...@@ -14,4 +14,7 @@ markers= login
basicmatter basicmatter
lxfz lxfz
lxfz1 lxfz1
scclGyssz
scclTb1
scclTb
demo 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