GUI acceptance tests using environment deployed from packages.

Build: #2943 failed

Job: Oneprovider archives audit logs failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

    Final

user sees logs about first 200 successfully archived files and 3 directories after creating archive[1oz 1op deployed]: Test case result

The below summarizes the result of the test " user sees logs about first 200 successfully archived files and 3 directories after creating archive[1oz 1op deployed]" in build 2,943 of Onedata Products - gui acceptance pkg - Oneprovider archives audit logs.
Description
user sees logs about first 200 successfully archived files and 3 directories after creating archive[1oz 1op deployed]
Test class
gui.scenarios.test_oneprovider_archives_audit_logs
Method
test_user_sees_logs_about_first_200_successfully_archived_files_and_3_directories_after_creating_archive[1oz_1op_deployed]
Jira Issue
Duration
6 mins
Status
Failed (Existing Failure)

Error Log

selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: stale element not found in the current frame
  (Session info: chrome=130.0.6723.69); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#stale-element-reference-exception
Stacktrace:
#0 0x561cc4b9110a <unknown>
#1 0x561cc46ac460 <unknown>
#2 0x561cc46b2193 <unknown>
#3 0x561cc46b3e45 <unknown>
#4 0x561cc46b3ecc <unknown>
#5 0x561cc46f3772 <unknown>
#6 0x561cc471d012 <unknown>
#7 0x561cc46ed958 <unknown>
#8 0x561cc471d1de <unknown>
#9 0x561cc473baf6 <unknown>
#10 0x561cc471cdb3 <unknown>
#11 0x561cc46ebc10 <unknown>
#12 0x561cc46ecbee <unknown>
#13 0x561cc4b5d39b <unknown>
#14 0x561cc4b61338 <unknown>
#15 0x561cc4b4aebc <unknown>
#16 0x561cc4b61eb7 <unknown>
#17 0x561cc4b3010f <unknown>
#18 0x561cc4b7f828 <unknown>
#19 0x561cc4b7f9f0 <unknown>
#20 0x561cc4b8ff86 <unknown>
#21 0x7f33db920a94 <unknown>
#22 0x7f33db9ada34 __clone
fixturefunc = <function assert_number_of_first_non_empty_column_content at 0x7f2cfa3bf4c0>
request = <FixtureRequest for <Function test_user_sees_logs_about_first_200_successfully_archived_files_and_3_directories_after_creating_archive[1oz_1op_deployed]>>
kwargs = {'browser_id': 'browser', 'fields': '["Time", "Time taken"]', 'modals': <class 'tests.gui.utils.common.modals.Modals'>, 'number': '203', ...}

    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/utils/bdd_utils.py:78: in wrapper
    return fun(*ba.args, **ba.kwargs)
tests/gui/steps/oneprovider/archives_audit.py:49: in assert_number_of_first_non_empty_column_content
    checked_elems = _scroll_and_check_condition(
tests/gui/steps/oneprovider/archives_audit.py:163: in _scroll_and_check_condition
    visible_elems = modal.get_rows_of_column("File")
tests/gui/utils/common/modals/archives_modals/archive_audit_log.py:62: in get_rows_of_column
    all_rows = [f.text.split("\n") for f in rows_data]
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webelement.py:90: in text
    return self._execute(Command.GET_ELEMENT_TEXT)["value"]
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webelement.py:395: in _execute
    return self._parent.execute(command, params)
/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 0x7f2cf9b76c90>
response = {'status': 404, 'value': '{"value":{"error":"stale element reference","message":"stale element reference: stale elemen...unknown>\\n#20 0x561cc4b8ff86 \\u003Cunknown>\\n#21 0x7f33db920a94 \\u003Cunknown>\\n#22 0x7f33db9ada34 __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.StaleElementReferenceException: Message: stale element reference: stale element not found in the current frame
E         (Session info: chrome=130.0.6723.69); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#stale-element-reference-exception
E       Stacktrace:
E       #0 0x561cc4b9110a <unknown>
E       #1 0x561cc46ac460 <unknown>
E       #2 0x561cc46b2193 <unknown>
E       #3 0x561cc46b3e45 <unknown>
E       #4 0x561cc46b3ecc <unknown>
E       #5 0x561cc46f3772 <unknown>
E       #6 0x561cc471d012 <unknown>
E       #7 0x561cc46ed958 <unknown>
E       #8 0x561cc471d1de <unknown>
E       #9 0x561cc473baf6 <unknown>
E       #10 0x561cc471cdb3 <unknown>
E       #11 0x561cc46ebc10 <unknown>
E       #12 0x561cc46ecbee <unknown>
E       #13 0x561cc4b5d39b <unknown>
E       #14 0x561cc4b61338 <unknown>
E       #15 0x561cc4b4aebc <unknown>
E       #16 0x561cc4b61eb7 <unknown>
E       #17 0x561cc4b3010f <unknown>
E       #18 0x561cc4b7f828 <unknown>
E       #19 0x561cc4b7f9f0 <unknown>
E       #20 0x561cc4b8ff86 <unknown>
E       #21 0x7f33db920a94 <unknown>
E       #22 0x7f33db9ada34 __clone

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