chore(deps): update all dependencies #820
GitHub Actions / test-report-9.1.1__firefox_test_splunk_ta_example_addon_account
failed
Oct 2, 2023 in 1s
test-report-9.1.1__firefox_test_splunk_ta_example_addon_account ❌
❌ test-results/test.xml
60 tests were completed in 3444s with 58 passed, 1 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 58✅ | 1❌ | 1⚪ | 3444s |
❌ 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 0x7f015fc36650>
✅ 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
github-actions / test-report-9.1.1__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 0x7f015fc36650>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f015fc36650>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f015f9cd030>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f015fa15d50>
@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 0x7f015fc36650>
left = <bound method TextBox.get_placeholder_value of <pytest_splunk_addon_ui_smartx.components.controls.textbox.TextBox object at 0x7f015f9cd750>>
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 0x7f015f8ec280>('', 'Required')
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/base_test.py:573: AssertionError
Loading