base_test¶
SeleniumHelper(browser, browser_version, splunk_web_url, splunk_mgmt_url, debug=False, cred=('admin', 'Chang3d!'), headless=False, test_case=None)
¶
The helper class provides the Remote Browser
Source code in pytest_splunk_addon_ui_smartx/base_test.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
|
UccTester
¶
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)
¶
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.
Source code in pytest_splunk_addon_ui_smartx/base_test.py
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 |
|