Comments (6)
from pyautotest.
用例收集失败,原因是用例文件中存在服务器没有的模块。
from pyautotest.
怎么定位到是哪个模块呢
from pyautotest.
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/_pytest/main.py", line 269, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/_pytest/main.py", line 322, in _main
INTERNALERROR> config.hook.pytest_collection(session=session)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in call
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 87, in
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/_pytest/main.py", line 333, in pytest_collection
INTERNALERROR> session.perform_collect()
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/_pytest/main.py", line 621, in perform_collect
INTERNALERROR> self.ihook.pytest_collectreport(report=rep)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in call
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 87, in
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pytest_html/plugin.py", line 750, in pytest_collectreport
INTERNALERROR> self.append_failed(report)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pytest_html/plugin.py", line 465, in append_failed
INTERNALERROR> self._appendrow("Error", report)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pytest_html/plugin.py", line 433, in _appendrow
INTERNALERROR> result = self.TestResult(outcome, report, self.logfile, self.config)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pytest_html/plugin.py", line 199, in init
INTERNALERROR> self.config.hook.pytest_html_results_table_row(report=report, cells=cells)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in call
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 87, in
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/home/python_data/TMT_QA_UI_Test/assess_new_m/conftest.py", line 65, in pytest_html_results_table_row
INTERNALERROR> cells.insert(2, html.td(report.description))
INTERNALERROR> AttributeError: 'CollectReport' object has no attribute 'description'
我在linux上运行selenium时,使用pytest-html插件初始化时遇到相同的问题,具体是什么原因啊
from pyautotest.
必然有啊,是不是pytest插件对linux不是很支持啊~
from pyautotest.
from pyautotest.
Related Issues (16)
- 在poium中的方法怎么使用page中的定位方式呢? HOT 2
- 发现错误,conftest.py中new_report_time()路径错误 HOT 1
- 最近conftest突然报错, AttributeError:‘CollectReport’ object has no attriibute 'description'
- poium 0.6 怎么定义一组元素,poium0.3可以用PageElements,但是poium0.6没有NewPageElements HOT 1
- 刚下到本地跑了一下报错了 HOT 1
- 我跑不起来,请问还维护么 HOT 1
- 如果想打开多个网站,那么base_url如何配置,pytest.ini的配置机制是什么样的?
- 控制台输出 HOT 2
- 在直接终端运行“/usr/local/bin/python3.7 /Users/huishow/pyautoTest/test_dir/test_baidu.py” HOT 1
- 获取不到元素的text HOT 1
- 版本没问题,但是一直NameError: name 'driver' is not defined HOT 1
- 报告生成失败呢
- 代码点击百度设置会报错无法识别到
- conftest中的 from py.xml import html 这个包是导入的什么插件 总是报错 我找了半天没找到答案 HOT 2
- conftest 中的截图功能 有问题,单独运行时报错“AttributeError: 'NoneType' object has no attribute 'save_screenshot'” HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyautotest.