plugin¶
get_browser_scope(fixture_name, config)
¶
Set the scope of the browser dynamically.
Source code in pytest_splunk_addon_ui_smartx/plugin.py
157 158 159 160 161 162 163 164 |
|
pytest_addoption(parser)
¶
Register argparse-style options and ini-style config values, called once at the beginning of a test run.
Source code in pytest_splunk_addon_ui_smartx/plugin.py
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 |
|
pytest_collection_modifyitems(config, items)
¶
Add browser name as prefix in test class name
Source code in pytest_splunk_addon_ui_smartx/plugin.py
42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
pytest_configure(config)
¶
Setup configuration after command-line options are parsed
Source code in pytest_splunk_addon_ui_smartx/plugin.py
29 30 31 32 33 34 35 36 37 38 39 |
|
pytest_runtest_makereport(item, call)
¶
pytest_runtest_makereport will be called after each test case is executed. Capture a screenshot if the test case is failed. item.selenium_helper has been added by the fixture “test_helper”. The scope of the fixture must be function.
:param item: the method of the test case.
Source code in pytest_splunk_addon_ui_smartx/plugin.py
245 246 247 248 249 250 251 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 |
|
ucc_smartx_configs(request)
¶
Configure pytest parameters, if provided
Source code in pytest_splunk_addon_ui_smartx/plugin.py
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 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
|
ucc_smartx_selenium_wrapper(request)
¶
Calls ucc_smartx_selenium_helper fixture
Source code in pytest_splunk_addon_ui_smartx/plugin.py
234 235 236 237 238 239 240 241 242 |
|