GUI acceptance tests using environment deployed from packages.

Build: #2949 failed

Job: Onezone harvesters privileges add and remove failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

    Final

user successfully removes space from harvester with remove space privilege[1oz 1op elasticsearch]: Test case result

The below summarizes the result of the test " user successfully removes space from harvester with remove space privilege[1oz 1op elasticsearch]" in build 2,949 of Onedata Products - gui acceptance pkg - Onezone harvesters privileges add and remove.
Description
user successfully removes space from harvester with remove space privilege[1oz 1op elasticsearch]
Test class
gui.scenarios.test_onezone_harvesters_privileges_add_remove
Method
test_user_successfully_removes_space_from_harvester_with_remove_space_privilege[1oz_1op_elasticsearch]
Duration
9 secs
Status
Failed (New Failure)

Error Log

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot determine loading status
from no such window
  (Session info: chrome=115.0.5763.0)
Stacktrace:
#0 0x55ea6583b2b3 <unknown>
#1 0x55ea6556b126 <unknown>
#2 0x55ea65552efa <unknown>
#3 0x55ea655511a8 <unknown>
#4 0x55ea65551722 <unknown>
#5 0x55ea65561c24 <unknown>
#6 0x55ea655627c2 <unknown>
#7 0x55ea655753cf <unknown>
#8 0x55ea65579bbb <unknown>
#9 0x55ea65551dc1 <unknown>
#10 0x55ea65575009 <unknown>
#11 0x55ea655e0efe <unknown>
#12 0x55ea655c8b73 <unknown>
#13 0x55ea6559e1ab <unknown>
#14 0x55ea6559ef4e <unknown>
#15 0x55ea657fc668 <unknown>
#16 0x55ea65800627 <unknown>
#17 0x55ea6580ab8c <unknown>
#18 0x55ea65801253 <unknown>
#19 0x55ea657cf927 <unknown>
#20 0x55ea65825018 <unknown>
#21 0x55ea658251a6 <unknown>
#22 0x55ea65833ee3 <unknown>
#23 0x7f0793a3ca94 <unknown>
#24 0x7f0793ac9a34 __clone
fixturefunc = <function create_instances_of_webdriver at 0x7f29702c96c0>
request = <FixtureRequest for <Function test_user_successfully_removes_space_from_harvester_with_remove_space_privilege[1oz_1op_elasticsearch]>>
kwargs = {'browser_id_list': '[browser1, browser2]', 'capabilities': {'options': <selenium.webdriver.chrome.options.Options obj...b140>}, 'displays': {'browser1': ':1006.0'}, 'driver': <function driver.<locals>._get_instance at 0x7f296f982b60>, ...}

    def call_fixture_func(
        fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
    ) -> FixtureValue:
        if is_generator(fixturefunc):
            fixturefunc = cast(
                Callable[..., Generator[FixtureValue, None, None]], fixturefunc
            )
            generator = fixturefunc(**kwargs)
            try:
                fixture_result = next(generator)
            except StopIteration:
                raise ValueError(f"{request.fixturename} did not yield a value") from None
            finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
            request.addfinalizer(finalizer)
        else:
            fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
>           fixture_result = fixturefunc(**kwargs)

/usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/gui/steps/common/browser_creation.py:62: in create_instances_of_webdriver
    _config_driver(browser, screen_width, screen_height)
tests/gui/steps/common/browser_creation.py:72: in _config_driver
    driver.set_window_size(window_width, window_height)
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py:865: in set_window_size
    self.set_window_rect(width=int(width), height=int(height))
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py:946: in set_window_rect
    return self.execute(Command.SET_WINDOW_RECT, {"x": x, "y": y, "width": width, "height": height})["value"]
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webdriver.py:354: in execute
    self.error_handler.check_response(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7f296f91b980>
response = {'status': 500, 'value': '{"value":{"error":"unknown error","message":"unknown error: cannot determine loading status\...unknown>\\n#22 0x55ea65833ee3 \\u003Cunknown>\\n#23 0x7f0793a3ca94 \\u003Cunknown>\\n#24 0x7f0793ac9a34 __clone\\n"}}'}

    def check_response(self, response: Dict[str, Any]) -> None:
        """Checks that a JSON response from the WebDriver does not have an
        error.
    
        :Args:
         - response - The JSON response from the WebDriver server as a dictionary
           object.
    
        :Raises: If the response contains an error message.
        """
        status = response.get("status", None)
        if not status or status == ErrorCode.SUCCESS:
            return
        value = None
        message = response.get("message", "")
        screen: str = response.get("screen", "")
        stacktrace = None
        if isinstance(status, int):
            value_json = response.get("value", None)
            if value_json and isinstance(value_json, str):
                import json
    
                try:
                    value = json.loads(value_json)
                    if len(value) == 1:
                        value = value["value"]
                    status = value.get("error", None)
                    if not status:
                        status = value.get("status", ErrorCode.UNKNOWN_ERROR)
                        message = value.get("value") or value.get("message")
                        if not isinstance(message, str):
                            value = message
                            message = message.get("message")
                    else:
                        message = value.get("message", None)
                except ValueError:
                    pass
    
        exception_class: Type[WebDriverException]
        e = ErrorCode()
        error_codes = [item for item in dir(e) if not item.startswith("__")]
        for error_code in error_codes:
            error_info = getattr(ErrorCode, error_code)
            if isinstance(error_info, list) and status in error_info:
                exception_class = getattr(ExceptionMapping, error_code, WebDriverException)
                break
        else:
            exception_class = WebDriverException
    
        if not value:
            value = response["value"]
        if isinstance(value, str):
            raise exception_class(value)
        if message == "" and "message" in value:
            message = value["message"]
    
        screen = None  # type: ignore[assignment]
        if "screen" in value:
            screen = value["screen"]
    
        stacktrace = None
        st_value = value.get("stackTrace") or value.get("stacktrace")
        if st_value:
            if isinstance(st_value, str):
                stacktrace = st_value.split("\n")
            else:
                stacktrace = []
                try:
                    for frame in st_value:
                        line = frame.get("lineNumber", "")
                        file = frame.get("fileName", "<anonymous>")
                        if line:
                            file = f"{file}:{line}"
                        meth = frame.get("methodName", "<anonymous>")
                        if "className" in frame:
                            meth = f"{frame['className']}.{meth}"
                        msg = "    at %s (%s)"
                        msg = msg % (meth, file)
                        stacktrace.append(msg)
                except TypeError:
                    pass
        if exception_class == UnexpectedAlertPresentException:
            alert_text = None
            if "data" in value:
                alert_text = value["data"].get("text")
            elif "alert" in value:
                alert_text = value["alert"].get("text")
            raise exception_class(message, screen, stacktrace, alert_text)  # type: ignore[call-arg]  # mypy is not smart enough here
>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.WebDriverException: Message: unknown error: cannot determine loading status
E       from no such window
E         (Session info: chrome=115.0.5763.0)
E       Stacktrace:
E       #0 0x55ea6583b2b3 <unknown>
E       #1 0x55ea6556b126 <unknown>
E       #2 0x55ea65552efa <unknown>
E       #3 0x55ea655511a8 <unknown>
E       #4 0x55ea65551722 <unknown>
E       #5 0x55ea65561c24 <unknown>
E       #6 0x55ea655627c2 <unknown>
E       #7 0x55ea655753cf <unknown>
E       #8 0x55ea65579bbb <unknown>
E       #9 0x55ea65551dc1 <unknown>
E       #10 0x55ea65575009 <unknown>
E       #11 0x55ea655e0efe <unknown>
E       #12 0x55ea655c8b73 <unknown>
E       #13 0x55ea6559e1ab <unknown>
E       #14 0x55ea6559ef4e <unknown>
E       #15 0x55ea657fc668 <unknown>
E       #16 0x55ea65800627 <unknown>
E       #17 0x55ea6580ab8c <unknown>
E       #18 0x55ea65801253 <unknown>
E       #19 0x55ea657cf927 <unknown>
E       #20 0x55ea65825018 <unknown>
E       #21 0x55ea658251a6 <unknown>
E       #22 0x55ea65833ee3 <unknown>
E       #23 0x7f0793a3ca94 <unknown>
E       #24 0x7f0793ac9a34 __clone

/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/errorhandler.py:229: WebDriverException