chore(deps): lock file maintenance #807
GitHub Actions / test-report-Object__firefox_test_splunk_ta_example_addon_input
failed
Sep 27, 2023 in 1s
test-report-Object__firefox_test_splunk_ta_example_addon_input ❌
❌ test-results/test.xml
115 tests were completed in 6816s with 113 passed, 2 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 113✅ | 2❌ | 6816s |
❌ pytest
tests.ui.test_splunk_ta_example_addon_input.firefox_TestInput
✅ test_inputs_displayed_columns
✅ test_inputs_pagination_list
✅ test_inputs_pagination
✅ test_inputs_sort_functionality
✅ test_inputs_filter_functionality_negative
✅ test_inputs_filter_functionality_positive
✅ 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
✅ 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_fields_label_entity
✅ test_example_input_two_fields_label_entity
❌ test_example_input_one_fields_placeholder_value
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7fd1360bf220>
❌ test_example_input_two_fields_placeholder_value
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7fd1360bf130>
✅ 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_example_input_two_required_field_name
✅ test_example_input_two_valid_length_name
✅ test_example_input_two_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_validation
✅ test_example_input_two_add_backend_validation
✅ test_example_input_two_edit_uneditable_field_name
✅ test_example_input_two_edit_frontend_validation
✅ test_example_input_two_edit_backend_validation
✅ test_example_input_two_clone_default_values
✅ test_example_input_two_clone_frontend_validation
✅ test_example_input_two_clone_backend_validation
✅ test_example_input_two_delete_row_frontend_validation
✅ test_example_input_two_delete_row_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
Annotations
Check failure on line 0 in test-results/test.xml
github-actions / test-report-Object__firefox_test_splunk_ta_example_addon_input
pytest ► tests.ui.test_splunk_ta_example_addon_input.firefox_TestInput ► test_example_input_one_fields_placeholder_value
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7fd1360bf220>
Raw output
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7fd1360bf220>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fd135ee95d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fd136017940>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_fields_placeholder_value(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies example input one field placeholder value"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
input_page.create_new_input.select("Example Input One")
> self.assert_util(
input_page.entity1.query_start_date.get_placeholder_value, "optional"
)
tests/ui/test_splunk_ta_example_addon_input.py:893:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7fd1360bf220>
left = <bound method TextBox.get_placeholder_value of <pytest_splunk_addon_ui_smartx.components.controls.textbox.TextBox object at 0x7fd136008760>>
right = 'optional', operator = '==', left_args = {}, right_args = {}
msg = 'Condition Failed. \nLeft-value: \nOperator: ==\nRight-value: optional'
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: optional
E assert False
E + where False = <function UccTester.assert_util.<locals>.<lambda> at 0x7fd135df03a0>('', 'optional')
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/base_test.py:573: AssertionError
Check failure on line 0 in test-results/test.xml
github-actions / test-report-Object__firefox_test_splunk_ta_example_addon_input
pytest ► tests.ui.test_splunk_ta_example_addon_input.firefox_TestInput ► test_example_input_two_fields_placeholder_value
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7fd1360bf130>
Raw output
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7fd1360bf130>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7fd136008e80>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7fd136017940>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_two_fields_placeholder_value(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies example input two field placeholder value"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
input_page.create_new_input.select("Example Input Two")
> self.assert_util(
input_page.entity1.query_start_date.get_placeholder_value, "optional"
)
tests/ui/test_splunk_ta_example_addon_input.py:906:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7fd1360bf130>
left = <bound method TextBox.get_placeholder_value of <pytest_splunk_addon_ui_smartx.components.controls.textbox.TextBox object at 0x7fd1360593f0>>
right = 'optional', operator = '==', left_args = {}, right_args = {}
msg = 'Condition Failed. \nLeft-value: \nOperator: ==\nRight-value: optional'
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: optional
E assert False
E + where False = <function UccTester.assert_util.<locals>.<lambda> at 0x7fd135e13640>('', 'optional')
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/base_test.py:573: AssertionError
Loading