GUI acceptance tests using environment deployed from packages.

Build: #2940 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,940 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
5 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 0x55c3e135510a <unknown>
#1 0x55c3e0e70460 <unknown>
#2 0x55c3e0e76193 <unknown>
#3 0x55c3e0e77e45 <unknown>
#4 0x55c3e0e77ecc <unknown>
#5 0x55c3e0eb7772 <unknown>
#6 0x55c3e0ee1012 <unknown>
#7 0x55c3e0eb1958 <unknown>
#8 0x55c3e0ee11de <unknown>
#9 0x55c3e0effaf6 <unknown>
#10 0x55c3e0ee0db3 <unknown>
#11 0x55c3e0eafc10 <unknown>
#12 0x55c3e0eb0bee <unknown>
#13 0x55c3e132139b <unknown>
#14 0x55c3e1325338 <unknown>
#15 0x55c3e130eebc <unknown>
#16 0x55c3e1325eb7 <unknown>
#17 0x55c3e12f410f <unknown>
#18 0x55c3e1343828 <unknown>
#19 0x55c3e13439f0 <unknown>
#20 0x55c3e1353f86 <unknown>
#21 0x7fd9b7b30a94 <unknown>
#22 0x7fd9b7bbda34 __clone
fixturefunc = <function assert_number_of_first_non_empty_column_content at 0x7fcd1870f100>
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:38: in assert_number_of_first_non_empty_column_content
    _scroll_and_check_condition(browser_id, selenium, modals, 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 0x7fcd179fede0>
response = {'status': 404, 'value': '{"value":{"error":"stale element reference","message":"stale element reference: stale elemen...unknown>\\n#20 0x55c3e1353f86 \\u003Cunknown>\\n#21 0x7fd9b7b30a94 \\u003Cunknown>\\n#22 0x7fd9b7bbda34 __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 0x55c3e135510a <unknown>
E       #1 0x55c3e0e70460 <unknown>
E       #2 0x55c3e0e76193 <unknown>
E       #3 0x55c3e0e77e45 <unknown>
E       #4 0x55c3e0e77ecc <unknown>
E       #5 0x55c3e0eb7772 <unknown>
E       #6 0x55c3e0ee1012 <unknown>
E       #7 0x55c3e0eb1958 <unknown>
E       #8 0x55c3e0ee11de <unknown>
E       #9 0x55c3e0effaf6 <unknown>
E       #10 0x55c3e0ee0db3 <unknown>
E       #11 0x55c3e0eafc10 <unknown>
E       #12 0x55c3e0eb0bee <unknown>
E       #13 0x55c3e132139b <unknown>
E       #14 0x55c3e1325338 <unknown>
E       #15 0x55c3e130eebc <unknown>
E       #16 0x55c3e1325eb7 <unknown>
E       #17 0x55c3e12f410f <unknown>
E       #18 0x55c3e1343828 <unknown>
E       #19 0x55c3e13439f0 <unknown>
E       #20 0x55c3e1353f86 <unknown>
E       #21 0x7fd9b7b30a94 <unknown>
E       #22 0x7fd9b7bbda34 __clone

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