Skip to content

chore(deps): update all dependencies #841

chore(deps): update all dependencies

chore(deps): update all dependencies #841

GitHub Actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account failed Oct 15, 2023 in 0s

test-report-9.0.6__firefox_test_splunk_ta_example_addon_account ❌

Tests failed

❌ test-results/test.xml

60 tests were completed in 3126s with 58 passed, 1 failed and 1 skipped.

Test suite Passed Failed Skipped Time
pytest 58✅ 1❌ 1⚪ 3126s

❌ pytest

tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount
  ✅ test_account_default_rows_in_table
  ✅ test_account_sort_functionality
  ✅ test_account_count
  ✅ test_accounts_filter_functionality_negative
  ✅ test_accounts_filter_functionality_positive
  ✅ test_account_pagination
  ✅ test_account_title_and_description
  ✅ 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_fields_placeholder_value
	self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f30f9b3dba0>
  ✅ test_account_help_text_entity
  ⚪ test_account_required_field_example_environment
  ✅ 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

Annotations

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

See this annotation in the file changed.

@github-actions github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_account

pytest ► tests.ui.test_splunk_ta_example_addon_account.firefox_TestAccount ► test_account_fields_placeholder_value

Failed test found in:
  test-results/test.xml
Error:
  self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f30f9b3dba0>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f30f9b3dba0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f30f82a3c70>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f30f830f5b0>

    @pytest.mark.execute_enterprise_cloud_true
    @pytest.mark.forwarder
    @pytest.mark.account
    def test_account_fields_placeholder_value(
        self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
    ):
        """Verifies account field placeholder value"""
        account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
        account.entity.open()
>       self.assert_util(account.entity.name.get_placeholder_value, "Required")

tests/ui/test_splunk_ta_example_addon_account.py:495: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f30f9b3dba0>
left = <bound method TextBox.get_placeholder_value of <pytest_splunk_addon_ui_smartx.components.controls.textbox.TextBox object at 0x7f30f82a3a30>>
right = 'Required', operator = '==', left_args = {}, right_args = {}
msg = 'Condition Failed. \nLeft-value: \nOperator: ==\nRight-value: Required'

    def assert_util(
        self, left, right, operator="==", left_args={}, right_args={}, msg=None
    ):
        """
        Try to check the condition for {WAIT_TIMEOUT} seconds.
        In UI Automation, it is not possible to expect things to work properly just milliseconds after an action.
        Even in manual testing, we try things after 4-5 seconds and 2-3 times.
        This utility method tries to achive the same assertion.
        To perform certain action multiple time, provide callable functoins with arguments.
    
        Params:
            left (object or callable): LHS of the operator.
            right (object or callable): RHS of the operator
            operator: Operator. Possible values: (==, !=, <, >, <=, >=, in, not in, is, is not)
            left_args: If left is callable, pass the parameters of the callable function.
            right_args: If right is callable, pass the parameters of the callable function.
            msg: Error message if the condition was not matched even after trying for {WAIT_TIMEOUT} seconds.
    
        """
        args = {
            "left": left,
            "right": right,
            "operator": operator,
            "left_args": left_args,
            "right_args": right_args,
            "left_value": left,
            "right_value": right,
        }
        operator_map = {
            "==": lambda left, right: left == right,
            "!=": lambda left, right: left != right,
            "<": lambda left, right: left < right,
            "<=": lambda left, right: left <= right,
            ">": lambda left, right: left > right,
            ">=": lambda left, right: left >= right,
            "in": lambda left, right: left in right,
            "not in": lambda left, right: left not in right,
            "is": lambda left, right: left is right,
            "is not": lambda left, right: left is not right,
        }
    
        def _assert(browser):
            try:
                if callable(args["left"]):
                    args["left_value"] = args["left"](**args["left_args"])
                if callable(args["right"]):
                    args["right_value"] = args["right"](**args["right_args"])
            except TimeoutException as e:
                raise Exception("Timeout: {}".format(str(e)))
            except ElementNotInteractableException as e:
                raise Exception("Element not interactable: {}".format(str(e)))
            return operator_map[args["operator"]](
                args["left_value"], args["right_value"]
            )
    
        try:
            self.wait.until(_assert)
            condition_failed = False
        except (TimeoutException, ElementNotInteractableException) as e:
            logger.error("Exception raised: {}".format(str(e)))
            condition_failed = True
        if condition_failed:
            if not msg:
                msg = "Condition Failed. \nLeft-value: {}\nOperator: {}\nRight-value: {}".format(
                    args["left_value"], args["operator"], args["right_value"]
                )
>           assert operator_map[args["operator"]](
                args["left_value"], args["right_value"]
            ), msg
E           AssertionError: Condition Failed. 
E             Left-value: 
E             Operator: ==
E             Right-value: Required
E           assert False
E            +  where False = <function UccTester.assert_util.<locals>.<lambda> at 0x7f30f81840d0>('', 'Required')

/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/base_test.py:573: AssertionError