pytest_add_option_hook
This module contains the PytestAddOptionHook class which is used to add custom options to the pytest command line.
These options can be used to customize the behavior of the pytest framework for specific test runs.
PytestAddOptionHook
A class that adds custom options to the pytest command line.
Attributes:
Name | Type | Description |
---|---|---|
parser_obj |
Parser
|
The parser object used to add options. |
Methods:
Name | Description |
---|---|
add_option_hook |
Adds the custom options to the pytest command line. |
Source code in libs\cafex_core\src\cafex_core\utils\hooks_\pytest_add_option_hook.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 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 |
|
__init__(parser_obj)
Initialize the PytestAddOptionHook class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
parser_obj
|
The parser object used to add options. |
required |
Source code in libs\cafex_core\src\cafex_core\utils\hooks_\pytest_add_option_hook.py
19 20 21 22 23 24 25 |
|
add_option_hook()
Adds the custom options to the pytest command line.
The options include environment settings, selenium grid settings, browser settings, user credentials, custom parameters, reporting settings, and Jenkins settings.
Source code in libs\cafex_core\src\cafex_core\utils\hooks_\pytest_add_option_hook.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 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 |
|