mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 21:39:41 +08:00
add:sql and thrift as step
This commit is contained in:
@@ -38,6 +38,8 @@ class SessionRunner(object):
|
||||
session: HttpSession = None
|
||||
case_id: Text = ""
|
||||
root_dir: Text = ""
|
||||
thrift_client = None
|
||||
db_engine = None
|
||||
|
||||
__config: TConfig
|
||||
__project_meta: ProjectMeta = None
|
||||
@@ -87,6 +89,12 @@ class SessionRunner(object):
|
||||
self.__export = export
|
||||
return self
|
||||
|
||||
def with_thrift_client(self, thrift_client) -> "SessionRunner":
|
||||
self.thrift_client = thrift_client
|
||||
|
||||
def with_db_engine(self,db_engine):
|
||||
self.db_engine = db_engine
|
||||
|
||||
def __parse_config(self, param: Dict = None) -> None:
|
||||
# parse config variables
|
||||
self.__config.variables.update(self.__session_variables)
|
||||
|
||||
Reference in New Issue
Block a user