pytest-xdist
pytest-xdist copied to clipboard
Hello, after xdist is executed remotely, why doesn't it return a report?
(seleniumbase) D:\workspace>pytest -d --tx socket=10.13.129.73:8888 --rsyncdir seleniumbasedemo/ seleniumbasedemo/testcase/baidu --html=report-re.html
============================= test session starts =============================
platform win32 -- Python 3.6.5, pytest-3.9.2, py-1.8.0, pluggy-0.13.0
rootdir: D:\workspace\seleniumbasedemo, inifile: pytest.ini
plugins: allure-adaptor-1.7.10, cov-2.8.1, forked-1.1.1, html-1.22.0, metadata-1.8.0, ordering-0.6, rerunfailures-7.0, timeout-1.3.3, xdist-1.23.2, seleniumbase-1.32.12
gw0 [3]
scheduling tests via LoadScheduling
... [100%]
----------- generated html file: file://D:\workspace\report-re.html -----------
========================== 3 passed in 32.17 seconds ==========================
Hello, after xdist is executed remotely, why doesn't it return a report?
Another problem is that the socket stops when I finish executing, as follows:
(seleniumbase) λ python socketserver.py
socket_readline_exec_server-1.2 Entering Accept loop ('0.0.0.0', 8888)
socket_readline_exec_server-1.2 got new connection from 10.13.129.227 63928
reading line
socket_readline_exec_server-1.2 compiled source, executing
DevTools listening on ws://127.0.0.1:49817/devtools/browser/a61aec3a-a706-4949-be1a-f51f6f5ac9e9
DevTools listening on ws://127.0.0.1:49880/devtools/browser/199c9cd8-71ac-4937-8df0-03a1f11abe26
DevTools listening on ws://127.0.0.1:49925/devtools/browser/b5da5a8a-2cc2-4330-9207-880d82733ef7
socket_readline_exec_server-1.2 finished executing code
leaving socketserver execloop
Traceback (most recent call last):
File "socketserver.py", line 99, in <module>
startserver(serversock, loop=False)
File "socketserver.py", line 90, in startserver
serversock.shutdown(2)
OSError: [WinError 10057] 由于套接字没有连接并且(当使用一个 sendto 调用发送数据报套接字时)没有提供地
址,发送或接收数据的请求没有被接受。
@meilisong1 Hi,
1、In my case, generated success in local site(client)
2、Why occur OSError in server site, this OSError exception seems to occur in window, in centos code work fine,In socketserver.py use a fcntl module, this module belong to linux,may be related to fcntl module