feat(inputs): show input services status count #6297
62 passed, 3 failed and 0 skipped
❌ test-results/junit.xml
65 tests were completed in 1432s with 62 passed, 3 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 62✅ | 3❌ | 1432s |
❌ pytest
test_configuration_page_account_tab.chrome_TestAccount
✅ test_account_default_rows_in_table
✅ test_account_sort_functionality
❌ test_account_count
self = <tests.ui.test_configuration_page_account_tab.TestAccount object at 0x7fa639257190>
❌ test_account_filter_functionality_negative
self = <tests.ui.test_configuration_page_account_tab.TestAccount object at 0x7fa639257a10>
❌ test_account_filter_functionality_positive
self = <tests.ui.test_configuration_page_account_tab.TestAccount object at 0x7fa639257e50>
✅ test_account_pagination
✅ test_account_add_valid_title
✅ test_account_edit_valid_title
✅ test_account_clone_valid_title
✅ test_account_delete_valid_title
✅ test_account_add_close_entity
✅ test_account_add_cancel_entity
✅ test_account_delete_close_entity
✅ test_account_delete_cancel_entity
✅ test_account_edit_close_entity
✅ test_account_edit_cancel_entity
✅ test_account_clone_close_entity
✅ test_account_clone_cancel_entity
✅ test_account_delete_valid_prompt_message
✅ test_account_required_field_username
✅ test_account_required_field_password
✅ test_account_encrypted_field_password
✅ test_account_required_field_name
✅ test_account_basic_fields_label_entity
✅ test_account_oauth_fields_label_entity
✅ test_account_help_text_entity
✅ test_account_required_field_example_multiple_select
✅ test_account_required_field_client_id
✅ test_account_required_field_client_secret
✅ test_account_encrypted_field_client_secret
✅ test_account_valid_account_name
✅ test_account_valid_length_name
✅ test_account_default_value_example_environment
✅ test_account_list_example_environment
✅ test_account_default_value_auth_type
✅ test_account_list_auth_type
✅ test_account_checked_example_checkbox
✅ test_account_select_value_example_environment
✅ test_account_list_example_multiple_select
✅ test_account_select_value_example_multiple_select
✅ test_account_search_value_example_multiple_select
✅ test_account_default_value_example_radio
✅ test_add_account_duplicate_name
✅ test_account_delete_row_frontend_validation
✅ test_account_edit_uneditable_field_name
✅ test_account_credentials_encrypted_value
✅ test_account_add_frontend_validation
✅ test_account_edit_frontend_validation
✅ test_clone_account_duplicate_name
✅ test_account_clone_frontend_validation
✅ test_account_clone_default_values
✅ test_account_add_backend_validation
✅ test_account_edit_backend_validation
✅ test_account_clone_backend_validation
✅ test_account_delete_row_backend_validation
✅ test_account_helplink
✅ test_account_delete_account_in_use
✅ test_account_displayed_columns
✅ test_account_action_values
✅ test_account_edit_default_values
✅ test_account_title_and_description
✅ test_account_valid_input_account_name
✅ test_account_select_value_auth_type
✅ test_account_add_reserved_value_account_name
✅ test_account_url_validation
Annotations
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.3-account
pytest ► test_configuration_page_account_tab.chrome_TestAccount ► test_account_count
Failed test found in:
test-results/junit.xml
Error:
self = <tests.ui.test_configuration_page_account_tab.TestAccount object at 0x7fa639257190>
Raw output
self = <tests.ui.test_configuration_page_account_tab.TestAccount object at 0x7fa639257190>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fa637fcc890>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fa637e84390>
_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)
self.assert_util(
account.table.get_count_title,
> f"{len(account.backend_conf.get_all_stanzas())} Items",
)
tests/ui/test_configuration_page_account_tab.py:97:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/base_test.py:308: in assert_util
self.wait.until(_assert)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/selenium/webdriver/support/wait.py:71: in until
value = method(self._driver)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/base_test.py:296: in _assert
args["left_value"] = args["left"](**args["left_args"])
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/table.py:114: in get_count_title
return self.get_clear_text(self.count)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.conf_table.ConfigurationTable object at 0x7fa637d035d0>
web_element = None
def get_clear_text(self, web_element):
"""
Gets the text of the web element
:param web_element: The instance of the web element we are getting tect from.
:returns: str the text of the web elements
"""
> return re.sub(r"\s+", " ", web_element.get_attribute("innerText")).strip()
E AttributeError: 'NoneType' object has no attribute 'get_attribute'
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:71: AttributeError
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.3-account
pytest ► test_configuration_page_account_tab.chrome_TestAccount ► test_account_filter_functionality_negative
Failed test found in:
test-results/junit.xml
Error:
self = <tests.ui.test_configuration_page_account_tab.TestAccount object at 0x7fa639257a10>
Raw output
self = <tests.ui.test_configuration_page_account_tab.TestAccount object at 0x7fa639257a10>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fa637fcc890>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fa637e84390>
_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_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)
account.table.set_filter("hello")
self.assert_util(account.table.get_row_count, 0)
self.assert_util(
account.table.get_count_title,
> f"{account.table.get_row_count()} Item",
)
tests/ui/test_configuration_page_account_tab.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/base_test.py:308: in assert_util
self.wait.until(_assert)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/selenium/webdriver/support/wait.py:71: in until
value = method(self._driver)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/base_test.py:296: in _assert
args["left_value"] = args["left"](**args["left_args"])
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/table.py:114: in get_count_title
return self.get_clear_text(self.count)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.conf_table.ConfigurationTable object at 0x7fa637ed07d0>
web_element = None
def get_clear_text(self, web_element):
"""
Gets the text of the web element
:param web_element: The instance of the web element we are getting tect from.
:returns: str the text of the web elements
"""
> return re.sub(r"\s+", " ", web_element.get_attribute("innerText")).strip()
E AttributeError: 'NoneType' object has no attribute 'get_attribute'
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:71: AttributeError
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.3-account
pytest ► test_configuration_page_account_tab.chrome_TestAccount ► test_account_filter_functionality_positive
Failed test found in:
test-results/junit.xml
Error:
self = <tests.ui.test_configuration_page_account_tab.TestAccount object at 0x7fa639257e50>
Raw output
self = <tests.ui.test_configuration_page_account_tab.TestAccount object at 0x7fa639257e50>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fa637fcc890>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fa637e84390>
_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_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)
account.table.set_filter("TestAccount")
self.assert_util(account.table.get_row_count, 1)
self.assert_util(
account.table.get_count_title,
> f"{account.table.get_row_count()} Item",
)
tests/ui/test_configuration_page_account_tab.py:128:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/base_test.py:308: in assert_util
self.wait.until(_assert)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/selenium/webdriver/support/wait.py:71: in until
value = method(self._driver)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/base_test.py:296: in _assert
args["left_value"] = args["left"](**args["left_args"])
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/table.py:114: in get_count_title
return self.get_clear_text(self.count)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.conf_table.ConfigurationTable object at 0x7fa6395f8650>
web_element = None
def get_clear_text(self, web_element):
"""
Gets the text of the web element
:param web_element: The instance of the web element we are getting tect from.
:returns: str the text of the web elements
"""
> return re.sub(r"\s+", " ", web_element.get_attribute("innerText")).strip()
E AttributeError: 'NoneType' object has no attribute 'get_attribute'
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:71: AttributeError