chore(deps): update all dependencies #524
test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1 ❌
❌ test-results/test.xml
59 tests were completed in 5803s with 0 passed, 59 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 59❌ | 5803s |
❌ pytest
tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput
❌ test_example_input_one_required_field_name
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0c910>
❌ test_example_input_one_valid_length_name
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0c940>
❌ test_example_input_one_valid_input_name
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0cca0>
❌ test_example_input_one_list_single_select_group_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0cf70>
❌ test_example_input_one_select_value_single_select_group_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0d2a0>
❌ test_example_input_one_search_value_single_select_group_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0d540>
❌ test_example_input_one_default_value_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0d750>
❌ test_example_input_one_list_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0dba0>
❌ test_example_input_one_select_value_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0efe0>
❌ test_example_input_one_select_multiple_values_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0e1d0>
❌ test_example_input_one_deselect_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0e410>
❌ test_example_input_one_search_value_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0e710>
❌ test_example_input_one_default_value_example_checkbox
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0ea10>
❌ test_example_input_one_unchecked_example_checkbox
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0ee90>
❌ test_example_input_one_checked_example_checkbox
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0ee60>
❌ test_example_input_one_default_value_example_radio
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0d5d0>
❌ test_example_input_one_select_value_example_radio
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0f1c0>
❌ test_example_input_one_required_field_interval
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0f460>
❌ test_example_input_one_valid_input_interval
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0f7f0>
❌ test_example_input_one_required_field_index
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0fc70>
❌ test_example_input_one_default_value_index
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852376a3b0>
❌ test_example_input_one_required_field_example_account
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8523769de0>
❌ test_example_input_one_required_field_object
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8523768760>
❌ test_example_input_one_required_field_object_fields
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8523769d80>
❌ test_example_input_one_required_field_order_by
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852376a380>
❌ test_example_input_one_default_value_order_by
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8523769a20>
❌ test_example_input_one_fields_label_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8523769ae0>
❌ test_example_input_two_fields_label_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852376a140>
❌ test_example_input_one_fields_placeholder_value
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373a2c0>
❌ test_example_input_two_fields_placeholder_value
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0c8e0>
❌ test_example_input_one_help_text_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0c880>
❌ test_example_input_one_valid_input_query_start_date
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373b3d0>
❌ test_example_input_one_default_value_limit
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373b2e0>
❌ test_example_input_one_help_link
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8523738730>
❌ test_example_input_one_add_frontend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8523738400>
❌ test_example_input_one_add_backend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8523739390>
❌ test_example_input_one_edit_uneditable_field_name
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373abf0>
❌ test_example_input_one_edit_frontend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373a350>
❌ test_example_input_one_edit_backend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8523739f90>
❌ test_example_input_one_clone_default_values
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373bb20>
❌ test_example_input_one_clone_frontend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8523739b10>
❌ test_example_input_one_clone_backend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8523738310>
❌ test_example_input_one_delete_row_frontend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373b430>
❌ test_example_input_one_delete_row_backend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373a4d0>
❌ test_example_input_one_add_close_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373b8e0>
❌ test_example_input_one_edit_close_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373b490>
❌ test_example_input_one_clone_close_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373bca0>
❌ test_example_input_one_delete_close_entity
browser = None
❌ test_example_input_one_add_cancel_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373b2b0>
❌ test_example_input_one_edit_cancel_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373bcd0>
❌ test_example_input_one_clone_cancel_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f852373a3b0>
❌ test_example_input_one_delete_cancel_entity
browser = None
❌ test_example_input_one_add_duplicate_names
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e28430>
❌ test_example_input_one_clone_duplicate_names
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e28370>
❌ test_example_input_one_add_valid_title
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e2a080>
❌ test_example_input_one_edit_valid_title
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e28850>
❌ test_example_input_one_clone_valid_title
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e28b20>
❌ test_example_input_one_delete_valid_title
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e28f10>
❌ test_example_input_one_delete_valid_prompt_message
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e29150>
Annotations
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_required_field_name
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0c910>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0c910>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f8521c76410>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f8521c759f0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_required_field_name(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies required field name in example input one"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
> input_page.create_new_input.select("Example Input One")
tests/ui/test_splunk_ta_example_addon_input_1.py:133:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85217db760>
value = 'Example Input One'
def select(self, value):
"""
Selects the value we want from the type list
:param value: The value in which we want to select
:return: Returns True if successful, otherwise raises an error
"""
> self.add_input.click()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85217db760>
key = 'add_input'
def __getattr__(self, key):
"""
Makes the web-elements to be accessible directly.
- For example self.elements = {"textbox": Selector(by=..., select=...),
Access the element by doing self.textbox directly.
- It also has implicit wait while finding the element.
:param key: The key of the element mentioned in self.elements
:returns: The webelement we are accessing
"""
try:
> return self.get_element(key)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85217db760>
key = 'add_input'
def get_element(self, key):
"""
Get the web-element.
Note: There is a wait in get_element.
:param key: The key of the element mentioned in self.elements
:returns: element The element we are looking for by key
"""
element = self.elements[key]
> return self._get_element(element.by, element.select)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85217db760>
by = 'id', select = 'addInputBtn'
def _get_element(self, by, select):
"""
Find the element from the page.
:param by: The type of the selenium locator
:param select: The selector text of type mentioned in by.
:returns: The webelement we are accessing
"""
msg = "by={} select={} Element not found in the page".format(by, select)
> return self.wait.until(EC.presence_of_element_located((by, select)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="0fd455cac3ce45009d6d7dafff5a6164")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f85217d93c0>
message = 'by=id select=addInputBtn Element not found in the page'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_valid_length_name
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0c940>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0c940>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f85218face0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f8521c759f0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_valid_length_name(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies the name field should not be more than 100 characters"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
> input_page.create_new_input.select("Example Input One")
tests/ui/test_splunk_ta_example_addon_input_1.py:156:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218dcd30>
value = 'Example Input One'
def select(self, value):
"""
Selects the value we want from the type list
:param value: The value in which we want to select
:return: Returns True if successful, otherwise raises an error
"""
> self.add_input.click()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218dcd30>
key = 'add_input'
def __getattr__(self, key):
"""
Makes the web-elements to be accessible directly.
- For example self.elements = {"textbox": Selector(by=..., select=...),
Access the element by doing self.textbox directly.
- It also has implicit wait while finding the element.
:param key: The key of the element mentioned in self.elements
:returns: The webelement we are accessing
"""
try:
> return self.get_element(key)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218dcd30>
key = 'add_input'
def get_element(self, key):
"""
Get the web-element.
Note: There is a wait in get_element.
:param key: The key of the element mentioned in self.elements
:returns: element The element we are looking for by key
"""
element = self.elements[key]
> return self._get_element(element.by, element.select)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218dcd30>
by = 'id', select = 'addInputBtn'
def _get_element(self, by, select):
"""
Find the element from the page.
:param by: The type of the selenium locator
:param select: The selector text of type mentioned in by.
:returns: The webelement we are accessing
"""
msg = "by={} select={} Element not found in the page".format(by, select)
> return self.wait.until(EC.presence_of_element_located((by, select)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="5fc190bd198b434fa32950660cdfe5f5")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f85218dcb50>
message = 'by=id select=addInputBtn Element not found in the page'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_valid_input_name
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0cca0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0cca0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f8521890580>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f8521c759f0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_valid_input_name(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies whether adding special characters, name field displays validation error"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
> input_page.create_new_input.select("Example Input One")
tests/ui/test_splunk_ta_example_addon_input_1.py:174:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f852185bf40>
value = 'Example Input One'
def select(self, value):
"""
Selects the value we want from the type list
:param value: The value in which we want to select
:return: Returns True if successful, otherwise raises an error
"""
> self.add_input.click()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f852185bf40>
key = 'add_input'
def __getattr__(self, key):
"""
Makes the web-elements to be accessible directly.
- For example self.elements = {"textbox": Selector(by=..., select=...),
Access the element by doing self.textbox directly.
- It also has implicit wait while finding the element.
:param key: The key of the element mentioned in self.elements
:returns: The webelement we are accessing
"""
try:
> return self.get_element(key)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f852185bf40>
key = 'add_input'
def get_element(self, key):
"""
Get the web-element.
Note: There is a wait in get_element.
:param key: The key of the element mentioned in self.elements
:returns: element The element we are looking for by key
"""
element = self.elements[key]
> return self._get_element(element.by, element.select)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f852185bf40>
by = 'id', select = 'addInputBtn'
def _get_element(self, by, select):
"""
Find the element from the page.
:param by: The type of the selenium locator
:param select: The selector text of type mentioned in by.
:returns: The webelement we are accessing
"""
msg = "by={} select={} Element not found in the page".format(by, select)
> return self.wait.until(EC.presence_of_element_located((by, select)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="fdfec44b66354935a326d1102fa55a43")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f8521859210>
message = 'by=id select=addInputBtn Element not found in the page'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_list_single_select_group_test
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0cf70>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0cf70>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f8521dfc8e0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f8521c759f0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_list_single_select_group_test(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies values Single Select Group Test dropdown in example input one"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
single_select_group_test_list = ["One", "Two", "Three", "Four"]
> input_page.create_new_input.select("Example Input One")
tests/ui/test_splunk_ta_example_addon_input_1.py:192:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521dfc940>
value = 'Example Input One'
def select(self, value):
"""
Selects the value we want from the type list
:param value: The value in which we want to select
:return: Returns True if successful, otherwise raises an error
"""
> self.add_input.click()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521dfc940>
key = 'add_input'
def __getattr__(self, key):
"""
Makes the web-elements to be accessible directly.
- For example self.elements = {"textbox": Selector(by=..., select=...),
Access the element by doing self.textbox directly.
- It also has implicit wait while finding the element.
:param key: The key of the element mentioned in self.elements
:returns: The webelement we are accessing
"""
try:
> return self.get_element(key)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521dfc940>
key = 'add_input'
def get_element(self, key):
"""
Get the web-element.
Note: There is a wait in get_element.
:param key: The key of the element mentioned in self.elements
:returns: element The element we are looking for by key
"""
element = self.elements[key]
> return self._get_element(element.by, element.select)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521dfc940>
by = 'id', select = 'addInputBtn'
def _get_element(self, by, select):
"""
Find the element from the page.
:param by: The type of the selenium locator
:param select: The selector text of type mentioned in by.
:returns: The webelement we are accessing
"""
msg = "by={} select={} Element not found in the page".format(by, select)
> return self.wait.until(EC.presence_of_element_located((by, select)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="139fb3f3d6f448799117c53e42125821")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f8521962050>
message = 'by=id select=addInputBtn Element not found in the page'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_select_value_single_select_group_test
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0d2a0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0d2a0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f852195efe0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f8521c759f0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_select_value_single_select_group_test(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies selected value of Single Select Group Test dropdown in example input one"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
selected_value = "Two"
> input_page.create_new_input.select("Example Input One")
tests/ui/test_splunk_ta_example_addon_input_1.py:208:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218f91b0>
value = 'Example Input One'
def select(self, value):
"""
Selects the value we want from the type list
:param value: The value in which we want to select
:return: Returns True if successful, otherwise raises an error
"""
> self.add_input.click()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218f91b0>
key = 'add_input'
def __getattr__(self, key):
"""
Makes the web-elements to be accessible directly.
- For example self.elements = {"textbox": Selector(by=..., select=...),
Access the element by doing self.textbox directly.
- It also has implicit wait while finding the element.
:param key: The key of the element mentioned in self.elements
:returns: The webelement we are accessing
"""
try:
> return self.get_element(key)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218f91b0>
key = 'add_input'
def get_element(self, key):
"""
Get the web-element.
Note: There is a wait in get_element.
:param key: The key of the element mentioned in self.elements
:returns: element The element we are looking for by key
"""
element = self.elements[key]
> return self._get_element(element.by, element.select)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218f91b0>
by = 'id', select = 'addInputBtn'
def _get_element(self, by, select):
"""
Find the element from the page.
:param by: The type of the selenium locator
:param select: The selector text of type mentioned in by.
:returns: The webelement we are accessing
"""
msg = "by={} select={} Element not found in the page".format(by, select)
> return self.wait.until(EC.presence_of_element_located((by, select)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="65cd9a8f058242d3b90df47bf015cdcb")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f85218f98a0>
message = 'by=id select=addInputBtn Element not found in the page'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_search_value_single_select_group_test
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0d540>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0d540>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f85218a3fd0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f8521c759f0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_search_value_single_select_group_test(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies singleselect seach funtionality properly"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
> input_page.create_new_input.select("Example Input One")
tests/ui/test_splunk_ta_example_addon_input_1.py:223:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218a3c10>
value = 'Example Input One'
def select(self, value):
"""
Selects the value we want from the type list
:param value: The value in which we want to select
:return: Returns True if successful, otherwise raises an error
"""
> self.add_input.click()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218a3c10>
key = 'add_input'
def __getattr__(self, key):
"""
Makes the web-elements to be accessible directly.
- For example self.elements = {"textbox": Selector(by=..., select=...),
Access the element by doing self.textbox directly.
- It also has implicit wait while finding the element.
:param key: The key of the element mentioned in self.elements
:returns: The webelement we are accessing
"""
try:
> return self.get_element(key)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218a3c10>
key = 'add_input'
def get_element(self, key):
"""
Get the web-element.
Note: There is a wait in get_element.
:param key: The key of the element mentioned in self.elements
:returns: element The element we are looking for by key
"""
element = self.elements[key]
> return self._get_element(element.by, element.select)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f85218a3c10>
by = 'id', select = 'addInputBtn'
def _get_element(self, by, select):
"""
Find the element from the page.
:param by: The type of the selenium locator
:param select: The selector text of type mentioned in by.
:returns: The webelement we are accessing
"""
msg = "by={} select={} Element not found in the page".format(by, select)
> return self.wait.until(EC.presence_of_element_located((by, select)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="f2931673847f49b8abb54dbe359dd48a")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f85218a1330>
message = 'by=id select=addInputBtn Element not found in the page'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_default_value_multiple_select_test
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0d750>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0d750>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f85219558d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f8521c759f0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_default_value_multiple_select_test(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies default values of Multiple Select Test dropdown in example input one"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
> input_page.create_new_input.select("Example Input One")
tests/ui/test_splunk_ta_example_addon_input_1.py:239:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521702770>
value = 'Example Input One'
def select(self, value):
"""
Selects the value we want from the type list
:param value: The value in which we want to select
:return: Returns True if successful, otherwise raises an error
"""
> self.add_input.click()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521702770>
key = 'add_input'
def __getattr__(self, key):
"""
Makes the web-elements to be accessible directly.
- For example self.elements = {"textbox": Selector(by=..., select=...),
Access the element by doing self.textbox directly.
- It also has implicit wait while finding the element.
:param key: The key of the element mentioned in self.elements
:returns: The webelement we are accessing
"""
try:
> return self.get_element(key)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521702770>
key = 'add_input'
def get_element(self, key):
"""
Get the web-element.
Note: There is a wait in get_element.
:param key: The key of the element mentioned in self.elements
:returns: element The element we are looking for by key
"""
element = self.elements[key]
> return self._get_element(element.by, element.select)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521702770>
by = 'id', select = 'addInputBtn'
def _get_element(self, by, select):
"""
Find the element from the page.
:param by: The type of the selenium locator
:param select: The selector text of type mentioned in by.
:returns: The webelement we are accessing
"""
msg = "by={} select={} Element not found in the page".format(by, select)
> return self.wait.until(EC.presence_of_element_located((by, select)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="ab20121c44e84f6b9ba7b28fe0b44c24")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f85218c5420>
message = 'by=id select=addInputBtn Element not found in the page'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_list_multiple_select_test
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0dba0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0dba0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f85217037c0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f8521c759f0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_list_multiple_select_test(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies values of Multiple Select Test dropdown in example input one"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
> input_page.create_new_input.select("Example Input One")
tests/ui/test_splunk_ta_example_addon_input_1.py:254:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521703880>
value = 'Example Input One'
def select(self, value):
"""
Selects the value we want from the type list
:param value: The value in which we want to select
:return: Returns True if successful, otherwise raises an error
"""
> self.add_input.click()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521703880>
key = 'add_input'
def __getattr__(self, key):
"""
Makes the web-elements to be accessible directly.
- For example self.elements = {"textbox": Selector(by=..., select=...),
Access the element by doing self.textbox directly.
- It also has implicit wait while finding the element.
:param key: The key of the element mentioned in self.elements
:returns: The webelement we are accessing
"""
try:
> return self.get_element(key)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521703880>
key = 'add_input'
def get_element(self, key):
"""
Get the web-element.
Note: There is a wait in get_element.
:param key: The key of the element mentioned in self.elements
:returns: element The element we are looking for by key
"""
element = self.elements[key]
> return self._get_element(element.by, element.select)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521703880>
by = 'id', select = 'addInputBtn'
def _get_element(self, by, select):
"""
Find the element from the page.
:param by: The type of the selenium locator
:param select: The selector text of type mentioned in by.
:returns: The webelement we are accessing
"""
msg = "by={} select={} Element not found in the page".format(by, select)
> return self.wait.until(EC.presence_of_element_located((by, select)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="b33c0330271043ad81539a9b480e94ba")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f852195d8d0>
message = 'by=id select=addInputBtn Element not found in the page'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_select_value_multiple_select_test
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0efe0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0efe0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f852186feb0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f8521c759f0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_select_value_multiple_select_test(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies selected single value of Multiple Select Test dropdown in example input one"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
selected_value = ["A"]
> input_page.create_new_input.select("Example Input One")
tests/ui/test_splunk_ta_example_addon_input_1.py:272:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521954160>
value = 'Example Input One'
def select(self, value):
"""
Selects the value we want from the type list
:param value: The value in which we want to select
:return: Returns True if successful, otherwise raises an error
"""
> self.add_input.click()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521954160>
key = 'add_input'
def __getattr__(self, key):
"""
Makes the web-elements to be accessible directly.
- For example self.elements = {"textbox": Selector(by=..., select=...),
Access the element by doing self.textbox directly.
- It also has implicit wait while finding the element.
:param key: The key of the element mentioned in self.elements
:returns: The webelement we are accessing
"""
try:
> return self.get_element(key)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521954160>
key = 'add_input'
def get_element(self, key):
"""
Get the web-element.
Note: There is a wait in get_element.
:param key: The key of the element mentioned in self.elements
:returns: element The element we are looking for by key
"""
element = self.elements[key]
> return self._get_element(element.by, element.select)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521954160>
by = 'id', select = 'addInputBtn'
def _get_element(self, by, select):
"""
Find the element from the page.
:param by: The type of the selenium locator
:param select: The selector text of type mentioned in by.
:returns: The webelement we are accessing
"""
msg = "by={} select={} Element not found in the page".format(by, select)
> return self.wait.until(EC.presence_of_element_located((by, select)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="4a8cde250dca4a11b5d475ba7ef2c8c8")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f8521955c90>
message = 'by=id select=addInputBtn Element not found in the page'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_select_multiple_values_multiple_select_test
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0e1d0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0e1d0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f8521891360>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f8521c759f0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_select_multiple_values_multiple_select_test(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies selected multiple values of Multiple Select Test dropdown in example input one"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
selected_values = ["A", "B"]
> input_page.create_new_input.select("Example Input One")
tests/ui/test_splunk_ta_example_addon_input_1.py:290:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521891750>
value = 'Example Input One'
def select(self, value):
"""
Selects the value we want from the type list
:param value: The value in which we want to select
:return: Returns True if successful, otherwise raises an error
"""
> self.add_input.click()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521891750>
key = 'add_input'
def __getattr__(self, key):
"""
Makes the web-elements to be accessible directly.
- For example self.elements = {"textbox": Selector(by=..., select=...),
Access the element by doing self.textbox directly.
- It also has implicit wait while finding the element.
:param key: The key of the element mentioned in self.elements
:returns: The webelement we are accessing
"""
try:
> return self.get_element(key)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521891750>
key = 'add_input'
def get_element(self, key):
"""
Get the web-element.
Note: There is a wait in get_element.
:param key: The key of the element mentioned in self.elements
:returns: element The element we are looking for by key
"""
element = self.elements[key]
> return self._get_element(element.by, element.select)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521891750>
by = 'id', select = 'addInputBtn'
def _get_element(self, by, select):
"""
Find the element from the page.
:param by: The type of the selenium locator
:param select: The selector text of type mentioned in by.
:returns: The webelement we are accessing
"""
msg = "by={} select={} Element not found in the page".format(by, select)
> return self.wait.until(EC.presence_of_element_located((by, select)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="5635bdcf5d96453284026d3431b7cb71")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f8521892aa0>
message = 'by=id select=addInputBtn Element not found in the page'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.0.6__firefox_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.firefox_TestInput ► test_example_input_one_deselect_multiple_select_test
Failed test found in:
test-results/test.xml
Error:
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0e410>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8521e0e410>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f8521c76860>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f8521c759f0>
@pytest.mark.execute_enterprise_cloud_true
@pytest.mark.forwarder
@pytest.mark.input
def test_example_input_one_deselect_multiple_select_test(
self, ucc_smartx_selenium_helper, ucc_smartx_rest_helper
):
"""Verifies deselect in Multiple Select Test dropdown in example input one"""
input_page = InputPage(ucc_smartx_selenium_helper, ucc_smartx_rest_helper)
selected_values = ["A", "B"]
> input_page.create_new_input.select("Example Input One")
tests/ui/test_splunk_ta_example_addon_input_1.py:308:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521c75360>
value = 'Example Input One'
def select(self, value):
"""
Selects the value we want from the type list
:param value: The value in which we want to select
:return: Returns True if successful, otherwise raises an error
"""
> self.add_input.click()
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/dropdown.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521c75360>
key = 'add_input'
def __getattr__(self, key):
"""
Makes the web-elements to be accessible directly.
- For example self.elements = {"textbox": Selector(by=..., select=...),
Access the element by doing self.textbox directly.
- It also has implicit wait while finding the element.
:param key: The key of the element mentioned in self.elements
:returns: The webelement we are accessing
"""
try:
> return self.get_element(key)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521c75360>
key = 'add_input'
def get_element(self, key):
"""
Get the web-element.
Note: There is a wait in get_element.
:param key: The key of the element mentioned in self.elements
:returns: element The element we are looking for by key
"""
element = self.elements[key]
> return self._get_element(element.by, element.select)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_splunk_addon_ui_smartx.components.dropdown.Dropdown object at 0x7f8521c75360>
by = 'id', select = 'addInputBtn'
def _get_element(self, by, select):
"""
Find the element from the page.
:param by: The type of the selenium locator
:param select: The selector text of type mentioned in by.
:returns: The webelement we are accessing
"""
msg = "by={} select={} Element not found in the page".format(by, select)
> return self.wait.until(EC.presence_of_element_located((by, select)), msg)
/usr/local/lib/python3.10/dist-packages/pytest_splunk_addon_ui_smartx/components/base_component.py:243:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="e69906e629f04bc2af73e37d43e56ed0")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f8521cc9c00>
message = 'by=id select=addInputBtn Element not found in the page'
def until(self, method, message=''):
"""Calls the method provided with the driver as an argument until the \
return value is not False."""
screen = None
stacktrace = None
end_time = time.time() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, 'screen', None)
stacktrace = getattr(exc, 'stacktrace', None)
time.sleep(self._poll)
if time.time() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message: by=id select=addInputBtn Element not found in the page
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/support/wait.py:80: TimeoutException