Project: 
https://jenkins.ovirt.org/job/ovirt-system-tests_basic-suite-master_nightly/ 
Build: 
https://jenkins.ovirt.org/job/ovirt-system-tests_basic-suite-master_nightly/1355/
Build Number: 1355
Build Status:  Failure
Triggered By: Started by timer

-------------------------------------
Changes Since Last Success:
-------------------------------------
Changes for Build #1355
[Eitan Raviv] network: add cluster name to hostlib.Host __repr__




-----------------
Failed Tests:
-----------------
2 tests failed.
FAILED:  
basic-suite-master.test-scenarios.test_100_basic_ui_sanity.test_userportal[firefox]

Error Message:
selenium.common.exceptions.WebDriverException: Message: TypeError: 
browsingContextFn().currentWindowGlobal is null

Stack Trace:
ovirt_driver = <ost_utils.selenium.navigation.driver.Driver object at 
0x7f025b5e2d30>
nonadmin_username = 'non_admin_user', nonadmin_password = '123456'
user_login = <function user_login.<locals>.login at 0x7f025b658d08>
engine_webadmin_url = 'https://engine/ovirt-engine'

    def test_userportal(ovirt_driver, nonadmin_username, nonadmin_password,
                        user_login, engine_webadmin_url):
        welcome_screen = WelcomeScreen(ovirt_driver)
        welcome_screen.wait_for_displayed()
        welcome_screen.open_user_portal()
    
        user_login(nonadmin_username, nonadmin_password)
    
        vm_portal = VmPortal(ovirt_driver)
>       vm_portal.wait_for_displayed()

basic-suite-master/test-scenarios/test_100_basic_ui_sanity.py:524: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
ost_utils/ost_utils/selenium/page_objects/Displayable.py:14: in 
wait_for_displayed
    self.ovirt_driver.wait_until('Wait until ' + self.get_displayable_name() + 
' is displayed failed', self.is_displayed)
ost_utils/ost_utils/selenium/navigation/driver.py:131: in wait_until
    *args)
ost_utils/ost_utils/selenium/navigation/driver.py:142: in _wait_until
    ConditionClass(condition_method, *args), message)
.tox/deps/lib/python3.6/site-packages/selenium/webdriver/support/wait.py:71: in 
until
    value = method(self._driver)
ost_utils/ost_utils/selenium/navigation/driver.py:176: in __call__
    return self.condition_method(*self.args)
ost_utils/ost_utils/selenium/page_objects/VmPortal.py:9: in is_displayed
    return self.ovirt_driver.is_id_present('page-router-render-component') and 
not self.ovirt_driver.is_class_name_present('spinner')
ost_utils/ost_utils/selenium/navigation/driver.py:66: in is_id_present
    return self.is_xpath_present(f'//*[@id="{idx}"]')
ost_utils/ost_utils/selenium/navigation/driver.py:84: in is_xpath_present
    xpath
ost_utils/ost_utils/selenium/navigation/driver.py:167: in retry_if_stale
    raise condition.error
ost_utils/ost_utils/selenium/navigation/driver.py:187: in __call__
    self.result = self.method_to_execute(*self.args)
.tox/deps/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py:394:
 in find_element_by_xpath
    return self.find_element(by=By.XPATH, value=xpath)
.tox/deps/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py:978:
 in find_element
    'value': value})['value']
.tox/deps/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py:321:
 in execute
    self.error_handler.check_response(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 
0x7f025b5e2908>
response = {'status': 500, 'value': '{"value":{"error":"unknown 
error","message":"TypeError: 
browsingContextFn().currentWindowGlo...":"getMarionetteCommandsActorProxy/get/<@chrome://marionette/content/actors/MarionetteCommandsParent.jsm:327:29\\n"}}'}

    def check_response(self, response):
        """
        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 status is None or status == ErrorCode.SUCCESS:
            return
        value = None
        message = response.get("message", "")
        screen = response.get("screen", "")
        stacktrace = None
        if isinstance(status, int):
            value_json = response.get('value', None)
            if value_json and isinstance(value_json, basestring):
                import json
                try:
                    value = json.loads(value_json)
                    if len(value.keys()) == 1:
                        value = value['value']
                    status = value.get('error', None)
                    if status is None:
                        status = value["status"]
                        message = value["value"]
                        if not isinstance(message, basestring):
                            value = message
                            message = message.get('message')
                    else:
                        message = value.get('message', None)
                except ValueError:
                    pass
    
        exception_class = ErrorInResponseException
        if status in ErrorCode.NO_SUCH_ELEMENT:
            exception_class = NoSuchElementException
        elif status in ErrorCode.NO_SUCH_FRAME:
            exception_class = NoSuchFrameException
        elif status in ErrorCode.NO_SUCH_WINDOW:
            exception_class = NoSuchWindowException
        elif status in ErrorCode.STALE_ELEMENT_REFERENCE:
            exception_class = StaleElementReferenceException
        elif status in ErrorCode.ELEMENT_NOT_VISIBLE:
            exception_class = ElementNotVisibleException
        elif status in ErrorCode.INVALID_ELEMENT_STATE:
            exception_class = InvalidElementStateException
        elif status in ErrorCode.INVALID_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR_RETURN_TYPER:
            exception_class = InvalidSelectorException
        elif status in ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
            exception_class = ElementNotSelectableException
        elif status in ErrorCode.ELEMENT_NOT_INTERACTABLE:
            exception_class = ElementNotInteractableException
        elif status in ErrorCode.INVALID_COOKIE_DOMAIN:
            exception_class = InvalidCookieDomainException
        elif status in ErrorCode.UNABLE_TO_SET_COOKIE:
            exception_class = UnableToSetCookieException
        elif status in ErrorCode.TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.SCRIPT_TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.UNKNOWN_ERROR:
            exception_class = WebDriverException
        elif status in ErrorCode.UNEXPECTED_ALERT_OPEN:
            exception_class = UnexpectedAlertPresentException
        elif status in ErrorCode.NO_ALERT_OPEN:
            exception_class = NoAlertPresentException
        elif status in ErrorCode.IME_NOT_AVAILABLE:
            exception_class = ImeNotAvailableException
        elif status in ErrorCode.IME_ENGINE_ACTIVATION_FAILED:
            exception_class = ImeActivationFailedException
        elif status in ErrorCode.MOVE_TARGET_OUT_OF_BOUNDS:
            exception_class = MoveTargetOutOfBoundsException
        elif status in ErrorCode.JAVASCRIPT_ERROR:
            exception_class = JavascriptException
        elif status in ErrorCode.SESSION_NOT_CREATED:
            exception_class = SessionNotCreatedException
        elif status in ErrorCode.INVALID_ARGUMENT:
            exception_class = InvalidArgumentException
        elif status in ErrorCode.NO_SUCH_COOKIE:
            exception_class = NoSuchCookieException
        elif status in ErrorCode.UNABLE_TO_CAPTURE_SCREEN:
            exception_class = ScreenshotException
        elif status in ErrorCode.ELEMENT_CLICK_INTERCEPTED:
            exception_class = ElementClickInterceptedException
        elif status in ErrorCode.INSECURE_CERTIFICATE:
            exception_class = InsecureCertificateException
        elif status in ErrorCode.INVALID_COORDINATES:
            exception_class = InvalidCoordinatesException
        elif status in ErrorCode.INVALID_SESSION_ID:
            exception_class = InvalidSessionIdException
        elif status in ErrorCode.UNKNOWN_METHOD:
            exception_class = UnknownMethodException
        else:
            exception_class = WebDriverException
        if value == '' or value is None:
            value = response['value']
        if isinstance(value, basestring):
            if exception_class == ErrorInResponseException:
                raise exception_class(response, value)
            raise exception_class(value)
        if message == "" and 'message' in value:
            message = value['message']
    
        screen = None
        if 'screen' in value:
            screen = value['screen']
    
        stacktrace = None
        if 'stackTrace' in value and value['stackTrace']:
            stacktrace = []
            try:
                for frame in value['stackTrace']:
                    line = self._value_or_default(frame, 'lineNumber', '')
                    file = self._value_or_default(frame, 'fileName', 
'<anonymous>')
                    if line:
                        file = "%s:%s" % (file, line)
                    meth = self._value_or_default(frame, 'methodName', 
'<anonymous>')
                    if 'className' in frame:
                        meth = "%s.%s" % (frame['className'], meth)
                    msg = "    at %s (%s)"
                    msg = msg % (meth, file)
                    stacktrace.append(msg)
            except TypeError:
                pass
        if exception_class == ErrorInResponseException:
            raise exception_class(response, message)
        elif 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)
>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.WebDriverException: Message: TypeError: 
browsingContextFn().currentWindowGlobal is null

.tox/deps/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py:242:
 WebDriverException

FAILED:  
basic-suite-master.test-scenarios.test_100_basic_ui_sanity.test_userportal[firefox]

Error Message:
failed on teardown with "selenium.common.exceptions.WebDriverException: 
Message: Failed to decode response from marionette"

Stack Trace:
request = <SubRequest 'after_test' for <Function test_userportal[firefox]>>
save_screenshot = <function save_screenshot.<locals>.save at 0x7f025b7d2840>
save_page_source = <function save_page_source.<locals>.save at 0x7f025b7d2b70>
save_console_log = <function save_console_log.<locals>.save at 0x7f025b7d2bf8>

    @pytest.fixture(scope="function", autouse=True)
    def after_test(request, save_screenshot, save_page_source, 
save_console_log):
        yield
        test_name = request.node.originalname
        if request.session.testsfailed:
            failed_file_name = test_name + "_failed"
>           save_screenshot(failed_file_name)

basic-suite-master/test-scenarios/test_100_basic_ui_sanity.py:240: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
basic-suite-master/test-scenarios/test_100_basic_ui_sanity.py:212: in save
    ovirt_driver.save_screenshot(selenium_artifact_full_path(description, 
'png'))
ost_utils/ost_utils/selenium/navigation/driver.py:50: in save_screenshot
    self.driver.save_screenshot(path)
.tox/deps/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py:1055:
 in save_screenshot
    return self.get_screenshot_as_file(filename)
.tox/deps/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py:1032:
 in get_screenshot_as_file
    png = self.get_screenshot_as_png()
.tox/deps/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py:1064:
 in get_screenshot_as_png
    return base64.b64decode(self.get_screenshot_as_base64().encode('ascii'))
.tox/deps/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py:1074:
 in get_screenshot_as_base64
    return self.execute(Command.SCREENSHOT)['value']
.tox/deps/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py:321:
 in execute
    self.error_handler.check_response(response)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 
0x7f025b5e2908>
response = {'status': 500, 'value': '{"value":{"error":"unknown 
error","message":"Failed to decode response from marionette","stacktrace":""}}'}

    def check_response(self, response):
        """
        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 status is None or status == ErrorCode.SUCCESS:
            return
        value = None
        message = response.get("message", "")
        screen = response.get("screen", "")
        stacktrace = None
        if isinstance(status, int):
            value_json = response.get('value', None)
            if value_json and isinstance(value_json, basestring):
                import json
                try:
                    value = json.loads(value_json)
                    if len(value.keys()) == 1:
                        value = value['value']
                    status = value.get('error', None)
                    if status is None:
                        status = value["status"]
                        message = value["value"]
                        if not isinstance(message, basestring):
                            value = message
                            message = message.get('message')
                    else:
                        message = value.get('message', None)
                except ValueError:
                    pass
    
        exception_class = ErrorInResponseException
        if status in ErrorCode.NO_SUCH_ELEMENT:
            exception_class = NoSuchElementException
        elif status in ErrorCode.NO_SUCH_FRAME:
            exception_class = NoSuchFrameException
        elif status in ErrorCode.NO_SUCH_WINDOW:
            exception_class = NoSuchWindowException
        elif status in ErrorCode.STALE_ELEMENT_REFERENCE:
            exception_class = StaleElementReferenceException
        elif status in ErrorCode.ELEMENT_NOT_VISIBLE:
            exception_class = ElementNotVisibleException
        elif status in ErrorCode.INVALID_ELEMENT_STATE:
            exception_class = InvalidElementStateException
        elif status in ErrorCode.INVALID_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR \
                or status in ErrorCode.INVALID_XPATH_SELECTOR_RETURN_TYPER:
            exception_class = InvalidSelectorException
        elif status in ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
            exception_class = ElementNotSelectableException
        elif status in ErrorCode.ELEMENT_NOT_INTERACTABLE:
            exception_class = ElementNotInteractableException
        elif status in ErrorCode.INVALID_COOKIE_DOMAIN:
            exception_class = InvalidCookieDomainException
        elif status in ErrorCode.UNABLE_TO_SET_COOKIE:
            exception_class = UnableToSetCookieException
        elif status in ErrorCode.TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.SCRIPT_TIMEOUT:
            exception_class = TimeoutException
        elif status in ErrorCode.UNKNOWN_ERROR:
            exception_class = WebDriverException
        elif status in ErrorCode.UNEXPECTED_ALERT_OPEN:
            exception_class = UnexpectedAlertPresentException
        elif status in ErrorCode.NO_ALERT_OPEN:
            exception_class = NoAlertPresentException
        elif status in ErrorCode.IME_NOT_AVAILABLE:
            exception_class = ImeNotAvailableException
        elif status in ErrorCode.IME_ENGINE_ACTIVATION_FAILED:
            exception_class = ImeActivationFailedException
        elif status in ErrorCode.MOVE_TARGET_OUT_OF_BOUNDS:
            exception_class = MoveTargetOutOfBoundsException
        elif status in ErrorCode.JAVASCRIPT_ERROR:
            exception_class = JavascriptException
        elif status in ErrorCode.SESSION_NOT_CREATED:
            exception_class = SessionNotCreatedException
        elif status in ErrorCode.INVALID_ARGUMENT:
            exception_class = InvalidArgumentException
        elif status in ErrorCode.NO_SUCH_COOKIE:
            exception_class = NoSuchCookieException
        elif status in ErrorCode.UNABLE_TO_CAPTURE_SCREEN:
            exception_class = ScreenshotException
        elif status in ErrorCode.ELEMENT_CLICK_INTERCEPTED:
            exception_class = ElementClickInterceptedException
        elif status in ErrorCode.INSECURE_CERTIFICATE:
            exception_class = InsecureCertificateException
        elif status in ErrorCode.INVALID_COORDINATES:
            exception_class = InvalidCoordinatesException
        elif status in ErrorCode.INVALID_SESSION_ID:
            exception_class = InvalidSessionIdException
        elif status in ErrorCode.UNKNOWN_METHOD:
            exception_class = UnknownMethodException
        else:
            exception_class = WebDriverException
        if value == '' or value is None:
            value = response['value']
        if isinstance(value, basestring):
            if exception_class == ErrorInResponseException:
                raise exception_class(response, value)
            raise exception_class(value)
        if message == "" and 'message' in value:
            message = value['message']
    
        screen = None
        if 'screen' in value:
            screen = value['screen']
    
        stacktrace = None
        if 'stackTrace' in value and value['stackTrace']:
            stacktrace = []
            try:
                for frame in value['stackTrace']:
                    line = self._value_or_default(frame, 'lineNumber', '')
                    file = self._value_or_default(frame, 'fileName', 
'<anonymous>')
                    if line:
                        file = "%s:%s" % (file, line)
                    meth = self._value_or_default(frame, 'methodName', 
'<anonymous>')
                    if 'className' in frame:
                        meth = "%s.%s" % (frame['className'], meth)
                    msg = "    at %s (%s)"
                    msg = msg % (meth, file)
                    stacktrace.append(msg)
            except TypeError:
                pass
        if exception_class == ErrorInResponseException:
            raise exception_class(response, message)
        elif 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)
>       raise exception_class(message, screen, stacktrace)
E       selenium.common.exceptions.WebDriverException: Message: Failed to 
decode response from marionette

.tox/deps/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py:242:
 WebDriverException
_______________________________________________
Infra mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/2NNLVPO4OMEPNU6O4GGNE36PRA7O677V/

Reply via email to