from functest.utils.constants import CONST
__author__ = ("Serena Feng <feng.xiaowei@zte.com.cn>, "
from functest.utils.constants import CONST
__author__ = ("Serena Feng <feng.xiaowei@zte.com.cn>, "
def __init__(self, **kwargs):
super(Feature, self).__init__(**kwargs)
self.result_file = "{}/{}.log".format(
def __init__(self, **kwargs):
super(Feature, self).__init__(**kwargs)
self.result_file = "{}/{}.log".format(
def execute(self, **kwargs):
"""Execute the Python method.
def execute(self, **kwargs):
"""Execute the Python method.
ft_utils.logger_test_results(
self.project_name, self.case_name,
self.result, self.details)
ft_utils.logger_test_results(
self.project_name, self.case_name,
self.result, self.details)
- self.logger.exception("%s FAILED", self.project_name)
- self.logger.info("Test result is stored in '%s'", self.result_file)
+ self.__logger.exception("%s FAILED", self.project_name)
+ self.__logger.info("Test result is stored in '%s'", self.result_file)
def execute(self, **kwargs):
"""Execute the cmd passed as arg
def execute(self, **kwargs):
"""Execute the cmd passed as arg