plugin
- class pytest_splunk_addon_ui_smartx.plugin.SmartConfigs(driver, driver_version, local_run, retry_count, headless_run)
Bases:
tuple
- property driver
Alias for field number 0
- property driver_version
Alias for field number 1
- property headless_run
Alias for field number 4
- property local_run
Alias for field number 2
- property retry_count
Alias for field number 3
- pytest_splunk_addon_ui_smartx.plugin.get_browser_scope(fixture_name, config)[source]
Set the scope of the browser dynamically.
- pytest_splunk_addon_ui_smartx.plugin.pytest_addoption(parser)[source]
Register argparse-style options and ini-style config values, called once at the beginning of a test run.
- pytest_splunk_addon_ui_smartx.plugin.pytest_collection_modifyitems(config, items)[source]
Add browser name as prefix in test class name
- pytest_splunk_addon_ui_smartx.plugin.pytest_configure(config)[source]
Setup configuration after command-line options are parsed
- pytest_splunk_addon_ui_smartx.plugin.pytest_runtest_makereport(item, call)[source]
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.