Giter Site home page Giter Site logo

webtest's Issues

可以给我解释下你写的create Suite的函数嘛,就是动态导入这块,这块一直编译有问题,我找不到原因额。多谢!!

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'

run_case时报错

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'

希望能帮忙解决下

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.