chore(deps): update all dependencies #524
test-report-9.1.1__chrome_test_splunk_ta_example_addon_input_1 ❌
❌ test-results/test.xml
59 tests were completed in 5585s with 0 passed, 59 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 59❌ | 5585s |
❌ pytest
tests.ui.test_splunk_ta_example_addon_input_1.chrome_TestInput
❌ test_example_input_one_required_field_name
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba0850>
❌ test_example_input_one_valid_length_name
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba0a60>
❌ test_example_input_one_valid_input_name
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba0ca0>
❌ test_example_input_one_list_single_select_group_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba0e50>
❌ test_example_input_one_select_value_single_select_group_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba12a0>
❌ test_example_input_one_search_value_single_select_group_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba16f0>
❌ test_example_input_one_default_value_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba18a0>
❌ test_example_input_one_list_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba1ba0>
❌ test_example_input_one_select_value_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba2fe0>
❌ test_example_input_one_select_multiple_values_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba2140>
❌ test_example_input_one_deselect_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba2410>
❌ test_example_input_one_search_value_multiple_select_test
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba2710>
❌ test_example_input_one_default_value_example_checkbox
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba2a10>
❌ test_example_input_one_unchecked_example_checkbox
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba2e60>
❌ test_example_input_one_checked_example_checkbox
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba2ec0>
❌ test_example_input_one_default_value_example_radio
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba1570>
❌ test_example_input_one_select_value_example_radio
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba3a30>
❌ test_example_input_one_required_field_interval
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba3520>
❌ test_example_input_one_valid_input_interval
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba37f0>
❌ test_example_input_one_required_field_index
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba3d00>
❌ test_example_input_one_default_value_index
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8071502fe0>
❌ test_example_input_one_required_field_example_account
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80715027d0>
❌ test_example_input_one_required_field_object
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8071501060>
❌ test_example_input_one_required_field_object_fields
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8071503550>
❌ test_example_input_one_required_field_order_by
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8071502830>
❌ test_example_input_one_default_value_order_by
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80715019c0>
❌ test_example_input_one_fields_label_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8071501090>
❌ test_example_input_two_fields_label_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f8071502860>
❌ test_example_input_one_fields_placeholder_value
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cc1f0>
❌ test_example_input_two_fields_placeholder_value
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba08e0>
❌ test_example_input_one_help_text_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba0910>
❌ test_example_input_one_valid_input_query_start_date
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cf400>
❌ test_example_input_one_default_value_limit
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cea70>
❌ test_example_input_one_help_link
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cef20>
❌ test_example_input_one_add_frontend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cd900>
❌ test_example_input_one_add_backend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cdbd0>
❌ test_example_input_one_edit_uneditable_field_name
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714ceb90>
❌ test_example_input_one_edit_frontend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cda20>
❌ test_example_input_one_edit_backend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714ce050>
❌ test_example_input_one_clone_default_values
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cf730>
❌ test_example_input_one_clone_frontend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cc340>
❌ test_example_input_one_clone_backend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cc310>
❌ test_example_input_one_delete_row_frontend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714ce770>
❌ test_example_input_one_delete_row_backend_validation
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cf2b0>
❌ test_example_input_one_add_close_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cf1f0>
❌ test_example_input_one_edit_close_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714ce740>
❌ test_example_input_one_clone_close_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cf670>
❌ 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 0x7f80714cebf0>
❌ test_example_input_one_edit_cancel_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cf880>
❌ test_example_input_one_clone_cancel_entity
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f80714cfa60>
❌ 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 0x7f806fbb8490>
❌ test_example_input_one_clone_duplicate_names
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fbb83a0>
❌ test_example_input_one_add_valid_title
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fbba0b0>
❌ test_example_input_one_edit_valid_title
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fbb8880>
❌ test_example_input_one_clone_valid_title
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fbb8b50>
❌ test_example_input_one_delete_valid_title
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fbb8f40>
❌ test_example_input_one_delete_valid_prompt_message
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fbb9180>
Annotations
Check failure on line 0 in test-results/test.xml
github-actions / test-report-9.1.1__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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 0x7f806fba0850>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba0850>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f806fc02140>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f806fc019f0>
@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 0x7f806f56f7f0>
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 0x7f806f56f7f0>
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 0x7f806f56f7f0>
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 0x7f806f56f7f0>
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="13c1b5efd47244c3a55f834d5710fe9b")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f806f56d390>
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.1.1__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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 0x7f806fba0a60>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba0a60>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f806f63bbb0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f806fc019f0>
@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 0x7f806f7f3730>
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 0x7f806f7f3730>
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 0x7f806f7f3730>
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 0x7f806f7f3730>
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="d197471e8cc7411cafc84d785777ffa6")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f806f7f0910>
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.1.1__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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 0x7f806fba0ca0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba0ca0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f806f557460>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f806fc019f0>
@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 0x7f806f622230>
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 0x7f806f622230>
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 0x7f806f622230>
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 0x7f806f622230>
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="8592b11b11184ba995a21bf405b4eb68")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f806f623850>
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.1.1__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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 0x7f806fba0e50>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba0e50>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f806fb94a00>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f806fc019f0>
@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 0x7f806fb94ca0>
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 0x7f806fb94ca0>
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 0x7f806fb94ca0>
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 0x7f806fb94ca0>
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="c9eb160959d442fea801722c3f368975")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f806f5c3940>
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.1.1__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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 0x7f806fba12a0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba12a0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f806f53e980>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f806fc019f0>
@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 0x7f806f7dac80>
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 0x7f806f7dac80>
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 0x7f806f7dac80>
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 0x7f806f7dac80>
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="94b015f3af5549f5ae6e2ef0a278f2fb")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f806f7d8f10>
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.1.1__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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 0x7f806fba16f0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba16f0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f806f639120>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f806fc019f0>
@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 0x7f806f70ed10>
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 0x7f806f70ed10>
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 0x7f806f70ed10>
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 0x7f806f70ed10>
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="36fa57a30edc4c2ea571ece954bc026f")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f806f70d150>
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.1.1__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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 0x7f806fba18a0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba18a0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f806f6f8130>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f806fc019f0>
@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 0x7f806f554040>
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 0x7f806f554040>
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 0x7f806f554040>
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 0x7f806f554040>
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="a5f94fa4ee2c40a7977f29f1e7d85bc9")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f806f554640>
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.1.1__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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 0x7f806fba1ba0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba1ba0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f806f5554e0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f806fc019f0>
@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 0x7f806f6f8610>
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 0x7f806f6f8610>
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 0x7f806f6f8610>
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 0x7f806f6f8610>
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="a3c9bc84f4ce4118a65d623d05aa36eb")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f806f6fb7c0>
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.1.1__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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 0x7f806fba2fe0>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba2fe0>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f806f7da4d0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f806fc019f0>
@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 0x7f806fc03940>
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 0x7f806fc03940>
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 0x7f806fc03940>
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 0x7f806fc03940>
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="1c08adae575c447081e2a90924303aab")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f806f7e8fd0>
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.1.1__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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 0x7f806fba2140>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba2140>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f806f5fe2f0>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f806fc019f0>
@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 0x7f806f5fcc40>
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 0x7f806f5fcc40>
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 0x7f806f5fcc40>
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 0x7f806f5fcc40>
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="c42b26d5961345549be7c98265ae917e")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f806f5fd660>
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.1.1__chrome_test_splunk_ta_example_addon_input_1
pytest ► tests.ui.test_splunk_ta_example_addon_input_1.chrome_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 0x7f806fba2410>
Raw output
self = <ui.test_splunk_ta_example_addon_input_1.TestInput object at 0x7f806fba2410>
ucc_smartx_selenium_helper = <pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper object at 0x7f806f5c1600>
ucc_smartx_rest_helper = <pytest_splunk_addon_ui_smartx.base_test.RestHelper object at 0x7f806fc019f0>
@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 0x7f806f5c1960>
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 0x7f806f5c1960>
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 0x7f806f5c1960>
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 0x7f806f5c1960>
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="a83515405ff84d00aebe5362cc827d85")>
method = <selenium.webdriver.support.expected_conditions.presence_of_element_located object at 0x7f806f5c21a0>
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