Comments (6)
Please show me the code or the screenshot of your error
from htmltestrunner_cn.
Test case execution fails to generate test report and error, all cases performed by report can be generated
from htmltestrunner_cn.
Please update your chromedriver to the latest version,另外用中文沟通是不是更轻松些o( ̄▽ ̄)d
from htmltestrunner_cn.
哈哈,大神原来是**人,但是我更新了驱动,又发生了下面的错误
File "D:\PythonDev\Python36\lib\unittest\suite.py", line 122, in run
test(result)
File "D:\PythonDev\Python36\lib\unittest\case.py", line 649, in call
return self.run(*args, **kwds)
File "D:\PythonDev\Python36\lib\unittest\case.py", line 609, in run
self._feedErrorsToResult(result, outcome.errors)
File "D:\PythonDev\Python36\lib\unittest\case.py", line 537, in _feedErrorsToResult
result.addFailure(test, exc_info)
File "D:\PythonDev\Python36\lib\HTMLTestRunner.py", line 713, in addFailure
test.img = driver.get_screenshot_as_base64()
File "D:\PythonDev\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 873, in get_screenshot_as_base64
return self.execute(Command.SCREENSHOT)['value']
File "D:\PythonDev\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 250, in execute
response = self.command_executor.execute(driver_command, params)
File "D:\PythonDev\Python36\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 464, in execute
return self._request(command_info[0], url, body=data)
File "D:\PythonDev\Python36\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 488, in _request
resp = self._conn.getresponse()
File "D:\PythonDev\Python36\lib\http\client.py", line 1331, in getresponse
response.begin()
File "D:\PythonDev\Python36\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "D:\PythonDev\Python36\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "D:\PythonDev\Python36\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。
我把原来执行不通过的用例改成能通过就可以生成了,发现只有用例失败的时候不能生成,应该和驱动没关系
from htmltestrunner_cn.
因为失败和错误的用例要调用截图功能,你的selenium和chromedriver 截图功能失效了,可能其中一个版本低了,你可以单独用selenium试一下driver.get_screenshot_as_base64(),不行就把selenium也升级一下吧
from htmltestrunner_cn.
好的,多谢大神:)
from htmltestrunner_cn.
Related Issues (16)
- 通过率计算了跳过的用例 HOT 1
- “饼图”位置固定,信息重叠 HOT 1
- Python3截图问题 HOT 2
- ddt
- appium中ddt模块无法使用
- 增加对多线程执行用例的支持
- html报告统计总数有问题 HOT 3
- bug AttributeError: 'NoneType' object has no attribute 'find' HOT 8
- 怎么可以使代码里的print的log打印出来 HOT 4
- 下载你的示例,无法生成报告 HOT 1
- 测试详情表单缺少自动换行 HOT 2
- 你好,使用appium,做手机端webview自动化,截图功能不太好用 HOT 3
- 对macaca框架支持吗? HOT 2
- AttributeError: '_ErrorHolder' object has no attribute '_testMethodDoc' HOT 5
- 报告显示异常 HOT 1
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 htmltestrunner_cn.