Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
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']
Esempio n. 4
0
 def __init__(self, driver, path=paths):
     self.driver = driver
     self.path = path
     self.exe = Execute_case(self.driver, path=self.path)
Esempio n. 5
0
 def __init__(self, driver):
     self.driver = driver
     self.path = path
     self.open = Execute_case(self.driver,path=self.path)