Commit a8458cf5 authored by libin's avatar libin
Browse files

20190726

parent 1114ebfc
This diff is collapsed.
......@@ -487,11 +487,11 @@ class WebClient():
# file_name = separator.join(path[:])+"/screenshot"
self.__driver.get_screenshot_as_file("../screenshot/%s_%s.png"% (datetime.now().strftime("%Y%m%d%H%M"),screenshot_name) )
def sleep(self):
time.sleep(self.timeout)
def sleep(self,time):
def sleep_time(self,time):
time.sleep(time)
if __name__ == '__main__':
......
......@@ -14,7 +14,7 @@ CONFIRM_BTN = ".//*[@class='ant-modal-footer']/button[2]"
CLOSE_BTN = ".//*[@class='ant-modal-content']/button[1]"
DELETE_IMAGE_BTN = ".anticon.anticon-paper-clip"
IMAGE_LINK = ".anticon.anticon-paper-clip"
MAP_IMG = ".//*[@class='form-group']/li[5]/div[1]/span[1]/div[2]/div[1]/div[1]/span[1]"
MAP_IMG = ".//*[@class='form-group']/li[6]/div[1]/span[1]/div[2]/div[1]/div[1]/span[1]/span"
MAP_IMG_LINK = ".//*[@class='form-group']/li[5]/div[1]/span[1]/div[2]/div[1]/div[1]/span[1]/i[1]"
THUMBNAIL = ".//*[@class='form-group']/li[7]/div[1]/span[1]/div[2]/div[1]/div[1]/span[1]"
THUMBNAIL_LINK = ".//*[@class='form-group']/li[7]/div[1]/span[1]/div[2]/div[1]/div[1]/span[1]/i[1]"
......
......@@ -7,11 +7,11 @@ DEPARTMENT_DROPDOWN_LIST_SECOND = ".//*[@id='formContent']/div[3]/div/div/div/ul
DEPARTMENT_DROPDOWN_LIST_THIRD = ".//*[@id='formContent']/div[3]/div/div/div/ul/li[3]"
DEPARTMENT_DROPDOWN_LIST_FORTH = ".//*[@id='formContent']/div[3]/div/div/div/ul/li[4]"
DEPARTMENT_DROPDOWN_LIST_FIFTH = ".//*[@id='formContent']/div[3]/div/div/div/ul/li[5]"
DEPARTMENT_DROPDOWN_LIST_DELETE_BTN = ".//*[@id='formContent']/div/div/div/ul/li[1]/span"
DEPARTMENT_DROPDOWN_LIST_DELETE_BTN = "//*[@id='formContent']/span/span/ul/li[1]/span[1]"
RANGE = "[name ='system.role.scope'] span:nth-child(2)"
RANGE_FIRST = ".//*[@id='formContent']/div[2]/ul/li[3]/div/ul/li/ul/li[1]/span[2]/span"
RANGE_SECOND = ".//*[@id='formContent']/div[2]/ul/li[3]/div/ul/li/ul/li[2]/span[2]/span"
RANGE_THIRD = ".//*[@id='formContent']/div[2]/ul/li[3]/div/ul/li/ul/li[3]/span[2]/span"
RANGE_FIRST = "//*[@id='formContent']/div[2]/ul/li[5]/div/ul/li/ul/li[1]/span[2]/span"
RANGE_SECOND = "//*[@id='formContent']/div[2]/ul/li[5]/div/ul/li/ul/li[2]/span[2]/span"
RANGE_THIRD = "//*[@id='formContent']/div[2]/ul/li[5]/div/ul/li/ul/li[3]/span[2]/span"
RANGE_EXPAND_ARROW = ".//*[@class='form-content']/ul[1]/li[1]/span[1]"
DOWN_AUTHORIZATION_SWITCH = "[name='system.role.auth'] .ant-switch"
ADD_BTN = ".//*[@class='form-content']/button[1]"
......
This diff is collapsed.
......@@ -5,3 +5,6 @@
[0725/123815.810:ERROR:process_info.cc(329)] VirtualQueryEx: 拒绝访问。 (0x5)
[0725/123815.811:ERROR:process_info.cc(550)] ReadMemoryInfo failed
[0725/123815.811:ERROR:scoped_process_suspend.cc(40)] NtResumeProcess: 已尝试访问正在退出的过程。 (0xc000010a)
[0726/123126.985:ERROR:process_info.cc(329)] VirtualQueryEx: 拒绝访问。 (0x5)
[0726/123126.986:ERROR:process_info.cc(550)] ReadMemoryInfo failed
[0726/123126.991:ERROR:scoped_process_suspend.cc(40)] NtResumeProcess: 已尝试访问正在退出的过程。 (0xc000010a)
......@@ -13,7 +13,6 @@ test_dir = '../testcases_admin'
tests = unittest.defaultTestLoader.discover(test_dir, pattern='*.py',
top_level_dir=None)
l
test_report = '../report/'
now = time.strftime("%Y_%m_%d_%H_%M_%S") # 获取当前时间
......
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