7474except ImportError :
7575 Rule = type ("dummy" , (), {}) # Old pytest-bdd versions do not have Rule
7676
77- from reportportal_client import RP , create_client
77+ from reportportal_client import RP , ClientType , create_client , OutputType
7878from reportportal_client .helpers import dict_to_payload , gen_attributes , get_launch_sys_attrs , get_package_version
7979
8080LOGGER = logging .getLogger (__name__ )
@@ -1417,10 +1417,10 @@ def start(self) -> None:
14171417 self ._config .rp_api_key ,
14181418 )
14191419 launch_id = self ._launch_id
1420- if self ._config .rp_launch_id :
1421- launch_id = self ._config .rp_launch_id
1420+ if self ._config .rp_launch_uuid :
1421+ launch_id = self ._config .rp_launch_uuid
14221422 self .rp = create_client (
1423- client_type = self ._config .rp_client_type ,
1423+ client_type = self ._config .rp_client_type or ClientType . SYNC ,
14241424 endpoint = self ._config .rp_endpoint ,
14251425 project = self ._config .rp_project ,
14261426 api_key = self ._config .rp_api_key ,
@@ -1431,7 +1431,7 @@ def start(self) -> None:
14311431 launch_uuid = launch_id ,
14321432 log_batch_payload_limit = self ._config .rp_log_batch_payload_limit ,
14331433 launch_uuid_print = self ._config .rp_launch_uuid_print ,
1434- print_output = self ._config .rp_launch_uuid_print_output ,
1434+ print_output = self ._config .rp_launch_uuid_print_output or OutputType . STDOUT ,
14351435 http_timeout = self ._config .rp_http_timeout ,
14361436 mode = self ._config .rp_mode ,
14371437 # OAuth 2.0 parameters
0 commit comments