chore(deps): update all dependencies #524
test-report-9.0.6__firefox_test_splunk_ta_example_addon_account ❌
❌ test-results/test.xml
60 tests were completed in 5567s with 0 passed, 59 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 59❌ | 1⚪ | 5567s |
❌ pytest
tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount
❌ test_account_default_rows_in_table
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eaf2170>
❌ test_account_sort_functionality
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eaf1750>
❌ test_account_count
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4a00>
❌ test_accounts_filter_functionality_negative
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae5000>
❌ test_accounts_filter_functionality_positive
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4130>
❌ test_account_pagination
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4a60>
❌ test_account_title_and_description
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4940>
❌ test_account_add_valid_title
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae6350>
❌ test_account_edit_valid_title
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae7100>
❌ test_account_clone_valid_title
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae5c90>
❌ test_account_delete_valid_title
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae6950>
❌ test_account_add_close_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae6860>
❌ test_account_add_cancel_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae7910>
❌ test_account_delete_close_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae5d20>
❌ test_account_delete_cancel_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae72b0>
❌ test_account_edit_close_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1ebc8c10>
❌ test_account_edit_cancel_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1ebc93f0>
❌ test_account_clone_close_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1ebc9d20>
❌ test_account_clone_cancel_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1ebcad40>
❌ test_account_delete_valid_prompt_message
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1ebc8d60>
❌ test_account_required_field_username
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e923df0>
❌ test_account_required_field_password
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e923f40>
❌ test_account_encrypted_field_password
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e923430>
❌ test_account_required_field_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e9238b0>
❌ test_account_basic_fields_label_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e920250>
❌ test_account_oauth_fields_label_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e921e70>
❌ test_account_fields_placeholder_value
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e921c00>
❌ test_account_help_text_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1ebc9ae0>
⚪ test_account_required_field_example_environment
❌ test_account_required_field_example_multiple_select
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e921b10>
❌ test_account_required_field_client_id
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e921bd0>
❌ test_account_required_field_client_secret
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e920f10>
❌ test_account_encrypted_field_client_secret
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e920910>
❌ test_account_valid_account_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e9206d0>
❌ test_account_valid_length_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e9213c0>
❌ test_account_default_value_example_environment
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e920a60>
❌ test_account_list_example_environment
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e9228f0>
❌ test_account_default_value_auth_type
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e922d70>
❌ test_account_list_auth_type
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e923010>
❌ test_account_checked_example_checkbox
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e922b90>
❌ test_account_select_value_example_environment
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffb5b0>
❌ test_account_list_example_multiple_select
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffb5e0>
❌ test_account_select_value_example_multiple_select
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffae60>
❌ test_account_search_value_example_multiple_select
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffb0a0>
❌ test_account_default_value_example_radio
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e9236d0>
❌ test_add_account_duplicate_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1e922bc0>
❌ test_account_delete_row_frontend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffb940>
❌ test_account_edit_uneditable_field_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffb8e0>
❌ test_account_credentials_encrypted_value
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffbbb0>
❌ test_account_add_frontend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffbf10>
❌ test_account_edit_frontend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffa6b0>
❌ test_clone_account_duplicate_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffa410>
❌ test_account_clone_frontend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffa230>
❌ test_account_clone_default_values
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cff9f30>
❌ test_account_add_backend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cff9c30>
❌ test_account_edit_backend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cff97e0>
❌ test_account_clone_backend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cffaa70>
❌ test_account_delete_row_backend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cff91b0>
❌ test_account_helplink
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cff8dc0>
❌ test_account_delete_account_in_use
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1cff8ac0>
Annotations
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_account_default_rows_in_table
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eaf2170>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eaf2170>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1d0e3730>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
def test_account_default_rows_in_table(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies the default number of rows in the table"""
> account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
tests/ui/test_splunk_ta_example_addon_account.py:96:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1d0e39d0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1d0e3730>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self,
ucc_smartx_selenium_helper=None,
ucc_smartx_rest_helper=None,
open_page=True,
):
"""
:param ucc_smartx_selenium_helper: smartx configuration fixture
"""
> super().__init__(ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page)
tests/ui/Example_UccLib/account.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1d0e39d0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1d0e3730>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page=True
):
"""
:param ucc_smartx_selenium_helper: The selenium webdriver
:param ucc_smartx_rest_helper: Splunk web & management url. {"web": , "mgmt": }
"""
if ucc_smartx_selenium_helper:
self.browser = ucc_smartx_selenium_helper.browser
self.splunk_web_url = ucc_smartx_selenium_helper.splunk_web_url
if open_page:
> self.open()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/pages/page.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1d0e39d0>
def open(self):
"""
Open the required page. Page(super) class opens the page by default.
"""
self.browser.get(
"{}/en-US/app/Splunk_TA_UCCExample/configuration".format(
self.splunk_web_url
)
)
tab = Tab(self.browser)
> tab.open_tab("account")
tests/ui/Example_UccLib/account.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1d0e3ac0>
tab = 'account'
def open_tab(self, tab):
"""
Open a specified tab
:param tab: id of the tab
"""
> self.wait_for("container")
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/tabs.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1d0e3ac0>
key = 'container', msg = 'container element is not present', timeout = None
def wait_for(self, key, msg=None, timeout=None):
"""
if key in element, Wait for an web element to be visible. Raises TimeoutException if the element not found.
if key is a condition, wait for the condition to be true.
:param key: The key of the element mentioned in self.elements
:param msg: The error-msg which should be mentioned in the TimeoutException
:param timeout: The amount of time specified to wait for the wait function
"""
if timeout:
wait = WebDriverWait(self.browser, timeout)
else:
wait = self.wait
if key in self.elements:
if not msg:
msg = "{} element is not present".format(key)
> return wait.until(EC.presence_of_element_located(self.get_tuple(key)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="5b2efac29b3549dcbb33eaff959435d2")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f5e1d0e1840>
message = 'container element is not present'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: container element is not present
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_account_sort_functionality
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eaf1750>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eaf1750>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1ca399c0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
add_multiple_account = None
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
def test_account_sort_functionality(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_multiple_account
):
"""Verifies sorting functionality for name column"""
> account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
tests/ui/test_splunk_ta_example_addon_account.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1ca39b40>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1ca399c0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self,
ucc_smartx_selenium_helper=None,
ucc_smartx_rest_helper=None,
open_page=True,
):
"""
:param ucc_smartx_selenium_helper: smartx configuration fixture
"""
> super().__init__(ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page)
tests/ui/Example_UccLib/account.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1ca39b40>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1ca399c0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page=True
):
"""
:param ucc_smartx_selenium_helper: The selenium webdriver
:param ucc_smartx_rest_helper: Splunk web & management url. {"web": , "mgmt": }
"""
if ucc_smartx_selenium_helper:
self.browser = ucc_smartx_selenium_helper.browser
self.splunk_web_url = ucc_smartx_selenium_helper.splunk_web_url
if open_page:
> self.open()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/pages/page.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1ca39b40>
def open(self):
"""
Open the required page. Page(super) class opens the page by default.
"""
self.browser.get(
"{}/en-US/app/Splunk_TA_UCCExample/configuration".format(
self.splunk_web_url
)
)
tab = Tab(self.browser)
> tab.open_tab("account")
tests/ui/Example_UccLib/account.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1ca39c30>
tab = 'account'
def open_tab(self, tab):
"""
Open a specified tab
:param tab: id of the tab
"""
> self.wait_for("container")
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/tabs.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1ca39c30>
key = 'container', msg = 'container element is not present', timeout = None
def wait_for(self, key, msg=None, timeout=None):
"""
if key in element, Wait for an web element to be visible. Raises TimeoutException if the element not found.
if key is a condition, wait for the condition to be true.
:param key: The key of the element mentioned in self.elements
:param msg: The error-msg which should be mentioned in the TimeoutException
:param timeout: The amount of time specified to wait for the wait function
"""
if timeout:
wait = WebDriverWait(self.browser, timeout)
else:
wait = self.wait
if key in self.elements:
if not msg:
msg = "{} element is not present".format(key)
> return wait.until(EC.presence_of_element_located(self.get_tuple(key)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="f684e423a4e94c7aad28e8f5ca6b9677")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f5e1ca396c0>
message = 'container element is not present'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: container element is not present
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_account_count
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4a00>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4a00>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cab55d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
add_multiple_account = None
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
def test_account_count(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_multiple_account
):
"""Verifies count on table"""
> account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
tests/ui/test_splunk_ta_example_addon_account.py:123:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cab47f0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cab55d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self,
ucc_smartx_selenium_helper=None,
ucc_smartx_rest_helper=None,
open_page=True,
):
"""
:param ucc_smartx_selenium_helper: smartx configuration fixture
"""
> super().__init__(ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page)
tests/ui/Example_UccLib/account.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cab47f0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cab55d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page=True
):
"""
:param ucc_smartx_selenium_helper: The selenium webdriver
:param ucc_smartx_rest_helper: Splunk web & management url. {"web": , "mgmt": }
"""
if ucc_smartx_selenium_helper:
self.browser = ucc_smartx_selenium_helper.browser
self.splunk_web_url = ucc_smartx_selenium_helper.splunk_web_url
if open_page:
> self.open()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/pages/page.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cab47f0>
def open(self):
"""
Open the required page. Page(super) class opens the page by default.
"""
self.browser.get(
"{}/en-US/app/Splunk_TA_UCCExample/configuration".format(
self.splunk_web_url
)
)
tab = Tab(self.browser)
> tab.open_tab("account")
tests/ui/Example_UccLib/account.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cab4af0>
tab = 'account'
def open_tab(self, tab):
"""
Open a specified tab
:param tab: id of the tab
"""
> self.wait_for("container")
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/tabs.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cab4af0>
key = 'container', msg = 'container element is not present', timeout = None
def wait_for(self, key, msg=None, timeout=None):
"""
if key in element, Wait for an web element to be visible. Raises TimeoutException if the element not found.
if key is a condition, wait for the condition to be true.
:param key: The key of the element mentioned in self.elements
:param msg: The error-msg which should be mentioned in the TimeoutException
:param timeout: The amount of time specified to wait for the wait function
"""
if timeout:
wait = WebDriverWait(self.browser, timeout)
else:
wait = self.wait
if key in self.elements:
if not msg:
msg = "{} element is not present".format(key)
> return wait.until(EC.presence_of_element_located(self.get_tuple(key)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="8d9332183fbf46a3a156af6a3a51b4d9")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f5e1cab4ee0>
message = 'container element is not present'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: container element is not present
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_accounts_filter_functionality_negative
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae5000>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae5000>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cf85150>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
add_account = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ... 'links': {'create': '/servicesNS/nobody/Splunk_TA_UCCExample/splunk_ta_uccexample_account/_new'}, 'messages': [], ...}
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
def test_accounts_filter_functionality_negative(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_account
):
"""Verifies the filter functionality (Negative)"""
> account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
tests/ui/test_splunk_ta_example_addon_account.py:136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cf856f0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cf85150>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self,
ucc_smartx_selenium_helper=None,
ucc_smartx_rest_helper=None,
open_page=True,
):
"""
:param ucc_smartx_selenium_helper: smartx configuration fixture
"""
> super().__init__(ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page)
tests/ui/Example_UccLib/account.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cf856f0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cf85150>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page=True
):
"""
:param ucc_smartx_selenium_helper: The selenium webdriver
:param ucc_smartx_rest_helper: Splunk web & management url. {"web": , "mgmt": }
"""
if ucc_smartx_selenium_helper:
self.browser = ucc_smartx_selenium_helper.browser
self.splunk_web_url = ucc_smartx_selenium_helper.splunk_web_url
if open_page:
> self.open()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/pages/page.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cf856f0>
def open(self):
"""
Open the required page. Page(super) class opens the page by default.
"""
self.browser.get(
"{}/en-US/app/Splunk_TA_UCCExample/configuration".format(
self.splunk_web_url
)
)
tab = Tab(self.browser)
> tab.open_tab("account")
tests/ui/Example_UccLib/account.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cf856c0>
tab = 'account'
def open_tab(self, tab):
"""
Open a specified tab
:param tab: id of the tab
"""
> self.wait_for("container")
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/tabs.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cf856c0>
key = 'container', msg = 'container element is not present', timeout = None
def wait_for(self, key, msg=None, timeout=None):
"""
if key in element, Wait for an web element to be visible. Raises TimeoutException if the element not found.
if key is a condition, wait for the condition to be true.
:param key: The key of the element mentioned in self.elements
:param msg: The error-msg which should be mentioned in the TimeoutException
:param timeout: The amount of time specified to wait for the wait function
"""
if timeout:
wait = WebDriverWait(self.browser, timeout)
else:
wait = self.wait
if key in self.elements:
if not msg:
msg = "{} element is not present".format(key)
> return wait.until(EC.presence_of_element_located(self.get_tuple(key)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="36795c58b4d0431b8ca950e00f179951")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f5e1cf85c30>
message = 'container element is not present'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: container element is not present
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_accounts_filter_functionality_positive
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4130>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4130>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cb4d930>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
add_account = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ... 'links': {'create': '/servicesNS/nobody/Splunk_TA_UCCExample/splunk_ta_uccexample_account/_new'}, 'messages': [], ...}
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
def test_accounts_filter_functionality_positive(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_account
):
"""Verifies the filter functionality (Positive)"""
> account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
tests/ui/test_splunk_ta_example_addon_account.py:152:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cb4de70>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cb4d930>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self,
ucc_smartx_selenium_helper=None,
ucc_smartx_rest_helper=None,
open_page=True,
):
"""
:param ucc_smartx_selenium_helper: smartx configuration fixture
"""
> super().__init__(ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page)
tests/ui/Example_UccLib/account.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cb4de70>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cb4d930>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page=True
):
"""
:param ucc_smartx_selenium_helper: The selenium webdriver
:param ucc_smartx_rest_helper: Splunk web & management url. {"web": , "mgmt": }
"""
if ucc_smartx_selenium_helper:
self.browser = ucc_smartx_selenium_helper.browser
self.splunk_web_url = ucc_smartx_selenium_helper.splunk_web_url
if open_page:
> self.open()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/pages/page.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cb4de70>
def open(self):
"""
Open the required page. Page(super) class opens the page by default.
"""
self.browser.get(
"{}/en-US/app/Splunk_TA_UCCExample/configuration".format(
self.splunk_web_url
)
)
tab = Tab(self.browser)
> tab.open_tab("account")
tests/ui/Example_UccLib/account.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cb4f2b0>
tab = 'account'
def open_tab(self, tab):
"""
Open a specified tab
:param tab: id of the tab
"""
> self.wait_for("container")
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/tabs.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cb4f2b0>
key = 'container', msg = 'container element is not present', timeout = None
def wait_for(self, key, msg=None, timeout=None):
"""
if key in element, Wait for an web element to be visible. Raises TimeoutException if the element not found.
if key is a condition, wait for the condition to be true.
:param key: The key of the element mentioned in self.elements
:param msg: The error-msg which should be mentioned in the TimeoutException
:param timeout: The amount of time specified to wait for the wait function
"""
if timeout:
wait = WebDriverWait(self.browser, timeout)
else:
wait = self.wait
if key in self.elements:
if not msg:
msg = "{} element is not present".format(key)
> return wait.until(EC.presence_of_element_located(self.get_tuple(key)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="407b343ac8834895baf5a45c8bda8e82")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f5e1cb4f250>
message = 'container element is not present'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: container element is not present
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_account_pagination
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4a60>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4a60>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cab7070>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
add_multiple_account = None
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
def test_account_pagination(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_multiple_account
):
"""Verifies pagination list"""
> account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
tests/ui/test_splunk_ta_example_addon_account.py:168:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cab5a50>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cab7070>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self,
ucc_smartx_selenium_helper=None,
ucc_smartx_rest_helper=None,
open_page=True,
):
"""
:param ucc_smartx_selenium_helper: smartx configuration fixture
"""
> super().__init__(ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page)
tests/ui/Example_UccLib/account.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cab5a50>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cab7070>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page=True
):
"""
:param ucc_smartx_selenium_helper: The selenium webdriver
:param ucc_smartx_rest_helper: Splunk web & management url. {"web": , "mgmt": }
"""
if ucc_smartx_selenium_helper:
self.browser = ucc_smartx_selenium_helper.browser
self.splunk_web_url = ucc_smartx_selenium_helper.splunk_web_url
if open_page:
> self.open()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/pages/page.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cab5a50>
def open(self):
"""
Open the required page. Page(super) class opens the page by default.
"""
self.browser.get(
"{}/en-US/app/Splunk_TA_UCCExample/configuration".format(
self.splunk_web_url
)
)
tab = Tab(self.browser)
> tab.open_tab("account")
tests/ui/Example_UccLib/account.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cab5180>
tab = 'account'
def open_tab(self, tab):
"""
Open a specified tab
:param tab: id of the tab
"""
> self.wait_for("container")
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/tabs.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cab5180>
key = 'container', msg = 'container element is not present', timeout = None
def wait_for(self, key, msg=None, timeout=None):
"""
if key in element, Wait for an web element to be visible. Raises TimeoutException if the element not found.
if key is a condition, wait for the condition to be true.
:param key: The key of the element mentioned in self.elements
:param msg: The error-msg which should be mentioned in the TimeoutException
:param timeout: The amount of time specified to wait for the wait function
"""
if timeout:
wait = WebDriverWait(self.browser, timeout)
else:
wait = self.wait
if key in self.elements:
if not msg:
msg = "{} element is not present".format(key)
> return wait.until(EC.presence_of_element_located(self.get_tuple(key)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="5887be10ffa74d37b352066380369061")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f5e1cab7670>
message = 'container element is not present'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: container element is not present
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_account_title_and_description
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4940>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae4940>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cef79a0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
def test_account_title_and_description(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies the title and description of the page"""
> account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
tests/ui/test_splunk_ta_example_addon_account.py:185:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cef6680>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cef79a0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self,
ucc_smartx_selenium_helper=None,
ucc_smartx_rest_helper=None,
open_page=True,
):
"""
:param ucc_smartx_selenium_helper: smartx configuration fixture
"""
> super().__init__(ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page)
tests/ui/Example_UccLib/account.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cef6680>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cef79a0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page=True
):
"""
:param ucc_smartx_selenium_helper: The selenium webdriver
:param ucc_smartx_rest_helper: Splunk web & management url. {"web": , "mgmt": }
"""
if ucc_smartx_selenium_helper:
self.browser = ucc_smartx_selenium_helper.browser
self.splunk_web_url = ucc_smartx_selenium_helper.splunk_web_url
if open_page:
> self.open()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/pages/page.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cef6680>
def open(self):
"""
Open the required page. Page(super) class opens the page by default.
"""
self.browser.get(
"{}/en-US/app/Splunk_TA_UCCExample/configuration".format(
self.splunk_web_url
)
)
tab = Tab(self.browser)
> tab.open_tab("account")
tests/ui/Example_UccLib/account.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cef7820>
tab = 'account'
def open_tab(self, tab):
"""
Open a specified tab
:param tab: id of the tab
"""
> self.wait_for("container")
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/tabs.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cef7820>
key = 'container', msg = 'container element is not present', timeout = None
def wait_for(self, key, msg=None, timeout=None):
"""
if key in element, Wait for an web element to be visible. Raises TimeoutException if the element not found.
if key is a condition, wait for the condition to be true.
:param key: The key of the element mentioned in self.elements
:param msg: The error-msg which should be mentioned in the TimeoutException
:param timeout: The amount of time specified to wait for the wait function
"""
if timeout:
wait = WebDriverWait(self.browser, timeout)
else:
wait = self.wait
if key in self.elements:
if not msg:
msg = "{} element is not present".format(key)
> return wait.until(EC.presence_of_element_located(self.get_tuple(key)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="b1abb89e69d54febbc9d420a98993864")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f5e1cef5de0>
message = 'container element is not present'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: container element is not present
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_account_add_valid_title
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae6350>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae6350>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1caf34f0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
def test_account_add_valid_title(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies the title of the 'Add Entity'"""
> account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
tests/ui/test_splunk_ta_example_addon_account.py:196:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1caf13c0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1caf34f0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self,
ucc_smartx_selenium_helper=None,
ucc_smartx_rest_helper=None,
open_page=True,
):
"""
:param ucc_smartx_selenium_helper: smartx configuration fixture
"""
> super().__init__(ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page)
tests/ui/Example_UccLib/account.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1caf13c0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1caf34f0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page=True
):
"""
:param ucc_smartx_selenium_helper: The selenium webdriver
:param ucc_smartx_rest_helper: Splunk web & management url. {"web": , "mgmt": }
"""
if ucc_smartx_selenium_helper:
self.browser = ucc_smartx_selenium_helper.browser
self.splunk_web_url = ucc_smartx_selenium_helper.splunk_web_url
if open_page:
> self.open()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/pages/page.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1caf13c0>
def open(self):
"""
Open the required page. Page(super) class opens the page by default.
"""
self.browser.get(
"{}/en-US/app/Splunk_TA_UCCExample/configuration".format(
self.splunk_web_url
)
)
tab = Tab(self.browser)
> tab.open_tab("account")
tests/ui/Example_UccLib/account.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1caf1c00>
tab = 'account'
def open_tab(self, tab):
"""
Open a specified tab
:param tab: id of the tab
"""
> self.wait_for("container")
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/tabs.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1caf1c00>
key = 'container', msg = 'container element is not present', timeout = None
def wait_for(self, key, msg=None, timeout=None):
"""
if key in element, Wait for an web element to be visible. Raises TimeoutException if the element not found.
if key is a condition, wait for the condition to be true.
:param key: The key of the element mentioned in self.elements
:param msg: The error-msg which should be mentioned in the TimeoutException
:param timeout: The amount of time specified to wait for the wait function
"""
if timeout:
wait = WebDriverWait(self.browser, timeout)
else:
wait = self.wait
if key in self.elements:
if not msg:
msg = "{} element is not present".format(key)
> return wait.until(EC.presence_of_element_located(self.get_tuple(key)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="b40dd7c7c0ce4753a27ec82d7d39398b")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f5e1caf3250>
message = 'container element is not present'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: container element is not present
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_account_edit_valid_title
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae7100>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae7100>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cfad090>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
add_account = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ... 'links': {'create': '/servicesNS/nobody/Splunk_TA_UCCExample/splunk_ta_uccexample_account/_new'}, 'messages': [], ...}
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
def test_account_edit_valid_title(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_account
):
"""Verifies the title of the 'Edit Entity'"""
> account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
tests/ui/test_splunk_ta_example_addon_account.py:210:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cfadd80>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cfad090>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self,
ucc_smartx_selenium_helper=None,
ucc_smartx_rest_helper=None,
open_page=True,
):
"""
:param ucc_smartx_selenium_helper: smartx configuration fixture
"""
> super().__init__(ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page)
tests/ui/Example_UccLib/account.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cfadd80>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cfad090>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page=True
):
"""
:param ucc_smartx_selenium_helper: The selenium webdriver
:param ucc_smartx_rest_helper: Splunk web & management url. {"web": , "mgmt": }
"""
if ucc_smartx_selenium_helper:
self.browser = ucc_smartx_selenium_helper.browser
self.splunk_web_url = ucc_smartx_selenium_helper.splunk_web_url
if open_page:
> self.open()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/pages/page.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cfadd80>
def open(self):
"""
Open the required page. Page(super) class opens the page by default.
"""
self.browser.get(
"{}/en-US/app/Splunk_TA_UCCExample/configuration".format(
self.splunk_web_url
)
)
tab = Tab(self.browser)
> tab.open_tab("account")
tests/ui/Example_UccLib/account.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cfadb10>
tab = 'account'
def open_tab(self, tab):
"""
Open a specified tab
:param tab: id of the tab
"""
> self.wait_for("container")
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/tabs.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cfadb10>
key = 'container', msg = 'container element is not present', timeout = None
def wait_for(self, key, msg=None, timeout=None):
"""
if key in element, Wait for an web element to be visible. Raises TimeoutException if the element not found.
if key is a condition, wait for the condition to be true.
:param key: The key of the element mentioned in self.elements
:param msg: The error-msg which should be mentioned in the TimeoutException
:param timeout: The amount of time specified to wait for the wait function
"""
if timeout:
wait = WebDriverWait(self.browser, timeout)
else:
wait = self.wait
if key in self.elements:
if not msg:
msg = "{} element is not present".format(key)
> return wait.until(EC.presence_of_element_located(self.get_tuple(key)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="7998e75081114a78b8d0d7faa38452fa")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f5e1cfaf0a0>
message = 'container element is not present'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: container element is not present
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_account_clone_valid_title
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae5c90>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae5c90>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cb31300>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
add_account = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ... 'links': {'create': '/servicesNS/nobody/Splunk_TA_UCCExample/splunk_ta_uccexample_account/_new'}, 'messages': [], ...}
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
def test_account_clone_valid_title(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_account
):
"""Verifies the title of the 'Clone Entity'"""
> account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
tests/ui/test_splunk_ta_example_addon_account.py:224:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cb312a0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cb31300>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self,
ucc_smartx_selenium_helper=None,
ucc_smartx_rest_helper=None,
open_page=True,
):
"""
:param ucc_smartx_selenium_helper: smartx configuration fixture
"""
> super().__init__(ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page)
tests/ui/Example_UccLib/account.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cb312a0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cb31300>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page=True
):
"""
:param ucc_smartx_selenium_helper: The selenium webdriver
:param ucc_smartx_rest_helper: Splunk web & management url. {"web": , "mgmt": }
"""
if ucc_smartx_selenium_helper:
self.browser = ucc_smartx_selenium_helper.browser
self.splunk_web_url = ucc_smartx_selenium_helper.splunk_web_url
if open_page:
> self.open()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/pages/page.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cb312a0>
def open(self):
"""
Open the required page. Page(super) class opens the page by default.
"""
self.browser.get(
"{}/en-US/app/Splunk_TA_UCCExample/configuration".format(
self.splunk_web_url
)
)
tab = Tab(self.browser)
> tab.open_tab("account")
tests/ui/Example_UccLib/account.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cb30400>
tab = 'account'
def open_tab(self, tab):
"""
Open a specified tab
:param tab: id of the tab
"""
> self.wait_for("container")
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/tabs.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cb30400>
key = 'container', msg = 'container element is not present', timeout = None
def wait_for(self, key, msg=None, timeout=None):
"""
if key in element, Wait for an web element to be visible. Raises TimeoutException if the element not found.
if key is a condition, wait for the condition to be true.
:param key: The key of the element mentioned in self.elements
:param msg: The error-msg which should be mentioned in the TimeoutException
:param timeout: The amount of time specified to wait for the wait function
"""
if timeout:
wait = WebDriverWait(self.browser, timeout)
else:
wait = self.wait
if key in self.elements:
if not msg:
msg = "{} element is not present".format(key)
> return wait.until(EC.presence_of_element_located(self.get_tuple(key)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="56f66b5fd2e44273824faf3b8530b97b")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f5e1cb32410>
message = 'container element is not present'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: container element is not present
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_account_delete_valid_title
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae6950>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f5e1eae6950>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cadd6f0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
add_account = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ... 'links': {'create': '/servicesNS/nobody/Splunk_TA_UCCExample/splunk_ta_uccexample_account/_new'}, 'messages': [], ...}
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
def test_account_delete_valid_title(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_account
):
"""Verifies the title of the 'Delete Entity'"""
> account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
tests/ui/test_splunk_ta_example_addon_account.py:238:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cadd150>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cadd6f0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self,
ucc_smartx_selenium_helper=None,
ucc_smartx_rest_helper=None,
open_page=True,
):
"""
:param ucc_smartx_selenium_helper: smartx configuration fixture
"""
> super().__init__(ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page)
tests/ui/Example_UccLib/account.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cadd150>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f5e1cadd6f0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f5e1cef5a20>
open_page = True
def __init__(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, open_page=True
):
"""
:param ucc_smartx_selenium_helper: The selenium webdriver
:param ucc_smartx_rest_helper: Splunk web & management url. {"web": , "mgmt": }
"""
if ucc_smartx_selenium_helper:
self.browser = ucc_smartx_selenium_helper.browser
self.splunk_web_url = ucc_smartx_selenium_helper.splunk_web_url
if open_page:
> self.open()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/pages/page.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.Example_UccLib.account.AccountPage object at 0x7f5e1cadd150>
def open(self):
"""
Open the required page. Page(super) class opens the page by default.
"""
self.browser.get(
"{}/en-US/app/Splunk_TA_UCCExample/configuration".format(
self.splunk_web_url
)
)
tab = Tab(self.browser)
> tab.open_tab("account")
tests/ui/Example_UccLib/account.py:155:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cadd240>
tab = 'account'
def open_tab(self, tab):
"""
Open a specified tab
:param tab: id of the tab
"""
> self.wait_for("container")
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/tabs.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.tabs.Tab object at 0x7f5e1cadd240>
key = 'container', msg = 'container element is not present', timeout = None
def wait_for(self, key, msg=None, timeout=None):
"""
if key in element, Wait for an web element to be visible. Raises TimeoutException if the element not found.
if key is a condition, wait for the condition to be true.
:param key: The key of the element mentioned in self.elements
:param msg: The error-msg which should be mentioned in the TimeoutException
:param timeout: The amount of time specified to wait for the wait function
"""
if timeout:
wait = WebDriverWait(self.browser, timeout)
else:
wait = self.wait
if key in self.elements:
if not msg:
msg = "{} element is not present".format(key)
> return wait.until(EC.presence_of_element_located(self.get_tuple(key)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="e97ab5bf9a1c49aab37d17bf611feae5")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f5e1cade830>
message = 'container element is not present'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: container element is not present
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException