GUI acceptance tests using environment deployed from packages.
Build: #2953 failed
Job: Onezone invite tokens with consumer caveats failed
provider succeeds to support space with invite token with consumer caveat set for them[1oz 2op elasticsearch]: Test case result
The below summarizes the result of the test " provider succeeds to support space with invite token with consumer caveat set for them[1oz 2op elasticsearch]" in build 2,953 of Onedata Products - gui acceptance pkg - Onezone invite tokens with consumer caveats.
- Description
- provider succeeds to support space with invite token with consumer caveat set for them[1oz 2op elasticsearch]
- Test class
- gui.scenarios.test_onezone_invite_tokens_with_consumer_caveats
- Method
- test_provider_succeeds_to_support_space_with_invite_token_with_consumer_caveat_set_for_them[1oz_2op_elasticsearch]
- Duration
- 1 min
- Status
- Failed (New Failure)
Error Log
RuntimeError: no item found in Onezone Login page web_elem_root = <tests.conftest.ChromeWithAllLogs (session="92376364eda5b870bab3306bb810540f")> css_sel = 'input[placeholder="Username"]' err_msg = 'no item found in Onezone Login page' 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/webdriver.py:748: in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["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 0x7fa871aa6c90> response = {'status': 404, 'value': '{"value":{"error":"no such element","message":"no such element: Unable to locate element: {\...unknown>\\n#17 0x55c47e71bee3 \\u003Cunknown>\\n#18 0x7f9067c50a94 \\u003Cunknown>\\n#19 0x7f9067cdda34 __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":"input[placeholder="Username"]"} 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 0x55c47e7232b3 <unknown> E #1 0x55c47e4532d7 <unknown> E #2 0x55c47e49187b <unknown> E #3 0x55c47e491971 <unknown> E #4 0x55c47e4cb584 <unknown> E #5 0x55c47e4b0dcd <unknown> E #6 0x55c47e4c8fe9 <unknown> E #7 0x55c47e4b0b73 <unknown> E #8 0x55c47e4861ab <unknown> E #9 0x55c47e486f4e <unknown> E #10 0x55c47e6e4668 <unknown> E #11 0x55c47e6e8627 <unknown> E #12 0x55c47e6f2b8c <unknown> E #13 0x55c47e6e9253 <unknown> E #14 0x55c47e6b7927 <unknown> E #15 0x55c47e70d018 <unknown> E #16 0x55c47e70d1a6 <unknown> E #17 0x55c47e71bee3 <unknown> E #18 0x7f9067c50a94 <unknown> E #19 0x7f9067cdda34 __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 g_login_using_basic_auth at 0x7fa872dd2480> request = <FixtureRequest for <Function test_provider_succeeds_to_support_space_with_invite_token_with_consumer_caveat_set_for_them[1oz_2op_elasticsearch]>> kwargs = {'browser_id_list': '[browser1, browser2]', 'login_page': <class 'tests.gui.utils.common.common.LoginPage'>, 'selenium...th_invite_token_with_consumer_caveat_set_for_them[1oz_2op_elasticsearch]>>}, 'service_list': '[Onezone, Onezone]', ...} 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/common/login.py:74: in g_login_using_basic_auth _login_to_service( tests/gui/steps/common/login.py:56: in _login_to_service _login_using_basic_auth( tests/gui/steps/common/login.py:20: in _login_using_basic_auth login_page.username = username tests/gui/utils/core/web_elements.py:90: in __set__ input_box = super().__get__(instance, type(instance)) tests/gui/utils/core/web_elements.py:26: in __get__ return find_web_elem( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ web_elem_root = <tests.conftest.ChromeWithAllLogs (session="92376364eda5b870bab3306bb810540f")> css_sel = 'input[placeholder="Username"]' err_msg = 'no item found in Onezone Login page' 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 Onezone Login page tests/gui/utils/generic.py:152: RuntimeError