chore(deps): lock file maintenance #814
GitHub Actions / test-report-9.0.6__chrome_test_splunk_ta_example_addon_input_1
failed
Sep 28, 2023 in 1s
test-report-9.0.6__chrome_test_splunk_ta_example_addon_input_1 ❌
❌ test-results/test.xml
59 tests were completed in 6663s with 57 passed, 2 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 57✅ | 2❌ | 6663s |
❌ pytest
tests.ui.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_fields_placeholder_value
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f1c1f8b8040>
❌ test_example_input_two_fields_placeholder_value
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f1c1f89fd60>
✅ 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
Annotations
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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_1.TestInput object at 0x7f1c1f8b8040>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f1c1f8b8040>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f1c1f81dd80>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f1c1f81cb80>
@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_1.py:662:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f1c1f8b8040>
left = <bound method TextBox.get_placeholder_value of <pytest_splunk_addon_ui_smartx.components.controls.textbox.TextBox object at 0x7f1c1f8dec20>>
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 0x7f1c1f7d6320>('', '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-9.0.6__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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_1.TestInput object at 0x7f1c1f89fd60>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f1c1f89fd60>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f1c1f614ac0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f1c1f81cb80>
@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_1.py:675:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f1c1f89fd60>
left = <bound method TextBox.get_placeholder_value of <pytest_splunk_addon_ui_smartx.components.controls.textbox.TextBox object at 0x7f1c1f614280>>
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 0x7f1c1f7b9870>('', 'optional')
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/base_test.py:573: AssertionError
Loading