(self, failfast=False, save_tests=False, report_template=None, report_dir=None,
                 log_level="INFO", log_file=None)
initialize HttpRunner.

        Args:
            failfast (bool): stop the test run on the first error or failure.
            save_tests (bool): save loaded/parsed tests to JSON file.
            report_template (str): report template file path, template should be in Jinja2 format.
            report_dir (str): html report save directory.
            log_level (str): logging level.
            log_file (str): log file path.
initialize HttpRunner.
initialize HttpRunner .
def __init__(self, failfast=False, save_tests=False, report_template=None, report_dir=None,
                 log_level="INFO", log_file=None):
        """ initialize HttpRunner.

        Args:
            failfast (bool): stop the test run on the first error or failure.
            save_tests (bool): save loaded/parsed tests to JSON file.
            report_template (str): report template file path, template should be in Jinja2 format.
            report_dir (str): html report save directory.
            log_level (str): logging level.
            log_file (str): log file path.

        """
        self.exception_stage = "initialize HttpRunner()"
        kwargs = {
            "failfast": failfast,
            "resultclass": report.HtmlTestResult
        }
        self.unittest_runner = unittest.TextTestRunner(**kwargs)
        self.test_loader = unittest.TestLoader()
        self.save_tests = save_tests
        self.report_template = report_template
        self.report_dir = report_dir
        self._summary = None
        if log_file:
            logger.setup_logger(log_level, log_file)
def __init__ ( self , failfast = False , save_tests = False , report_template = None , report_dir = None , log_level = "INFO" , log_file = None ) : self . exception_stage = "initialize HttpRunner()" kwargs = { "failfast" : failfast , "resultclass" : report . HtmlTestResult } self . unittest_runner = unittest . TextTestRunner ( * * kwargs ) self . test_loader = unittest . TestLoader ( ) self . save_tests = save_tests self . report_template = report_template self . report_dir = report_dir self . _summary = None if log_file : logger . setup_logger ( log_level , log_file )