2.1.2.1.1. tests.utils.common_utils

2.1.2.1.1.1. Classes

CommonUtils

Common utilities for test automation.

2.1.2.1.1.2. Module Contents

class tests.utils.common_utils.CommonUtils[source]

Common utilities for test automation.

static get_logger(name)[source]

Return a logger configured with the common format.

Parameters:

name (str) – Name of the logger (usually __name__)

Returns:

Configured logger instance

Return type:

logging.Logger

static require_supported_platform(platform_name, platform_base_obj, supported_platforms, suite_name)[source]

Skip the test if the platform is not in the supported list.

Parameters:
  • platform_name (str) – Name of the platform being tested

  • platform_base_obj – Base object for the platform

  • supported_platforms (Iterable[str]) – Iterable of supported platform names

  • suite_name (str) – Name of the test suite for logging

Return type:

None