Ejemplo n.º 1
0
 def __init__(self):
     self._processes = ConnectionCache('No active process.')
     self._results = {}
Ejemplo n.º 2
0
 def __init__(self):
     self._cache = ConnectionCache()
     self.dict_alias = {}
     self._conn = None
     self.list_cls_local = []  # lwb: 2013-04-20 定义本端的实例列表
     self.list_cls_remote = []  # lwb: 2013-04-20 定义远端的实例列表
Ejemplo n.º 3
0
 def __init__(self):
     self._cache = ConnectionCache()
     self.dict_alias = {}
     self.clientpath = os.getcwd()  # GCW 2013-02-21 初始化时将工程目录名保存
Ejemplo n.º 4
0
 def __init__(self):
     self._cache = ConnectionCache()
     self.dict_alias = {}
     self.flag_stop_all = False
     self.dict_all_capture_pid_and_cls = {}  # 保存所有启动的抓包服务器的pid和cls
Ejemplo n.º 5
0
 def __init__(self):
     self._cache = ConnectionCache()
     self.dict_alias = {}
     self.init_ping_site("Local")
Ejemplo n.º 6
0
 def setUp(self):
     self.cache = ConnectionCache()
Ejemplo n.º 7
0
 def test_no_connection(self):
     assert_raises_with_msg(RuntimeError, 'No open connection.', getattr,
                            ConnectionCache().current, 'whatever')
     assert_raises_with_msg(RuntimeError, 'Custom msg', getattr,
                            ConnectionCache('Custom msg').current, 'xxx')
Ejemplo n.º 8
0
 def __init__(self):
     self._connection = None
     self.headers = None
     self._cache = ConnectionCache()
Ejemplo n.º 9
0
 def __init__(self):
     """
     """
     self._connections = ConnectionCache()
Ejemplo n.º 10
0
 def __init__(self):
     """Library initialization.
     Robot Framework ConnectionCache() class is prepared for working with concurrent connections."""
     self._connection = None
     self._cache = ConnectionCache()
Ejemplo n.º 11
0
 def __init__(self) -> None:
     """ Initialization. """
     self._bucket: Optional[Bucket] = None
     self._cache = ConnectionCache()
Ejemplo n.º 12
0
 def __init__(self):
     """
     初始化cache需要的数据成员
     """
     self._cache = ConnectionCache()
     self.dict_alias = {}  
Ejemplo n.º 13
0
 def __init__(self) -> None:
     self._connection: Optional[Elasticsearch] = None
     self._cache = ConnectionCache()
Ejemplo n.º 14
0
 def __init__(self) -> None:
     """Library initialization.
     Robot Framework ConnectionCache() class is prepared for working with concurrent connections."""
     self._connection: Optional[cx_Oracle.Connection] = None
     self._cache = ConnectionCache()