You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when running selenium python pytest framework in parallel mode getting internal error> def workers internal_error( and which is stopping my complete execution
#12836
@pytest.mark.hookwrapper
def pytest_runtest_makereport(item):
"""
Extends the PyTest Plugin to take and embed screenshot in html report, whenever test fails.
:param item:
"""
pytest_html = item.config.pluginmanager.getplugin('html')
outcome = yield
report = outcome.get_result()
extra = getattr(report, 'extra', [])
if 'UserInterface' in item.keywords:
if report.when == 'call' or report.when == "setup":
xfail = hasattr(report, 'wasxfail')
if (report.skipped and xfail) or (report.failed and not xfail):
file_name = report.nodeid.replace("::", "_") + ".png"
_capture_screenshot(item.cls.driver, file_name)
if file_name:
# html = '<div><img src="%s" alt="screenshot" style="width:304px;height:228px;" ' \
# 'onclick="window.open(this.src)" align="right"/></div>' % file_name
file_name_html = file_name.encode('utf-8', 'xmlcharrefreplace').decode('utf-8')
html = f'<div><img src="{file_name_html}" alt="screenshot" style="width:304px;height:228px;" ' \
f'onclick="window.open(this.src)" align="right"/></div>'
extra.append(pytest_html.extras.html(html))
report.extra = extra
Error:
........E......F..F..................FF.FFF....INTERNALERROR> def worker_internal_error(
INTERNALERROR> self, node: WorkerController, formatted_error: str
INTERNALERROR> ) -> None:
INTERNALERROR> """
INTERNALERROR> pytest_internalerror() was called on the worker.
INTERNALERROR>
INTERNALERROR> pytest_internalerror() arguments are an excinfo and an excrepr, which can't
INTERNALERROR> be serialized, so we go with a poor man's solution of raising an exception
INTERNALERROR> here ourselves using the formatted message.
INTERNALERROR> """
INTERNALERROR> self._active_nodes.remove(node)
INTERNALERROR> try:
INTERNALERROR> > assert False, formatted_error
INTERNALERROR> E AssertionError: Traceback (most recent call last):
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\main.py", line 283, in wrap_session
INTERNALERROR> E session.exitstatus = doit(config, session) or 0
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\main.py", line 337, in _main
INTERNALERROR> E config.hook.pytest_runtestloop(session=session)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_hooks.py", line 513, in call
INTERNALERROR> E return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_manager.py", line 120, in _hookexec
INTERNALERROR> E return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 139, in _multicall
INTERNALERROR> E raise exception.with_traceback(exception.traceback)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\logging.py", line 803, in pytest_runtestloop
INTERNALERROR> E return (yield) # Run all the tests.
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\terminal.py", line 673, in pytest_runtestloop
INTERNALERROR> E result = yield
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 103, in _multicall
INTERNALERROR> E res = hook_impl.function(*args)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\remote.py", line 174, in pytest_runtestloop
INTERNALERROR> E self.run_one_test()
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\remote.py", line 195, in run_one_test
INTERNALERROR> E self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_hooks.py", line 513, in call
INTERNALERROR> E return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_manager.py", line 120, in _hookexec
INTERNALERROR> E return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 139, in _multicall
INTERNALERROR> E raise exception.with_traceback(exception.traceback)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\warnings.py", line 112, in pytest_runtest_protocol
INTERNALERROR> E return (yield)
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\assertion_init.py", line 176, in pytest_runtest_protocol
INTERNALERROR> E return (yield)
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\unittest.py", line 429, in pytest_runtest_protocol
INTERNALERROR> E res = yield
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\faulthandler.py", line 88, in pytest_runtest_protocol
INTERNALERROR> E return (yield)
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 103, in _multicall
INTERNALERROR> E res = hook_impl.function(*args)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pytest_rerunfailures.py", line 549, in pytest_runtest_protocol
INTERNALERROR> E reports = runtestprotocol(item, nextitem=nextitem, log=False)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\runner.py", line 132, in runtestprotocol
INTERNALERROR> E reports.append(call_and_report(item, "call", log))
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\runner.py", line 244, in call_and_report
INTERNALERROR> E report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_hooks.py", line 513, in call
INTERNALERROR> E return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_manager.py", line 120, in _hookexec
INTERNALERROR> E return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 156, in _multicall
INTERNALERROR> E teardown[0].send(outcome)
INTERNALERROR> E File "C:\jenkins-gtie\workspace\qTest_Web_AutomationTesting\Tests\conftest.py", line 279, in pytest_runtest_makereport
INTERNALERROR> E _capture_screenshot(item.cls.driver, file_name)
INTERNALERROR> E File "C:\jenkins-gtie\workspace\qTest_Web_AutomationTesting\Tests\conftest.py", line 293, in _capture_screenshot
INTERNALERROR> E driver.get_screenshot_as_file(name)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 798, in get_screenshot_as_file
INTERNALERROR> E png = self.get_screenshot_as_png()
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 832, in get_screenshot_as_png
INTERNALERROR> E return b64decode(self.get_screenshot_as_base64().encode("ascii"))
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 843, in get_screenshot_as_base64
INTERNALERROR> E return self.execute(Command.SCREENSHOT)["value"]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
INTERNALERROR> E self.error_handler.check_response(response)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
INTERNALERROR> E raise exception_class(message, screen, stacktrace)
INTERNALERROR> E selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 10.000
INTERNALERROR> E (Session info: chrome=128.0.6613.139)
INTERNALERROR> E Stacktrace:
INTERNALERROR> E GetHandleVerifier [0x00007FF73B399632+30946]
INTERNALERROR> E (No symbol) [0x00007FF73B34E3C9]
INTERNALERROR> E (No symbol) [0x00007FF73B246FDA]
INTERNALERROR> E (No symbol) [0x00007FF73B22FF7D]
INTERNALERROR> E (No symbol) [0x00007FF73B22FC80]
INTERNALERROR> E (No symbol) [0x00007FF73B22DE84]
INTERNALERROR> E (No symbol) [0x00007FF73B22E46F]
INTERNALERROR> E (No symbol) [0x00007FF73B255550]
INTERNALERROR> E (No symbol) [0x00007FF73B2EA049]
INTERNALERROR> E (No symbol) [0x00007FF73B2BCA6A]
INTERNALERROR> E (No symbol) [0x00007FF73B2DB041]
INTERNALERROR> E (No symbol) [0x00007FF73B2BC813]
INTERNALERROR> E (No symbol) [0x00007FF73B28A6E5]
INTERNALERROR> E (No symbol) [0x00007FF73B28B021]
INTERNALERROR> E GetHandleVerifier [0x00007FF73B4CF83D+1301229]
INTERNALERROR> E GetHandleVerifier [0x00007FF73B4DBDB7+1351783]
INTERNALERROR> E GetHandleVerifier [0x00007FF73B4D2A03+1313971]
INTERNALERROR> E GetHandleVerifier [0x00007FF73B3CDD06+245686]
INTERNALERROR> E (No symbol) [0x00007FF73B35758F]
INTERNALERROR> E (No symbol) [0x00007FF73B353804]
INTERNALERROR> E (No symbol) [0x00007FF73B353992]
INTERNALERROR> E (No symbol) [0x00007FF73B34A3EF]
INTERNALERROR> E BaseThreadInitThunk [0x00007FFE52664CB0+16]
INTERNALERROR> E RtlUserThreadStart [0x00007FFE530DECDB+43]
INTERNALERROR> E assert False
INTERNALERROR>
INTERNALERROR> C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\dsession.py:232: AssertionError
.INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\main.py", line 283, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\main.py", line 337, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_hooks.py", line 513, in call
INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_manager.py", line 120, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 139, in _multicall
INTERNALERROR> raise exception.with_traceback(exception.traceback)
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\logging.py", line 803, in pytest_runtestloop
INTERNALERROR> return (yield) # Run all the tests.
INTERNALERROR> ^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\terminal.py", line 673, in pytest_runtestloop
INTERNALERROR> result = yield
INTERNALERROR> ^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 103, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\dsession.py", line 138, in pytest_runtestloop
INTERNALERROR> self.loop_once()
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\dsession.py", line 163, in loop_once
INTERNALERROR> call(**kwargs)
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\dsession.py", line 217, in worker_workerfinished
INTERNALERROR> assert not crashitem, (crashitem, node)
INTERNALERROR> AssertionError: ('Tests/test_Insights_RunReport.py::Test_Insights_RunReport::test_Insights_RunReport[getUserInput0]', )
INTERNALERROR> assert not 'Tests/test_Insights_RunReport.py::Test_Insights_RunReport::test_Insights_RunReport[getUserInput0]'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
ConfTest File
import pytest
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
import json
import requests
import urllib3
urllib3.disable_warnings()
BASE_URL = "xxxxxx.com"
def pytest_addoption(parser):
parser.addoption(
"--env_name", action="store", default="stage"
)
parser.addoption(
"--TC_Name", action="store", default="Test"
)
@pytest.fixture(scope="function")
def retry_counter(request):
if not hasattr(request.node, 'retry_count'):
request.node.retry_count = 0
yield request.node.retry_count
request.node.retry_count += 1
@pytest.fixture(scope="function")
def setup(request):
download_dir = "C:\Test"
chromeoption = webdriver.ChromeOptions()
chromeoption.add_experimental_option("prefs", {
"download.default_directory": download_dir,
"download.prompt_for_download": False,
"download.directory_upgrade": True,
"safebrowsing.enabled": True
})
chromeoption.add_argument("--disable-application-cache")
chromeoption.add_argument("--disk-cache-size=0")
chromeoption.add_argument("--headless=new")
chromeoption.add_argument("--incognito")
chromeoption.add_argument("--window-size=1920,1080")
chromeoption.add_argument('--ignore-certificate-errors')
chromeoption.add_argument('--disable-extensions')
chromeoption.add_argument('--disable-popup-blocking')
chromeoption.add_argument('--disable-plugins-discovery')
service_obj = Service("C:\Selenium\chromedriver.exe")
global driver
env_name = request.config.getoption("env_name")
driver = webdriver.Chrome(service=service_obj,options=chromeoption)
driver.delete_all_cookies()
driver.maximize_window()
driver.implicitly_wait(10)
driver.delete_all_cookies()
@pytest.mark.hookwrapper
def pytest_runtest_makereport(item):
"""
Extends the PyTest Plugin to take and embed screenshot in html report, whenever test fails.
:param item:
"""
pytest_html = item.config.pluginmanager.getplugin('html')
outcome = yield
report = outcome.get_result()
extra = getattr(report, 'extra', [])
def _capture_screenshot(driver, name):
driver.get_screenshot_as_file(name)
Error:
........E......F..F..................FF.FFF....INTERNALERROR> def worker_internal_error(
INTERNALERROR> self, node: WorkerController, formatted_error: str
INTERNALERROR> ) -> None:
INTERNALERROR> """
INTERNALERROR> pytest_internalerror() was called on the worker.
INTERNALERROR>
INTERNALERROR> pytest_internalerror() arguments are an excinfo and an excrepr, which can't
INTERNALERROR> be serialized, so we go with a poor man's solution of raising an exception
INTERNALERROR> here ourselves using the formatted message.
INTERNALERROR> """
INTERNALERROR> self._active_nodes.remove(node)
INTERNALERROR> try:
INTERNALERROR> > assert False, formatted_error
INTERNALERROR> E AssertionError: Traceback (most recent call last):
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\main.py", line 283, in wrap_session
INTERNALERROR> E session.exitstatus = doit(config, session) or 0
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\main.py", line 337, in _main
INTERNALERROR> E config.hook.pytest_runtestloop(session=session)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_hooks.py", line 513, in call
INTERNALERROR> E return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_manager.py", line 120, in _hookexec
INTERNALERROR> E return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 139, in _multicall
INTERNALERROR> E raise exception.with_traceback(exception.traceback)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\logging.py", line 803, in pytest_runtestloop
INTERNALERROR> E return (yield) # Run all the tests.
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\terminal.py", line 673, in pytest_runtestloop
INTERNALERROR> E result = yield
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 103, in _multicall
INTERNALERROR> E res = hook_impl.function(*args)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\remote.py", line 174, in pytest_runtestloop
INTERNALERROR> E self.run_one_test()
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\remote.py", line 195, in run_one_test
INTERNALERROR> E self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_hooks.py", line 513, in call
INTERNALERROR> E return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_manager.py", line 120, in _hookexec
INTERNALERROR> E return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 139, in _multicall
INTERNALERROR> E raise exception.with_traceback(exception.traceback)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\warnings.py", line 112, in pytest_runtest_protocol
INTERNALERROR> E return (yield)
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\assertion_init.py", line 176, in pytest_runtest_protocol
INTERNALERROR> E return (yield)
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\unittest.py", line 429, in pytest_runtest_protocol
INTERNALERROR> E res = yield
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> E teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\faulthandler.py", line 88, in pytest_runtest_protocol
INTERNALERROR> E return (yield)
INTERNALERROR> E ^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 103, in _multicall
INTERNALERROR> E res = hook_impl.function(*args)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pytest_rerunfailures.py", line 549, in pytest_runtest_protocol
INTERNALERROR> E reports = runtestprotocol(item, nextitem=nextitem, log=False)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\runner.py", line 132, in runtestprotocol
INTERNALERROR> E reports.append(call_and_report(item, "call", log))
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\runner.py", line 244, in call_and_report
INTERNALERROR> E report: TestReport = ihook.pytest_runtest_makereport(item=item, call=call)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_hooks.py", line 513, in call
INTERNALERROR> E return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_manager.py", line 120, in _hookexec
INTERNALERROR> E return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 156, in _multicall
INTERNALERROR> E teardown[0].send(outcome)
INTERNALERROR> E File "C:\jenkins-gtie\workspace\qTest_Web_AutomationTesting\Tests\conftest.py", line 279, in pytest_runtest_makereport
INTERNALERROR> E _capture_screenshot(item.cls.driver, file_name)
INTERNALERROR> E File "C:\jenkins-gtie\workspace\qTest_Web_AutomationTesting\Tests\conftest.py", line 293, in _capture_screenshot
INTERNALERROR> E driver.get_screenshot_as_file(name)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 798, in get_screenshot_as_file
INTERNALERROR> E png = self.get_screenshot_as_png()
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 832, in get_screenshot_as_png
INTERNALERROR> E return b64decode(self.get_screenshot_as_base64().encode("ascii"))
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 843, in get_screenshot_as_base64
INTERNALERROR> E return self.execute(Command.SCREENSHOT)["value"]
INTERNALERROR> E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
INTERNALERROR> E self.error_handler.check_response(response)
INTERNALERROR> E File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
INTERNALERROR> E raise exception_class(message, screen, stacktrace)
INTERNALERROR> E selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 10.000
INTERNALERROR> E (Session info: chrome=128.0.6613.139)
INTERNALERROR> E Stacktrace:
INTERNALERROR> E GetHandleVerifier [0x00007FF73B399632+30946]
INTERNALERROR> E (No symbol) [0x00007FF73B34E3C9]
INTERNALERROR> E (No symbol) [0x00007FF73B246FDA]
INTERNALERROR> E (No symbol) [0x00007FF73B22FF7D]
INTERNALERROR> E (No symbol) [0x00007FF73B22FC80]
INTERNALERROR> E (No symbol) [0x00007FF73B22DE84]
INTERNALERROR> E (No symbol) [0x00007FF73B22E46F]
INTERNALERROR> E (No symbol) [0x00007FF73B255550]
INTERNALERROR> E (No symbol) [0x00007FF73B2EA049]
INTERNALERROR> E (No symbol) [0x00007FF73B2BCA6A]
INTERNALERROR> E (No symbol) [0x00007FF73B2DB041]
INTERNALERROR> E (No symbol) [0x00007FF73B2BC813]
INTERNALERROR> E (No symbol) [0x00007FF73B28A6E5]
INTERNALERROR> E (No symbol) [0x00007FF73B28B021]
INTERNALERROR> E GetHandleVerifier [0x00007FF73B4CF83D+1301229]
INTERNALERROR> E GetHandleVerifier [0x00007FF73B4DBDB7+1351783]
INTERNALERROR> E GetHandleVerifier [0x00007FF73B4D2A03+1313971]
INTERNALERROR> E GetHandleVerifier [0x00007FF73B3CDD06+245686]
INTERNALERROR> E (No symbol) [0x00007FF73B35758F]
INTERNALERROR> E (No symbol) [0x00007FF73B353804]
INTERNALERROR> E (No symbol) [0x00007FF73B353992]
INTERNALERROR> E (No symbol) [0x00007FF73B34A3EF]
INTERNALERROR> E BaseThreadInitThunk [0x00007FFE52664CB0+16]
INTERNALERROR> E RtlUserThreadStart [0x00007FFE530DECDB+43]
INTERNALERROR> E assert False
INTERNALERROR>
INTERNALERROR> C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\dsession.py:232: AssertionError
.INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\main.py", line 283, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\main.py", line 337, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_hooks.py", line 513, in call
INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_manager.py", line 120, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 139, in _multicall
INTERNALERROR> raise exception.with_traceback(exception.traceback)
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\logging.py", line 803, in pytest_runtestloop
INTERNALERROR> return (yield) # Run all the tests.
INTERNALERROR> ^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages_pytest\terminal.py", line 673, in pytest_runtestloop
INTERNALERROR> result = yield
INTERNALERROR> ^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\pluggy_callers.py", line 103, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\dsession.py", line 138, in pytest_runtestloop
INTERNALERROR> self.loop_once()
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\dsession.py", line 163, in loop_once
INTERNALERROR> call(**kwargs)
INTERNALERROR> File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\xdist\dsession.py", line 217, in worker_workerfinished
INTERNALERROR> assert not crashitem, (crashitem, node)
INTERNALERROR> AssertionError: ('Tests/test_Insights_RunReport.py::Test_Insights_RunReport::test_Insights_RunReport[getUserInput0]', )
INTERNALERROR> assert not 'Tests/test_Insights_RunReport.py::Test_Insights_RunReport::test_Insights_RunReport[getUserInput0]'
Requirement.txt
atomicwrites 1.4.1
attrs 23.2.0
beautifulsoup4 4.12.3
certifi 2024.2.2
cffi 1.16.0
charset-normalizer 3.3.2
colorama 0.4.6
EasyProcess 1.1
entrypoint2 1.1
et-xmlfile 1.1.0
exceptiongroup 1.2.1
execnet 2.1.1
h11 0.14.0
idna 3.7
importlib_metadata 7.1.0
iniconfig 2.0.0
Jinja2 3.1.4
ldap3 2.9.1
MarkupSafe 2.1.5
MouseInfo 0.1.3
numpy 1.26.4
openpyxl 3.1.2
outcome 1.3.0.post0
packaging 24.0
pandas 2.2.2
pillow 10.3.0
pip 24.2
pluggy 1.5.0
py 1.11.0
pyasn1 0.6.0
PyAutoGUI 0.9.54
pycparser 2.22
PyGetWindow 0.0.9
PyMsgBox 1.0.9
pyperclip 1.8.2
PyRect 0.2.0
PyScreeze 0.1.30
PySocks 1.7.1
pytest 8.3.3
pytest-dependency 0.6.0
pytest-html 4.1.1
pytest-metadata 3.1.1
pytest-rerunfailures 14.0
pytest-xdist 3.6.1
python-dateutil 2.9.0.post0
pytweening 1.2.0
pytz 2024.1
requests 2.32.1
selenium 4.21.0
setuptools 70.0.0
six 1.16.0
sniffio 1.3.1
sortedcontainers 2.4.0
soupsieve 2.5
toml 0.10.2
tomli 2.0.1
trio 0.25.1
trio-websocket 0.11.1
typing_extensions 4.11.0
tzdata 2024.1
urllib3 2.2.1
wsproto 1.2.0
xlrd 2.0.1
zipp 3.18.2
Command
set PYTEST_ARGS=--env_name="%env_name%" --html=qTest_Report.html -m "%test_type%" -n auto --junitxml=report.xml
py.test Tests %PYTEST_ARGS%
Beta Was this translation helpful? Give feedback.
All reactions