add:sql and thrift as step

This commit is contained in:
duanchao.bill
2022-04-26 17:59:20 +08:00
parent 9a0ffa9802
commit 4b9433fa72
9 changed files with 575 additions and 65 deletions

View File

@@ -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)