Build: #9 failed

Job: QoS basic failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

    Final

nested file is replicated from one storage to storage which id was set as qos requirement in parent dir[1oz 2op deployed]: Test case result

The below summarizes the result of the test " nested file is replicated from one storage to storage which id was set as qos requirement in parent dir[1oz 2op deployed]" in build 9 of Onedata Products - gui acceptance pkg - feature-VFS-12098-test-couchbase-upgrade-to-6.x-from-4.1 - QoS basic.
Description
nested file is replicated from one storage to storage which id was set as qos requirement in parent dir[1oz 2op deployed]
Test class
gui.scenarios.test_qos_basic
Method
test_nested_file_is_replicated_from_one_storage_to_storage_which_id_was_set_as_qos_requirement_in_parent_dir[1oz_2op_deployed]
Duration
5 mins
Status
Failed (Existing Failure)

Error Log

RuntimeError: no  item found in Requirement in QoS tab
web_elem_root = <selenium.webdriver.remote.webelement.WebElement (session="87d3b3bc786a2a4bc8cec4d835d896be", element="7C5EA7089D23FA1FB055BED34E02725C_element_655")>
css_sel = '.qos-status-fulfilled'
err_msg = 'no  item found in Requirement in QoS tab'

    def find_web_elem(web_elem_root, css_sel, err_msg):
        try:
            _scroll_to_css_sel(web_elem_root, css_sel)
>           item = web_elem_root.find_element(By.CSS_SELECTOR, css_sel)

tests/gui/utils/generic.py:148: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/dist-packages/selenium/webdriver/remote/webelement.py:417: in find_element
    return self._execute(Command.FIND_CHILD_ELEMENT, {"using": by, "value": value})["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 0x7fce1e224800>
response = {'status': 404, 'value': '{"value":{"error":"no such element","message":"no such element: Unable to locate element: {\...unknown>\\n#19 0x55a85a3c3ee3 \\u003Cunknown>\\n#20 0x7f248ae75a94 \\u003Cunknown>\\n#21 0x7f248af02a34 __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.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".qos-status-fulfilled"}
E         (Session info: chrome=115.0.5763.0); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
E       Stacktrace:
E       #0 0x55a85a3cb2b3 <unknown>
E       #1 0x55a85a0fb2d7 <unknown>
E       #2 0x55a85a13987b <unknown>
E       #3 0x55a85a139971 <unknown>
E       #4 0x55a85a12f816 <unknown>
E       #5 0x55a85a158dcd <unknown>
E       #6 0x55a85a12f6e6 <unknown>
E       #7 0x55a85a158f6e <unknown>
E       #8 0x55a85a170fe9 <unknown>
E       #9 0x55a85a158b73 <unknown>
E       #10 0x55a85a12e1ab <unknown>
E       #11 0x55a85a12ef4e <unknown>
E       #12 0x55a85a38c668 <unknown>
E       #13 0x55a85a390627 <unknown>
E       #14 0x55a85a39ab8c <unknown>
E       #15 0x55a85a391253 <unknown>
E       #16 0x55a85a35f927 <unknown>
E       #17 0x55a85a3b5018 <unknown>
E       #18 0x55a85a3b51a6 <unknown>
E       #19 0x55a85a3c3ee3 <unknown>
E       #20 0x7f248ae75a94 <unknown>
E       #21 0x7f248af02a34 __clone

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

The above exception was the direct cause of the following exception:

fixturefunc = <function assert_all_qualities_of_service_are_fulfilled at 0x7fce1ee2f380>
request = <FixtureRequest for <Function test_nested_file_is_replicated_from_one_storage_to_storage_which_id_was_set_as_qos_requirement_in_parent_dir[1oz_2op_deployed]>>
kwargs = {'browser_id': 'browser_unified', 'modals': <class 'tests.gui.utils.common.modals.Modals'>, 'selenium': {'browser_emer...om_one_storage_to_storage_which_id_was_set_as_qos_requirement_in_parent_dir[1oz_2op_deployed]>>}, 'state': 'fulfilled'}

    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)
/usr/local/lib/python3.12/dist-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
tests/utils/utils.py:93: in wrapper
    return fun(*args, **kwargs)
tests/gui/steps/oneprovider/qos.py:41: in assert_all_qualities_of_service_are_fulfilled
    assert hasattr(requirement, state), f"No all QoS requirements are {state}"
tests/gui/utils/core/web_elements.py:80: in __get__
    item = super().__get__(instance, owner)
tests/gui/utils/core/web_elements.py:26: in __get__
    return find_web_elem(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

web_elem_root = <selenium.webdriver.remote.webelement.WebElement (session="87d3b3bc786a2a4bc8cec4d835d896be", element="7C5EA7089D23FA1FB055BED34E02725C_element_655")>
css_sel = '.qos-status-fulfilled'
err_msg = 'no  item found in Requirement in QoS tab'

    def find_web_elem(web_elem_root, css_sel, err_msg):
        try:
            _scroll_to_css_sel(web_elem_root, css_sel)
            item = web_elem_root.find_element(By.CSS_SELECTOR, css_sel)
        except NoSuchElementException as exc:
            with suppress(TypeError):
                err_msg = err_msg()
>           raise RuntimeError(err_msg) from exc
E           RuntimeError: no  item found in Requirement in QoS tab

tests/gui/utils/generic.py:152: RuntimeError