wuranxu / webtest Goto Github PK
View Code? Open in Web Editor NEWa quick framework for webUI auto test based on PO mode
Home Page: https://webuitest.readthedocs.org
License: Apache License 2.0
a quick framework for webUI auto test based on PO mode
Home Page: https://webuitest.readthedocs.org
License: Apache License 2.0
D:\Python\Python36\python.exe D:/temp/Automated-Test-master/run.py
Traceback (most recent call last):
File "D:/temp/Automated-Test-master/run.py", line 43, in
suite = create_suite()
File "D:/temp/Automated-Test-master/run.py", line 18, in create_suite
cls_name = importlib.import_module("{}.{}.{}".format(Config.suite_name, v, k))
File "D:\Python\Python36\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 941, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'tests.tests'
windows 10, pycharm venv下的虚拟py3.4
已经执行过install.py
启动run_case时,有如下几个问题:
1.找不到.log文件 (新建文件夹和.log文件后解决)
Traceback (most recent call last):
File "D:/UI/webTest/run_case.py", line 9, in
from TestResult.Suite import Suite
File "D:\UI\webTest\TestResult\Suite.py", line 7, in
class Suite(unittest.TestSuite):
File "D:\UI\webTest\TestResult\Suite.py", line 9, in Suite
logger = Logger().logger
File "D:\UI\webTest\Tools\logger.py", line 20, in init
os.path.join(Config.LOG_DIR, filename)), encoding="utf-8")
File "D:\Python34\lib\logging_init_.py", line 999, in init
StreamHandler.init(self, self.open())
File "D:\Python34\lib\logging_init.py", line 1023, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: 'D:\UI\webTest\Log\webdriver_test.log'
2.xmind_reader文件中引入xmind找不到模块:
目测可能是写错大小写了,改成import Xmind后解决
3.加载xmind文件时报错:
解决上面两个问题后,报这个:
找到浏览器对应驱动版本号: 2.40
系统已存在chromedriver, 无需下载!
Traceback (most recent call last):
File "D:/UI/webTest/run_case.py", line 64, in
run()
File "D:/UI/webTest/run_case.py", line 55, in run
suite = create_suite()
File "D:/UI/webTest/run_case.py", line 19, in create_suite
get_xmind_case() # 生成Xmind
File "D:/UI/webTest/run_case.py", line 38, in get_xmind_case
xd = Xmind(file)
File "D:\UI\webTest\Tools\xmind_reader.py", line 15, in init
self.reader = Xmind.load(filepath)
AttributeError: type object 'Xmind' has no attribute 'load'
希望能帮忙解决下
因为我并未看到有URL的地方。因为想要验证登陆其他url是否可行
想用selenium的clear()和send_keys()方法,在你已经封装了Location的基础上怎么用呢。找不到这个方法。
pip3 install -r requirements.py -i https://pypi.douban.com/simple,应该是pip3 install -r requirements.txt -i https://pypi.douban.com/simple
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.