chore(deps): update all dependencies #119
GitHub Actions / test-report-9.3.0__chrome_test_splunk_ta_example_addon_input_1
failed
Oct 2, 2024 in 0s
61 passed, 1 failed and 0 skipped
❌ test-results/junit.xml
62 tests were completed in 1153s with 61 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 61✅ | 1❌ | 1153s |
❌ pytest
test_splunk_ta_example_addon_input_1.chrome_TestInput
✅ 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_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_validation
✅ test_example_input_one_add_backend_validation
✅ test_example_input_one_edit_uneditable_field_name
✅ test_example_input_one_edit_frontend_validation
✅ test_example_input_one_edit_backend_validation
✅ test_example_input_one_clone_default_values
✅ test_example_input_one_clone_frontend_validation
✅ test_example_input_one_clone_backend_validation
✅ test_example_input_one_delete_row_frontend_validation
✅ test_example_input_one_delete_row_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_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_inputs_textarea_height
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f2ab721bf90>
✅ test_inputs_textarea_big_input
✅ test_inputs_textarea_scroll
✅ test_single_select_allows_new_values
✅ test_single_select_is_editable
Annotations
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-9.3.0__chrome_test_splunk_ta_example_addon_input_1
pytest ► test_splunk_ta_example_addon_input_1.chrome_TestInput ► test_inputs_textarea_height
Failed test found in:
test-results/junit.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f2ab721bf90>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f2ab721bf90>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f2ab7192490>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f2ab7192dd0>
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': [], ...}
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_inputs_textarea_height(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_input_one
):
"""
Verifies that textarea height values
"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
input_page.table.edit_row("dummy_input_one")
min_textarea_height = 71
max_textarea_height = 311
long_input = ""
self.assert_util(
> min_textarea_height, input_page.entity1.text_area.get_textarea_height
)
tests/ui/test_splunk_ta_example_addon_input_1.py:1276:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f2ab721bf90>
left = 71
right = <bound method TextArea.get_textarea_height of <pytest_splunk_addon_ui_smartx.components.controls.textarea.TextArea object at 0x7f2ab6b64490>>
operator = '==', left_args = {}, right_args = {}
msg = 'Condition Failed. \nLeft-value: 71\nOperator: ==\nRight-value: 61'
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: 71
E Operator: ==
E Right-value: 61
E assert False
E + where False = <function UccTester.assert_util.<locals>.<lambda> at 0x7f2ab6dd6200>(71, 61)
pytest_splunk_addon_ui_smartx/base_test.py:318: AssertionError
Loading