Пример #1
0
    def __init__(self, test_type):
        self.test_type = test_type
        self.dir = Utils.log_dir()
        self.test_log = TestLog(self.dir)
        self.driver = Utils.create_driver(sys.argv[2])

        self.utils = Utils(self.driver, self.test_log)
        print('init')
Пример #2
0
    def __init__(self, driver, test_helper, test_log):
        self.utils = Utils(driver, None)
        self.driver = driver
        self.login_info = {}
        self.test_helper = test_helper
        self.test_log = test_log

        try:
            with open("login.config") as f:
                content = f.readlines()
                for line in content:
                    parts = line.strip().split(',', 2)
                    print("parts", parts)
                    self.login_info[parts[0]] = (parts[1], parts[2])
        except:
            pass
Пример #3
0
 def __init__(self, driver, test_log, test_helper):
     self.test_log = test_log
     self.driver = driver
     self.gui_lib = Utils(driver, test_log)
     # self.test_helper = TestHelper(self.test_log, self.driver)
     self.test_helper = test_helper
Пример #4
0
 def __init__(self, driver):
     self.driver = driver
     self.utils = Utils(driver)