class TickRequest_func: def __init__(self, driver, path=paths): self.driver = driver self.path = path self.exe = Execute_case(self.driver, path=self.path) def tickRequest_extract(self, **kwargs): print("******params:", kwargs) result = self.exe.exece_case(**kwargs) return result
class Sh_sz_func: def __init__(self, driver,path=paths): self.driver = driver self.path = path self.open = Execute_case(self.driver,path=self.path) def sh_sz(self,**kwargs): result = self.open.exece_case(**kwargs) return result
class Login_func: def __init__(self, driver): self.driver = driver self.path = path self.open = Execute_case(self.driver,path=self.path) def log(self,**kwargs): result = self.open.exece_case(**kwargs) if result['code'] == 1: logging.warning('无法获取断言') return else: return result['data']
def __init__(self, driver, path=paths): self.driver = driver self.path = path self.exe = Execute_case(self.driver, path=self.path)
def __init__(self, driver): self.driver = driver self.path = path self.open = Execute_case(self.driver,path=self.path)