GithubHelp home page GithubHelp logo

Comments (6)

GoverSky avatar GoverSky commented on July 20, 2024

Please show me the code or the screenshot of your error

from htmltestrunner_cn.

BredChu avatar BredChu commented on July 20, 2024

image
image
Test case execution fails to generate test report and error, all cases performed by report can be generated

from htmltestrunner_cn.

GoverSky avatar GoverSky commented on July 20, 2024

Please update your chromedriver to the latest version,另外用中文沟通是不是更轻松些o( ̄▽ ̄)d

from htmltestrunner_cn.

BredChu avatar BredChu commented on July 20, 2024

哈哈,大神原来是**人,但是我更新了驱动,又发生了下面的错误
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.

GoverSky avatar GoverSky commented on July 20, 2024

因为失败和错误的用例要调用截图功能,你的selenium和chromedriver 截图功能失效了,可能其中一个版本低了,你可以单独用selenium试一下driver.get_screenshot_as_base64(),不行就把selenium也升级一下吧

from htmltestrunner_cn.

BredChu avatar BredChu commented on July 20, 2024

好的,多谢大神:)

from htmltestrunner_cn.

Related Issues (16)

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.