(self, config, functions, http_client_session=None)
run testcase or testsuite.

        Args:
            config (dict): testcase/testsuite config dict

                {
                    "name": "ABC",
                    "variables": {},
                    "setup_hooks", [],
                    "teardown_hooks", []
                }

            http_client_session (instance): requests.Session(), or locust.client.Session() instance.
run testcase or testsuite.
run testcase or testsuite .
def __init__(self, config, functions, http_client_session=None):
        """ run testcase or testsuite.

        Args:
            config (dict): testcase/testsuite config dict

                {
                    "name": "ABC",
                    "variables": {},
                    "setup_hooks", [],
                    "teardown_hooks", []
                }

            http_client_session (instance): requests.Session(), or locust.client.Session() instance.

        """
        base_url = config.get("base_url")
        self.verify = config.get("verify", True)
        self.output = config.get("output", [])
        self.functions = functions
        self.validation_results = []

        # testcase setup hooks
        testcase_setup_hooks = config.get("setup_hooks", [])
        # testcase teardown hooks
        self.testcase_teardown_hooks = config.get("teardown_hooks", [])

        self.http_client_session = http_client_session or HttpSession(base_url)
        self.session_context = SessionContext(self.functions)

        if testcase_setup_hooks:
            self.do_hook_actions(testcase_setup_hooks, "setup")
def __init__ ( self , config , functions , http_client_session = None ) : base_url = config . get ( "base_url" ) self . verify = config . get ( "verify" , True ) self . output = config . get ( "output" , [ ] ) self . functions = functions self . validation_results = [ ] # testcase setup hooks testcase_setup_hooks = config . get ( "setup_hooks" , [ ] ) # testcase teardown hooks self . testcase_teardown_hooks = config . get ( "teardown_hooks" , [ ] ) self . http_client_session = http_client_session or HttpSession ( base_url ) self . session_context = SessionContext ( self . functions ) if testcase_setup_hooks : self . do_hook_actions ( testcase_setup_hooks , "setup" )