chore(deps): update all dependencies #524
test-report-9.0.6__chrome_test_splunk_ta_example_addon_account ❌
❌ test-results/test.xml
60 tests were completed in 4581s with 0 passed, 59 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 59❌ | 1⚪ | 4581s |
❌ pytest
tests.ui.test_splunk_ta_example_addon_account.chrome_TestAccount
❌ test_account_default_rows_in_table
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5dda80>
❌ test_account_sort_functionality
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5dd990>
❌ test_account_count
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d12d0>
❌ test_accounts_filter_functionality_negative
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d2ce0>
❌ test_accounts_filter_functionality_positive
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d1c90>
❌ test_account_pagination
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d3ac0>
❌ test_account_title_and_description
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d2aa0>
❌ test_account_add_valid_title
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d2140>
❌ test_account_edit_valid_title
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d1390>
❌ test_account_clone_valid_title
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d31c0>
❌ test_account_delete_valid_title
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d12a0>
❌ test_account_add_close_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d28f0>
❌ test_account_add_cancel_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d0e80>
❌ test_account_delete_close_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d1150>
❌ test_account_delete_cancel_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d02b0>
❌ test_account_edit_close_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e6b69e0>
❌ test_account_edit_cancel_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e6b5930>
❌ test_account_clone_close_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e6b5b10>
❌ test_account_clone_cancel_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e6b47f0>
❌ test_account_delete_valid_prompt_message
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e6b4fd0>
❌ test_account_required_field_username
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40ffa0>
❌ test_account_required_field_password
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40ff40>
❌ test_account_encrypted_field_password
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40f460>
❌ test_account_required_field_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40f8e0>
❌ test_account_basic_fields_label_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40c1f0>
❌ test_account_oauth_fields_label_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40de40>
❌ test_account_fields_placeholder_value
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40dbd0>
❌ test_account_help_text_entity
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e6b6680>
⚪ test_account_required_field_example_environment
❌ test_account_required_field_example_multiple_select
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40dae0>
❌ test_account_required_field_client_id
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40dba0>
❌ test_account_required_field_client_secret
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40cee0>
❌ test_account_encrypted_field_client_secret
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40c8e0>
❌ test_account_valid_account_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40c6a0>
❌ test_account_valid_length_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40d390>
❌ test_account_default_value_example_environment
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40ca30>
❌ test_account_list_example_environment
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40e8c0>
❌ test_account_default_value_auth_type
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40ed40>
❌ test_account_list_auth_type
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40efe0>
❌ test_account_checked_example_checkbox
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40eb60>
❌ test_account_select_value_example_environment
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4eb580>
❌ test_account_list_example_multiple_select
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4eb5b0>
❌ test_account_select_value_example_multiple_select
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4eae30>
❌ test_account_search_value_example_multiple_select
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4eb070>
❌ test_account_default_value_example_radio
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40f6a0>
❌ test_add_account_duplicate_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e40eb90>
❌ test_account_delete_row_frontend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4eb910>
❌ test_account_edit_uneditable_field_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4eb8b0>
❌ test_account_credentials_encrypted_value
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4ebb80>
❌ test_account_add_frontend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4ebee0>
❌ test_account_edit_frontend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4ea770>
❌ test_clone_account_duplicate_name
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4ea410>
❌ test_account_clone_frontend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4ea1d0>
❌ test_account_clone_default_values
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4e9ed0>
❌ test_account_add_backend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4e9bd0>
❌ test_account_edit_backend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4e98d0>
❌ test_account_clone_backend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4eaaa0>
❌ test_account_delete_row_backend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4e9210>
❌ test_account_helplink
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4e8e50>
❌ test_account_delete_account_in_use
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e4e8b50>
Annotations
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__chrome_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_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 0x7fe40e5dda80>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5dda80>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40db33760>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
@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 0x7fe40db33610>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40db33760>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40db33610>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40db33760>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40db33610>
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 0x7fe40db33b80>
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 0x7fe40db33b80>
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="552b7bead69d4d49a118a06f45df3575")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe40db30ee0>
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__chrome_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_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 0x7fe40e5dd990>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5dd990>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c7afd30>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c7afb50>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c7afd30>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c7afb50>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c7afd30>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c7afb50>
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 0x7fe40c7afee0>
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 0x7fe40c7afee0>
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="0ad8357169434f6e884e4676bcaf4458")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe40c7afd90>
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__chrome_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_TestAccount ► test_account_count
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d12d0>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d12d0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c581660>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c580e20>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c581660>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c580e20>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c581660>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c580e20>
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 0x7fe40c580880>
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 0x7fe40c580880>
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="7bfafb8802d2442abaec03142e7d691a")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe40c580c40>
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__chrome_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_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 0x7fe40e5d2ce0>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d2ce0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c5518d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c551090>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c5518d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c551090>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c5518d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c551090>
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 0x7fe40c550670>
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 0x7fe40c550670>
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="60cf30b5db504f418925ed9480ce7d61")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe40c5502e0>
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__chrome_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_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 0x7fe40e5d1c90>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d1c90>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c62cf40>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c62e080>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c62cf40>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c62e080>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c62cf40>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c62e080>
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 0x7fe40c62c0a0>
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 0x7fe40c62c0a0>
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="67bad83531c04cb1b7415293458283c7")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe40c62d2d0>
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__chrome_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_TestAccount ► test_account_pagination
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d3ac0>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d3ac0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c59d630>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c59ebf0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c59d630>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c59ebf0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c59d630>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c59ebf0>
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 0x7fe40c59f790>
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 0x7fe40c59f790>
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="4ebca61fd19e49899c37c23abbf37097")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe40c59d540>
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__chrome_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_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 0x7fe40e5d2aa0>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d2aa0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c625cf0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
@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 0x7fe40c6257b0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c625cf0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c6257b0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c625cf0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c6257b0>
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 0x7fe40c6258a0>
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 0x7fe40c6258a0>
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="f48a1fa015bc4185afac944925e89415")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe40c624b50>
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__chrome_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_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 0x7fe40e5d2140>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d2140>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c7bb1c0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
@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 0x7fe40c7b9d20>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c7bb1c0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c7b9d20>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c7bb1c0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c7b9d20>
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 0x7fe40c7b8a00>
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 0x7fe40c7b8a00>
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="ccc86c8c812e4cea9419e23b81c57f20")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe40c7ba050>
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__chrome_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_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 0x7fe40e5d1390>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d1390>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c550370>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c5527a0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c550370>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c5527a0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c550370>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c5527a0>
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 0x7fe40c550640>
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 0x7fe40c550640>
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="d41345430f74425fb8e782459fb6e110")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe40c553010>
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__chrome_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_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 0x7fe40e5d31c0>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d31c0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c627b20>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c624c10>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c627b20>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c624c10>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c627b20>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c624c10>
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 0x7fe40c624af0>
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 0x7fe40c624af0>
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="e4f44261749f4a1d80878c6f4bd02af3")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe40c626cb0>
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__chrome_test_splunk_ta_example_addon_account
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_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 0x7fe40e5d12a0>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7fe40e5d12a0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c5aee00>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c5ad150>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c5aee00>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c5ad150>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fe40c5aee00>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fe40dbdd9f0>
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 0x7fe40c5ad150>
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 0x7fe40c5afeb0>
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 0x7fe40c5afeb0>
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="f25f8db3a57c45f48bc15624465cbb70")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7fe40c5afe80>
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