base_test

class pytest_splunk_addon_ui_smartx.base_test.SeleniumHelper(browser, browser_version, splunk_web_url, splunk_mgmt_url, debug=False, cred=('admin', 'Chang3d!'), headless=False, test_case=None)[source]

Bases: object

The helper class provides the Remote Browser

class pytest_splunk_addon_ui_smartx.base_test.UccTester[source]

Bases: object

The default setup and teardown methods can be added here. Use in case if some additional configuration should be added to all the test cases

assert_util(left, right, operator='==', left_args={}, right_args={}, msg=None)[source]

Try to check the condition for {WAIT_TIMEOUT} seconds. In UI Automation, it is not possible to expect things to work properly just milliseconds after an action. Even in manual testing, we try things after 4-5 seconds and 2-3 times. This utility method tries to achive the same assertion. To perform certain action multiple time, provide callable functoins with arguments.

Params:

left (object or callable): LHS of the operator. right (object or callable): RHS of the operator operator: Operator. Possible values: (==, !=, <, >, <=, >=, in, not in, is, is not) left_args: If left is callable, pass the parameters of the callable function. right_args: If right is callable, pass the parameters of the callable function. msg: Error message if the condition was not matched even after trying for {WAIT_TIMEOUT} seconds.