Skip to content

feat(inputs): show input services status count #6297

feat(inputs): show input services status count

feat(inputs): show input services status count #6297

GitHub Actions / test-report-ui-9.1.6-input failed Nov 6, 2024 in 1s

128 passed, 3 failed and 0 skipped

Tests failed

❌ test-results/junit.xml

131 tests were completed in 2195s with 128 passed, 3 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 128✅ 3❌ 2195s

❌ pytest

test_configuration_page_account_tab.chrome_TestAccount
  ✅ test_example_validation_of_oauth_fields_too_short
  ✅ test_example_validation_of_oauth_fields_wrong_characters
  ✅ test_example_validation_of_oauth_valid
test_input_page.chrome_TestInputPage
  ✅ test_inputs_displayed_columns
  ✅ test_inputs_pagination_list
  ✅ test_inputs_pagination
  ✅ test_inputs_sort_functionality
  ❌ test_inputs_filter_functionality_negative
	self = <tests.ui.test_input_page.TestInputPage object at 0x7effb42d0d10>
  ❌ test_inputs_filter_functionality_positive
	self = <tests.ui.test_input_page.TestInputPage object at 0x7effb210bd10>
  ✅ test_inputs_default_rows_in_table
  ✅ test_inputs_create_new_input_list_values
  ✅ test_inputs_input_type_list_values
  ✅ test_inputs_more_info
  ✅ test_inputs_enable_disable
  ❌ test_inputs_count
	self = <tests.ui.test_input_page.TestInputPage object at 0x7effb336cc10>
  ✅ test_inputs_title_and_description
  ✅ test_example_input_one_required_field_name
  ✅ test_example_input_one_valid_length_name
  ✅ test_example_input_one_valid_input_name
  ✅ test_example_input_one_list_single_select_group_test
  ✅ test_example_input_one_select_value_single_select_group_test
  ✅ test_example_input_one_search_value_single_select_group_test
  ✅ test_example_input_one_default_value_multiple_select_test
  ✅ test_example_input_one_list_multiple_select_test
  ✅ test_example_input_one_select_value_multiple_select_test
  ✅ test_example_input_one_select_multiple_values_multiple_select_test
  ✅ test_example_input_one_deselect_multiple_select_test
  ✅ test_example_input_one_search_value_multiple_select_test
  ✅ test_example_input_one_default_value_example_checkbox
  ✅ test_example_input_one_unchecked_example_checkbox
  ✅ test_example_input_one_checked_example_checkbox
  ✅ test_example_input_one_default_value_example_radio
  ✅ test_example_input_one_select_value_example_radio
  ✅ test_example_input_one_required_field_interval
  ✅ test_example_input_one_valid_input_interval
  ✅ test_example_input_one_required_field_index
  ✅ test_example_input_one_default_value_index
  ✅ test_example_input_one_required_field_example_account
  ✅ test_example_input_one_required_field_object
  ✅ test_example_input_one_required_field_object_fields
  ✅ test_example_input_one_required_field_order_by
  ✅ test_example_input_one_default_value_order_by
  ✅ test_example_input_one_required_field_textarea
  ✅ test_example_input_one_fields_label_entity
  ✅ test_example_input_two_fields_label_entity
  ✅ test_example_input_one_help_text_entity
  ✅ test_example_input_one_valid_input_query_start_date
  ✅ test_example_input_one_default_value_limit
  ✅ test_example_input_one_help_link
  ✅ test_example_input_one_add_frontend_backend_validation
  ✅ test_example_input_one_edit_uneditable_field_name
  ✅ test_example_input_one_edit_frontend_backend_validation
  ✅ test_example_input_one_clone_default_values
  ✅ test_example_input_one_clone_frontend_backend_validation
  ✅ test_example_input_one_delete_row_frontend_backend_validation
  ✅ test_example_input_one_add_close_entity
  ✅ test_example_input_one_edit_close_entity
  ✅ test_example_input_one_clone_close_entity
  ✅ test_example_input_one_clone_save_entity
  ✅ test_example_input_one_delete_close_entity
  ✅ test_example_input_one_add_cancel_entity
  ✅ test_example_input_one_edit_cancel_entity
  ✅ test_example_input_one_clone_cancel_entity
  ✅ test_example_input_one_delete_cancel_entity
  ✅ test_example_input_one_add_duplicate_names
  ✅ test_example_input_one_clone_duplicate_names
  ✅ test_example_input_one_add_valid_title
  ✅ test_example_input_one_edit_valid_title
  ✅ test_example_input_one_clone_valid_title
  ✅ test_example_input_one_delete_valid_title
  ✅ test_example_input_one_delete_valid_prompt_message
  ✅ test_example_input_two_required_field_name
  ✅ test_example_input_two_valid_length_name
  ✅ test_example_input_two_valid_input_name
  ✅ test_example_input_two_clone_valid_input_name
  ✅ test_example_input_two_required_field_interval
  ✅ test_example_input_two_valid_input_interval
  ✅ test_example_input_two_required_field_index
  ✅ test_example_input_two_default_value_index
  ✅ test_example_input_two_required_field_example_example_account
  ✅ test_example_input_two_required_field_example_multiple_select
  ✅ test_example_input_two_list_example_multiple_select
  ✅ test_example_input_two_select_select_value_example_multiple_select
  ✅ test_example_input_two_select_multiple_values_example_multiple_select
  ✅ test_example_input_two_help_text_entity
  ✅ test_example_input_two_checked_example_checkbox
  ✅ test_example_input_two_unchecked_example_checkbox
  ✅ test_example_input_two_required_field_example_radio
  ✅ test_example_input_two_select_value_example_radio
  ✅ test_example_input_two_valid_input_query_start_date
  ✅ test_example_input_two_add_frontend_backend_validation
  ✅ test_example_input_two_edit_uneditable_field_name
  ✅ test_example_input_two_edit_frontend_backend_validation
  ✅ test_example_input_two_clone_default_values
  ✅ test_example_input_two_clone_frontend_backend_validation
  ✅ test_example_input_two_delete_row_frontend_backend_validation
  ✅ test_example_input_two_add_close_entity
  ✅ test_example_input_two_edit_close_entity
  ✅ test_example_input_two_clone_close_entity
  ✅ test_example_input_two_delete_close_entity
  ✅ test_example_input_two_add_cancel_entity
  ✅ test_example_input_two_edit_cancel_entity
  ✅ test_example_input_two_clone_cancel_entity
  ✅ test_example_input_two_delete_cancel_entity
  ✅ test_example_input_two_add_duplicate_names
  ✅ test_example_input_two_clone_duplicate_names
  ✅ test_example_input_two_add_valid_title
  ✅ test_example_input_two_edit_valid_title
  ✅ test_example_input_two_clone_valid_title
  ✅ test_example_input_two_delete_valid_title
  ✅ test_example_input_two_delete_valid_prompt_message
  ✅ test_inputs_enable_all_title_message
  ✅ test_inputs_disable_all_title_message
  ✅ test_inputs_enable_all_close
  ✅ test_inputs_disable_all_close
  ✅ test_inputs_enable_all_deny
  ✅ test_inputs_disable_all_deny
  ✅ test_inputs_disable_enable_all
  ✅ test_inputs_disable_all_enable_all_input_one_input_two
  ✅ test_inputs_enable_all_some_already_enabled
  ✅ test_inputs_disable_all_some_already_disabled
  ✅ test_inputs_textarea_height
  ✅ test_inputs_textarea_big_input
  ✅ test_inputs_textarea_scroll
  ✅ test_example_inputs_with_valid_interval[-1]
  ✅ test_example_inputs_with_valid_interval[1]
  ✅ test_example_inputs_with_valid_interval[0 0,11 2 */2 *]
  ✅ test_example_inputs_with_valid_interval[* * * * *]
  ✅ test_example_inputs_with_not_valid_interval[-2]
  ✅ test_example_inputs_with_not_valid_interval[0a 0,11 2 */2 *]
  ✅ test_example_inputs_with_not_valid_interval[a b * * *]

Annotations

Check failure on line 0 in test-results/junit.xml

See this annotation in the file changed.

@github-actions github-actions / test-report-ui-9.1.6-input

pytest ► test_input_page.chrome_TestInputPage ► test_inputs_filter_functionality_negative

Failed test found in:
  test-results/junit.xml
Error:
  self = <tests.ui.test_input_page.TestInputPage object at 0x7effb42d0d10>
Raw output
self = <tests.ui.test_input_page.TestInputPage object at 0x7effb42d0d10>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7effb20158d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7effb2015ad0>
_add_input_one = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ...nf-inputs/_reload', 'create': '/servicesNS/nobody/Splunk_TA_UCCExample/configs/conf-inputs/_new'}, 'messages': [], ...}
_add_input_two = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ...nf-inputs/_reload', 'create': '/servicesNS/nobody/Splunk_TA_UCCExample/configs/conf-inputs/_new'}, 'messages': [], ...}

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_inputs_filter_functionality_negative(
        self,
        ucc_smartx_selenium_helper,
        ucc_smartx_rest_helper,
        _add_input_one,
        _add_input_two,
    ):
        """Verifies the filter functionality (Negative)"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
        input_page.table.set_filter("hello")
        self.assert_util(input_page.table.get_row_count, 0)
        self.assert_util(
            input_page.table.get_count_title,
>           f"{input_page.table.get_row_count()} Input",
        )

tests/ui/test_input_page.py:209: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.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.input_table.InputTable object at 0x7effb1c4d310>
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

See this annotation in the file changed.

@github-actions github-actions / test-report-ui-9.1.6-input

pytest ► test_input_page.chrome_TestInputPage ► test_inputs_filter_functionality_positive

Failed test found in:
  test-results/junit.xml
Error:
  self = <tests.ui.test_input_page.TestInputPage object at 0x7effb210bd10>
Raw output
self = <tests.ui.test_input_page.TestInputPage object at 0x7effb210bd10>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7effb20158d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7effb2015ad0>
_add_input_one = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ...nf-inputs/_reload', 'create': '/servicesNS/nobody/Splunk_TA_UCCExample/configs/conf-inputs/_new'}, 'messages': [], ...}
_add_input_two = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ...nf-inputs/_reload', 'create': '/servicesNS/nobody/Splunk_TA_UCCExample/configs/conf-inputs/_new'}, 'messages': [], ...}

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_inputs_filter_functionality_positive(
        self,
        ucc_smartx_selenium_helper,
        ucc_smartx_rest_helper,
        _add_input_one,
        _add_input_two,
    ):
        """Verifies the filter functionality (Positive)"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
        input_page.table.set_filter("dummy")
        self.assert_util(input_page.table.get_row_count, 2)
        self.assert_util(
            input_page.table.get_count_title,
>           f"{input_page.table.get_row_count()} Inputs",
        )

tests/ui/test_input_page.py:229: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.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.input_table.InputTable object at 0x7effb1e44050>
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

See this annotation in the file changed.

@github-actions github-actions / test-report-ui-9.1.6-input

pytest ► test_input_page.chrome_TestInputPage ► test_inputs_count

Failed test found in:
  test-results/junit.xml
Error:
  self = <tests.ui.test_input_page.TestInputPage object at 0x7effb336cc10>
Raw output
self = <tests.ui.test_input_page.TestInputPage object at 0x7effb336cc10>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7effb20158d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7effb2015ad0>
_add_input_one = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ...nf-inputs/_reload', 'create': '/servicesNS/nobody/Splunk_TA_UCCExample/configs/conf-inputs/_new'}, 'messages': [], ...}
_add_input_two = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ...nf-inputs/_reload', 'create': '/servicesNS/nobody/Splunk_TA_UCCExample/configs/conf-inputs/_new'}, 'messages': [], ...}

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.input
    def test_inputs_count(
        self,
        ucc_smartx_selenium_helper,
        ucc_smartx_rest_helper,
        _add_input_one,
        _add_input_two,
    ):
        """Verifies count on table"""
        input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
        self.assert_util(
            input_page.table.get_count_title,
>           f"{input_page.table.get_row_count()} Inputs",
        )

tests/ui/test_input_page.py:365: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.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.input_table.InputTable object at 0x7effb163b1d0>
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