预定系统_后台管理功能_测试报告
统计结果
hytest 版本 | 0.8.12 |
开始时间 | 2025/01/07 10:00:01 |
结束时间 | 2025/01/07 10:12:17 |
耗时 | 735.990 秒 |
预备执行用例数量 | 296 |
实际执用例行数量 | 10 |
通过 | 0 |
失败 | 0 |
异常 | 10 |
阻塞 | 286 |
套件初始化失败 | 13 |
套件清除 失败 | 2 |
用例初始化失败 | 0 |
用例清除 失败 | 0 |
执行日志
进入目录
cases\
进入目录
cases\会议主流程\01会议预约\
套件初始化
cases\会议主流程\01会议预约\
2025-01-07 10:00:01
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\会议主流程\01会议预约\__st__.py", line 21, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\会议主流程\02会议修改\
套件初始化
cases\会议主流程\02会议修改\
2025-01-07 10:00:47
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\会议主流程\02会议修改\__st__.py", line 21, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\会议主流程\03会议删除\
套件初始化
cases\会议主流程\03会议删除\
2025-01-07 10:01:51
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\会议主流程\03会议删除\__st__.py", line 21, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\会议主流程\04会议状态设置\
套件初始化
cases\会议主流程\04会议状态设置\
2025-01-07 10:02:51
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\会议主流程\04会议状态设置\__st__.py", line 21, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\会议历史记录\
套件初始化
cases\会议历史记录\
2025-01-07 10:03:38
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\会议历史记录\__st__.py", line 21, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\会议审批\
套件初始化
cases\会议审批\
2025-01-07 10:04:32
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@user
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\会议审批\__st__.py", line 21, in suite_setup
admin_login("admin@user", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\会议室管理\会议室管理\
套件初始化
cases\会议室管理\会议室管理\
2025-01-07 10:05:19
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\会议室管理\会议室管理\__st__.py", line 27, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\会议室管理\功能管理\
套件初始化
cases\会议室管理\功能管理\
2025-01-07 10:06:10
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\会议室管理\功能管理\__st__.py", line 27, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\会议室管理\区域管理\
套件初始化
cases\会议室管理\区域管理\
2025-01-07 10:06:59
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\会议室管理\区域管理\__st__.py", line 26, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\会议模板\
套件初始化
cases\会议模板\
2025-01-07 10:07:58
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\会议模板\__st__.py", line 21, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\登录模块\
套件初始化
cases\登录模块\
2025-01-07 10:08:46
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
进入文件
cases\登录模块\账号密码登录测试.py
用例 ABORT
登录_001
2025-01-07 10:09:38
cases\登录模块\账号密码登录测试.py::Login_00x
测试步骤
步骤 #1
输入账号: , 密码: Ubains@4321, 验证码: csba
'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\登录模块\账号密码登录测试.py", line 52, in teststeps
safe_send_keys((By.XPATH, '//*[@id="app"]/div/div[3]/div[1]/div[2]/div/form/div[1]/div/input'), username,wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
用例 ABORT
登录_002
2025-01-07 10:09:38
cases\登录模块\账号密码登录测试.py::Login_00x
测试步骤
步骤 #1
输入账号: admin@czj, 密码: , 验证码: csba
'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\登录模块\账号密码登录测试.py", line 52, in teststeps
safe_send_keys((By.XPATH, '//*[@id="app"]/div/div[3]/div[1]/div[2]/div/form/div[1]/div/input'), username,wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
用例 ABORT
登录_003
2025-01-07 10:09:38
cases\登录模块\账号密码登录测试.py::Login_00x
测试步骤
步骤 #1
输入账号: admin@czj, 密码: Ubains@4321, 验证码:
'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\登录模块\账号密码登录测试.py", line 52, in teststeps
safe_send_keys((By.XPATH, '//*[@id="app"]/div/div[3]/div[1]/div[2]/div/form/div[1]/div/input'), username,wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
用例 ABORT
登录_004
2025-01-07 10:09:38
cases\登录模块\账号密码登录测试.py::Login_00x
测试步骤
步骤 #1
输入账号: admin@czj003, 密码: Ubains@4321, 验证码: csba
'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\登录模块\账号密码登录测试.py", line 52, in teststeps
safe_send_keys((By.XPATH, '//*[@id="app"]/div/div[3]/div[1]/div[2]/div/form/div[1]/div/input'), username,wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
用例 ABORT
登录_005
2025-01-07 10:09:38
cases\登录模块\账号密码登录测试.py::Login_00x
测试步骤
步骤 #1
输入账号: adM 1221n@czj, 密码: Ubains@4321, 验证码: csba
'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\登录模块\账号密码登录测试.py", line 52, in teststeps
safe_send_keys((By.XPATH, '//*[@id="app"]/div/div[3]/div[1]/div[2]/div/form/div[1]/div/input'), username,wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
用例 ABORT
登录_006
2025-01-07 10:09:38
cases\登录模块\账号密码登录测试.py::Login_00x
测试步骤
步骤 #1
输入账号: admin@czj34, 密码: 12345, 验证码: csba
'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\登录模块\账号密码登录测试.py", line 52, in teststeps
safe_send_keys((By.XPATH, '//*[@id="app"]/div/div[3]/div[1]/div[2]/div/form/div[1]/div/input'), username,wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
用例 ABORT
登录_007
2025-01-07 10:09:39
cases\登录模块\账号密码登录测试.py::Login_00x
测试步骤
步骤 #1
输入账号: admin@czj412, 密码: U bains1s@432, 验证码: csba
'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\登录模块\账号密码登录测试.py", line 52, in teststeps
safe_send_keys((By.XPATH, '//*[@id="app"]/div/div[3]/div[1]/div[2]/div/form/div[1]/div/input'), username,wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
用例 ABORT
登录_008
2025-01-07 10:09:39
cases\登录模块\账号密码登录测试.py::Login_00x
测试步骤
步骤 #1
输入账号: admin@czj012, 密码: Ubains@4321, 验证码: 123
'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\登录模块\账号密码登录测试.py", line 52, in teststeps
safe_send_keys((By.XPATH, '//*[@id="app"]/div/div[3]/div[1]/div[2]/div/form/div[1]/div/input'), username,wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
用例 ABORT
登录_009
2025-01-07 10:09:39
cases\登录模块\账号密码登录测试.py::Login_00x
测试步骤
步骤 #1
输入账号: admin@czj1213, 密码: Ubains@4321, 验证码: cs 12
'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\登录模块\账号密码登录测试.py", line 52, in teststeps
safe_send_keys((By.XPATH, '//*[@id="app"]/div/div[3]/div[1]/div[2]/div/form/div[1]/div/input'), username,wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
用例 ABORT
登录_010
2025-01-07 10:09:41
cases\登录模块\账号密码登录测试.py::Login_00x
测试步骤
步骤 #1
输入账号: admin@ZDH, 密码: Ubains@4321, 验证码: csba
'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\登录模块\账号密码登录测试.py", line 52, in teststeps
safe_send_keys((By.XPATH, '//*[@id="app"]/div/div[3]/div[1]/div[2]/div/form/div[1]/div/input'), username,wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
套件清除
cases\登录模块\
2025-01-07 10:09:41
suite teardown fail | 'NoneType' object has no attribute 'quit'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\登录模块\__st__.py", line 23, in suite_teardown
wd.quit()
AttributeError: 'NoneType' object has no attribute 'quit'
进入目录
cases\系统管理\
套件初始化
cases\系统管理\
2025-01-07 10:09:41
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\系统管理\__st__.py", line 22, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\账号管理\用户管理\
套件初始化
cases\账号管理\用户管理\
2025-01-07 10:10:25
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\账号管理\用户管理\__st__.py", line 25, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
进入目录
cases\账号管理\部门管理\
套件初始化
cases\账号管理\部门管理\
2025-01-07 10:11:14
步骤 #1
初始化浏览器
'----------' 正在初始化浏览器 '----------'
输入用户名:admin@ZDH
suite setup fail | 'NoneType' object has no attribute 'find_element'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\账号管理\部门管理\__st__.py", line 19, in suite_setup
admin_login("admin@ZDH", "Ubains@4321")
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 109, in admin_login
safe_send_keys((By.XPATH, "//input[@placeholder='请输入账号或手机号或邮箱号']"), f'{username}', wd)
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 158, in safe_send_keys
element = WebDriverWait(wd, 60).until(EC.visibility_of_element_located(element_locator))
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\wait.py", line 96, in until
value = method(self._driver)
File "C:\Users\29194\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 156, in _predicate
return _element_if_visible(driver.find_element(*locator))
AttributeError: 'NoneType' object has no attribute 'find_element'
套件清除
cases\
2025-01-07 10:12:17
清除浏览器
suite teardown fail | 'NoneType' object has no attribute 'quit'
Traceback:
File "D:\GithubData\自动化\ubains-module-test\预定系统\cases\__st__.py", line 24, in suite_teardown
browser_quit()
File "D:\GithubData\自动化\ubains-module-test\预定系统\Base\base.py", line 467, in browser_quit
wd.quit()
AttributeError: 'NoneType' object has no attribute 'quit'