예제 #1
0
 def __init__(self, test_session, name, parent_config=None):
     self.__test_session = test_session
     self.__name = name
     self.__parent_config = parent_config and parent_config or None
     from arjuna.tpi import Arjuna
     self.__configs = {"default_config" : Arjuna.get_ref_config()}
     self.__conf_trace = dict()
예제 #2
0
 def __init__(self, config=None):
     from arjuna.tpi import Arjuna
     self.__config = config and config or Arjuna.get_ref_config()
     self.__test_session = self.config.test_session
     self.__dom_root = None
     self.__main_window = None
     self.__browser = None
     self.__auto_context = None
예제 #3
0
 def __init__(self):
     self.lock = threading.RLock()
     self.__loading_completed = False
     self.__mlmap = {}
     from arjuna.tpi import Arjuna
     ref_config = Arjuna.get_ref_config()
     self.proj_dir = ref_config.get_arjuna_option_value(ArjunaOption.PROJECT_ROOT_DIR).as_str()
     self.test_dir = ref_config.get_arjuna_option_value(ArjunaOption.UNITEE_PROJECT_TESTS_DIR).as_str()
     self.logger = Arjuna.get_logger()
     self.console = Arjuna.get_console()
예제 #4
0
 def __init__(self, config=None, extended_config=None):
     from arjuna.tpi import Arjuna
     self.__config = config and config or Arjuna.get_ref_config()
     self.__test_session = self.config.test_session
     self.__dom_root = None
     self.__main_window = None
     self.__browser = None
     self.__auto_context = None
     self._set_impl_automator(ImplGuiAutomator(config, extended_config))
     self._set_main_window(
         GuiAutoComponentFactory.MainWindow(
             self, self.impl_automator.main_window))
     self._set_browser(
         GuiAutoComponentFactory.Browser(self, self.impl_automator.browser))
예제 #5
0
파일: base.py 프로젝트: Prodject/arjuna
 def __launch_automator(config=None, econfig=None):
     # Default Gui automation engine is Selenium
     config = config and config or Arjuna.get_ref_config()
     self.__automator = Arjuna.create_gui_automator(config=config,
                                                    extended_config=econfig)