chore(deps): update all dependencies #1185
splunk 9.0.5.1 ui chrome test report ❌
❌ /tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
29 tests were completed in 2607s with 15 passed, 14 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 15✅ | 14❌ | 2607s |
❌ pytest
tests.ui.test_splunk_ta_example_addon_account.chrome_TestAccount
✅ test_account_delete_row_frontend_validation
✅ test_account_add_frontend_validation
❌ test_account_edit_frontend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f16548203d0>
❌ test_account_clone_frontend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f1654820cd0>
✅ test_account_add_backend_validation
❌ test_account_edit_backend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f1654835a90>
❌ test_account_clone_backend_validation
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f1654820c50>
✅ test_account_delete_row_backend_validation
tests.ui.test_splunk_ta_example_addon_alert_actions.chrome_TestAlertActions
✅ test_alert_action_save
tests.ui.test_splunk_ta_example_addon_custom.chrome_TestCustom
❌ test_custom_frontend_validation
self = <ui.test_splunk_ta_example_addon_custom.TestCustom object at 0x7f16548e3390>
❌ test_custom_backend_validation
self = <ui.test_splunk_ta_example_addon_custom.TestCustom object at 0x7f16548e3810>
tests.ui.test_splunk_ta_example_addon_input.chrome_TestInput
❌ test_example_input_one_add_frontend_validation
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16548f3250>
❌ test_example_input_one_add_backend_validation
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16548f3710>
❌ test_example_input_one_edit_frontend_validation
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f165477c090>
❌ test_example_input_one_edit_backend_validation
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f165477c590>
✅ 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_two_add_frontend_validation
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16547b5e90>
❌ test_example_input_two_add_backend_validation
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16547a2d50>
❌ test_example_input_two_edit_frontend_validation
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16540fcc90>
❌ test_example_input_two_edit_backend_validation
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16540fe110>
✅ 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
tests.ui.test_splunk_ta_example_addon_proxy.chrome_TestProxy
✅ test_proxy_frontend_validation
✅ test_proxy_backend_validation
Annotations
github-actions / splunk 9.0.5.1 ui chrome test report
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_TestAccount ► test_account_edit_frontend_validation
Failed test found in:
/tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f16548203d0>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f16548203d0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f16556daed0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f164fe5b8d0>
add_account = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ... 'links': {'create': '/servicesNS/nobody/Splunk_TA_UCCExample/splunk_ta_uccexample_account/_new'}, 'messages': [], ...}
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
@pytest.mark.sanity_test
def test_account_edit_frontend_validation(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_account
):
"""Verifies the frontend edit functionality"""
account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
account.table.edit_row(ACCOUNT_CONFIG["name"])
account.entity.environment.select("Value2")
account.entity.multiple_select.select("Option Two")
account.entity.username.set_value("TestEditUser")
account.entity.password.set_value("TestEditPassword")
account.entity.security_token.set_value("TestEditToken")
> account.entity.account_radio.select("No")
tests/ui/test_splunk_ta_example_addon_account.py:916:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.controls.toggle.Toggle object at 0x7f1654a04050>
value = 'No'
def select(self, value):
"""
Selects the toggle specified
:param value: the value to select
:return: Bool if successful in selection, else raises an error
"""
for each in self.get_elements("toggle_btn"):
if each.text.lower() == value.lower():
self._wait_to_be_clickable(each)
return True
else:
> raise ValueError("{} not found".format(value))
E ValueError: No not found
/root/.cache/pypoetry/virtualenvs/splunk-add-on-for-ucc-example-VsnhxLU2-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/controls/toggle.py:61: ValueError
github-actions / splunk 9.0.5.1 ui chrome test report
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_TestAccount ► test_account_clone_frontend_validation
Failed test found in:
/tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f1654820cd0>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f1654820cd0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f16540c5850>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f164fe5b8d0>
add_account = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ... 'links': {'create': '/servicesNS/nobody/Splunk_TA_UCCExample/splunk_ta_uccexample_account/_new'}, 'messages': [], ...}
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
@pytest.mark.sanity_test
def test_account_clone_frontend_validation(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_account
):
"""Verifies the frontend clone functionality"""
account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
account.table.wait_for_rows_to_appear(1)
account.table.clone_row(ACCOUNT_CONFIG["name"])
account.entity.name.set_value("TestAccount2")
account.entity.username.set_value("TestUserClone")
account.entity.password.set_value("TestPasswordClone")
account.entity.security_token.set_value("TestTokenClone")
> account.entity.account_radio.select("Yes")
tests/ui/test_splunk_ta_example_addon_account.py:959:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.controls.toggle.Toggle object at 0x7f1654540a50>
value = 'Yes'
def select(self, value):
"""
Selects the toggle specified
:param value: the value to select
:return: Bool if successful in selection, else raises an error
"""
for each in self.get_elements("toggle_btn"):
if each.text.lower() == value.lower():
self._wait_to_be_clickable(each)
return True
else:
> raise ValueError("{} not found".format(value))
E ValueError: Yes not found
/root/.cache/pypoetry/virtualenvs/splunk-add-on-for-ucc-example-VsnhxLU2-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/controls/toggle.py:61: ValueError
github-actions / splunk 9.0.5.1 ui chrome test report
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_TestAccount ► test_account_edit_backend_validation
Failed test found in:
/tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f1654835a90>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f1654835a90>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f164fe70f90>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f164fe5b8d0>
add_account = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ... 'links': {'create': '/servicesNS/nobody/Splunk_TA_UCCExample/splunk_ta_uccexample_account/_new'}, 'messages': [], ...}
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
@pytest.mark.sanity_test
def test_account_edit_backend_validation(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_account
):
"""Verifies the account in backend after editing account from frontend"""
account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
account.table.edit_row(ACCOUNT_CONFIG["name"])
account.entity.multiple_select.select("Option Two")
account.entity.username.set_value("TestEditUser")
account.entity.password.set_value("TestEditPassword")
account.entity.security_token.set_value("TestEditToken")
> account.entity.account_radio.select("No")
tests/ui/test_splunk_ta_example_addon_account.py:1028:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.controls.toggle.Toggle object at 0x7f1654573a10>
value = 'No'
def select(self, value):
"""
Selects the toggle specified
:param value: the value to select
:return: Bool if successful in selection, else raises an error
"""
for each in self.get_elements("toggle_btn"):
if each.text.lower() == value.lower():
self._wait_to_be_clickable(each)
return True
else:
> raise ValueError("{} not found".format(value))
E ValueError: No not found
/root/.cache/pypoetry/virtualenvs/splunk-add-on-for-ucc-example-VsnhxLU2-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/controls/toggle.py:61: ValueError
github-actions / splunk 9.0.5.1 ui chrome test report
pytest ► tests.ui.test_splunk_ta_example_addon_account.chrome_TestAccount ► test_account_clone_backend_validation
Failed test found in:
/tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
Error:
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f1654820c50>
Raw output
self = <ui.test_splunk_ta_example_addon_account.TestAccount object at 0x7f1654820c50>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f16544c54d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f164fe5b8d0>
add_account = {'entry': [{'acl': {'app': 'Splunk_TA_UCCExample', 'can_change_perms': True, 'can_list': True, 'can_share_app': True, ... 'links': {'create': '/servicesNS/nobody/Splunk_TA_UCCExample/splunk_ta_uccexample_account/_new'}, 'messages': [], ...}
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.account
@pytest.mark.sanity_test
def test_account_clone_backend_validation(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_account
):
"""Verifies the account in backend after cloning account from frontend"""
account = AccountPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
account.table.wait_for_rows_to_appear(1)
account.table.clone_row(ACCOUNT_CONFIG["name"])
account.entity.name.set_value("TestAccountClone")
account.entity.multiple_select.select("Option Two")
account.entity.username.set_value("TestCloneUser")
account.entity.password.set_value("TestEditPassword")
account.entity.security_token.set_value("TestEditToken")
> account.entity.account_radio.select("No")
tests/ui/test_splunk_ta_example_addon_account.py:1061:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.controls.toggle.Toggle object at 0x7f165454cc10>
value = 'No'
def select(self, value):
"""
Selects the toggle specified
:param value: the value to select
:return: Bool if successful in selection, else raises an error
"""
for each in self.get_elements("toggle_btn"):
if each.text.lower() == value.lower():
self._wait_to_be_clickable(each)
return True
else:
> raise ValueError("{} not found".format(value))
E ValueError: No not found
/root/.cache/pypoetry/virtualenvs/splunk-add-on-for-ucc-example-VsnhxLU2-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/controls/toggle.py:61: ValueError
github-actions / splunk 9.0.5.1 ui chrome test report
pytest ► tests.ui.test_splunk_ta_example_addon_custom.chrome_TestCustom ► test_custom_frontend_validation
Failed test found in:
/tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
Error:
self = <ui.test_splunk_ta_example_addon_custom.TestCustom object at 0x7f16548e3390>
Raw output
self = <ui.test_splunk_ta_example_addon_custom.TestCustom object at 0x7f16548e3390>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f16544f1890>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f164fe5b8d0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.custom
@pytest.mark.sanity_test
def test_custom_frontend_validation(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""This test case checks the validates frontend save in custom tab"""
custom = Custom(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
custom.test_string.set_value("test_str")
custom.test_number.set_value("7")
custom.test_regex.set_value("test_rex")
custom.test_email.set_value("test@a.b")
custom.test_ipv4.set_value("1.10.1.100")
custom.test_date.set_value("2020-09-18")
custom.test_url.set_value("https://docs.splunk.com/Documentation")
> custom.test_radio.select("No")
tests/ui/test_splunk_ta_example_addon_custom.py:85:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.controls.toggle.Toggle object at 0x7f16547cf810>
value = 'No'
def select(self, value):
"""
Selects the toggle specified
:param value: the value to select
:return: Bool if successful in selection, else raises an error
"""
for each in self.get_elements("toggle_btn"):
if each.text.lower() == value.lower():
self._wait_to_be_clickable(each)
return True
else:
> raise ValueError("{} not found".format(value))
E ValueError: No not found
/root/.cache/pypoetry/virtualenvs/splunk-add-on-for-ucc-example-VsnhxLU2-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/controls/toggle.py:61: ValueError
github-actions / splunk 9.0.5.1 ui chrome test report
pytest ► tests.ui.test_splunk_ta_example_addon_custom.chrome_TestCustom ► test_custom_backend_validation
Failed test found in:
/tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
Error:
self = <ui.test_splunk_ta_example_addon_custom.TestCustom object at 0x7f16548e3810>
Raw output
self = <ui.test_splunk_ta_example_addon_custom.TestCustom object at 0x7f16548e3810>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f16546d7910>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f164fe5b8d0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.custom
@pytest.mark.sanity_test
def test_custom_backend_validation(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""This test case checks the validates backend save in custom tab"""
custom = Custom(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
custom.test_string.set_value("test_str")
custom.test_number.set_value("7")
custom.test_regex.set_value("test_rex")
custom.test_email.set_value("test@a.b")
custom.test_ipv4.set_value("1.10.1.100")
custom.test_date.set_value("2020-09-18")
custom.test_url.set_value("https://docs.splunk.com/Documentation")
> custom.test_radio.select("No")
tests/ui/test_splunk_ta_example_addon_custom.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.controls.toggle.Toggle object at 0x7f165457a910>
value = 'No'
def select(self, value):
"""
Selects the toggle specified
:param value: the value to select
:return: Bool if successful in selection, else raises an error
"""
for each in self.get_elements("toggle_btn"):
if each.text.lower() == value.lower():
self._wait_to_be_clickable(each)
return True
else:
> raise ValueError("{} not found".format(value))
E ValueError: No not found
/root/.cache/pypoetry/virtualenvs/splunk-add-on-for-ucc-example-VsnhxLU2-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/controls/toggle.py:61: ValueError
github-actions / splunk 9.0.5.1 ui chrome test report
pytest ► tests.ui.test_splunk_ta_example_addon_input.chrome_TestInput ► test_example_input_one_add_frontend_validation
Failed test found in:
/tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
Error:
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16548f3250>
Raw output
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16548f3250>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f16546a4090>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f164fe5b8d0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
@pytest.mark.sanity_test
def test_example_input_one_add_frontend_validation(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies the frontend after adding a Example Input One"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
input_page.create_new_input.select("Example Input One")
input_page.entity1.example_account.wait_for_values()
input_page.entity1.name.set_value("dummy_input")
> input_page.entity1.example_radio.select("Yes")
tests/ui/test_splunk_ta_example_addon_input.py:1050:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.controls.toggle.Toggle object at 0x7f1654133f90>
value = 'Yes'
def select(self, value):
"""
Selects the toggle specified
:param value: the value to select
:return: Bool if successful in selection, else raises an error
"""
for each in self.get_elements("toggle_btn"):
if each.text.lower() == value.lower():
self._wait_to_be_clickable(each)
return True
else:
> raise ValueError("{} not found".format(value))
E ValueError: Yes not found
/root/.cache/pypoetry/virtualenvs/splunk-add-on-for-ucc-example-VsnhxLU2-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/controls/toggle.py:61: ValueError
github-actions / splunk 9.0.5.1 ui chrome test report
pytest ► tests.ui.test_splunk_ta_example_addon_input.chrome_TestInput ► test_example_input_one_add_backend_validation
Failed test found in:
/tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
Error:
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16548f3710>
Raw output
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16548f3710>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f1654646350>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f164fe5b8d0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
@pytest.mark.sanity_test
def test_example_input_one_add_backend_validation(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies the backend after adding a example input one"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
input_page.create_new_input.select("Example Input One")
input_page.entity1.example_account.wait_for_values()
input_page.entity1.name.set_value("dummy_input")
> input_page.entity1.example_radio.select("No")
tests/ui/test_splunk_ta_example_addon_input.py:1085:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.controls.toggle.Toggle object at 0x7f16544f3a50>
value = 'No'
def select(self, value):
"""
Selects the toggle specified
:param value: the value to select
:return: Bool if successful in selection, else raises an error
"""
for each in self.get_elements("toggle_btn"):
if each.text.lower() == value.lower():
self._wait_to_be_clickable(each)
return True
else:
> raise ValueError("{} not found".format(value))
E ValueError: No not found
/root/.cache/pypoetry/virtualenvs/splunk-add-on-for-ucc-example-VsnhxLU2-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/controls/toggle.py:61: ValueError
github-actions / splunk 9.0.5.1 ui chrome test report
pytest ► tests.ui.test_splunk_ta_example_addon_input.chrome_TestInput ► test_example_input_one_edit_frontend_validation
Failed test found in:
/tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
Error:
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f165477c090>
Raw output
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f165477c090>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f16540c5350>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f164fe5b8d0>
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
@pytest.mark.sanity_test
def test_example_input_one_edit_frontend_validation(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_input_one
):
"""Verifies the frontend edit functionality of the example input one entity"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
input_page.table.edit_row("dummy_input_one")
input_page.entity1.example_account.wait_for_values()
input_page.entity1.example_checkbox.uncheck()
> input_page.entity1.example_radio.select("No")
tests/ui/test_splunk_ta_example_addon_input.py:1141:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.controls.toggle.Toggle object at 0x7f16544df110>
value = 'No'
def select(self, value):
"""
Selects the toggle specified
:param value: the value to select
:return: Bool if successful in selection, else raises an error
"""
for each in self.get_elements("toggle_btn"):
if each.text.lower() == value.lower():
self._wait_to_be_clickable(each)
return True
else:
> raise ValueError("{} not found".format(value))
E ValueError: No not found
/root/.cache/pypoetry/virtualenvs/splunk-add-on-for-ucc-example-VsnhxLU2-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/controls/toggle.py:61: ValueError
github-actions / splunk 9.0.5.1 ui chrome test report
pytest ► tests.ui.test_splunk_ta_example_addon_input.chrome_TestInput ► test_example_input_one_edit_backend_validation
Failed test found in:
/tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
Error:
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f165477c590>
Raw output
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f165477c590>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f16544e2a90>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f164fe5b8d0>
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
@pytest.mark.sanity_test
def test_example_input_one_edit_backend_validation(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper, add_input_one
):
"""Verifies the backend edit functionality of the example input one entity"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
input_page.table.edit_row("dummy_input_one")
input_page.entity1.example_account.wait_for_values()
input_page.entity1.example_checkbox.uncheck()
> input_page.entity1.example_radio.select("No")
tests/ui/test_splunk_ta_example_addon_input.py:1178:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.controls.toggle.Toggle object at 0x7f1654540d10>
value = 'No'
def select(self, value):
"""
Selects the toggle specified
:param value: the value to select
:return: Bool if successful in selection, else raises an error
"""
for each in self.get_elements("toggle_btn"):
if each.text.lower() == value.lower():
self._wait_to_be_clickable(each)
return True
else:
> raise ValueError("{} not found".format(value))
E ValueError: No not found
/root/.cache/pypoetry/virtualenvs/splunk-add-on-for-ucc-example-VsnhxLU2-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/controls/toggle.py:61: ValueError
github-actions / splunk 9.0.5.1 ui chrome test report
pytest ► tests.ui.test_splunk_ta_example_addon_input.chrome_TestInput ► test_example_input_two_add_frontend_validation
Failed test found in:
/tmp/test-results/wf-uccexample-c1652a1-ui-chrome-6118189486-vxeo-results.xml
Error:
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16547b5e90>
Raw output
self = <ui.test_splunk_ta_example_addon_input.TestInput object at 0x7f16547b5e90>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f1654163ed0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f164fe5b8d0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
@pytest.mark.sanity_test
def test_example_input_two_add_frontend_validation(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies the frontend after adding a Example Input Two"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
input_page.create_new_input.select("Example Input Two")
input_page.entity2.example_account.wait_for_values()
input_page.entity2.name.set_value("dummy_input")
input_page.entity2.example_checkbox.check()
> input_page.entity2.example_radio.select("No")
tests/ui/test_splunk_ta_example_addon_input.py:1906:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.controls.toggle.Toggle object at 0x7f1654528e90>
value = 'No'
def select(self, value):
"""
Selects the toggle specified
:param value: the value to select
:return: Bool if successful in selection, else raises an error
"""
for each in self.get_elements("toggle_btn"):
if each.text.lower() == value.lower():
self._wait_to_be_clickable(each)
return True
else:
> raise ValueError("{} not found".format(value))
E ValueError: No not found
/root/.cache/pypoetry/virtualenvs/splunk-add-on-for-ucc-example-VsnhxLU2-py3.7/lib/python3.7/site-packages/pytest_splunk_addon_ui_smartx/components/controls/toggle.py:61: ValueError