当前位置: 首页>>代码示例>>Python>>正文


Python VistATestClientFactory.createVistATestClient方法代码示例

本文整理汇总了Python中VistATestClient.VistATestClientFactory.createVistATestClient方法的典型用法代码示例。如果您正苦于以下问题:Python VistATestClientFactory.createVistATestClient方法的具体用法?Python VistATestClientFactory.createVistATestClient怎么用?Python VistATestClientFactory.createVistATestClient使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在VistATestClient.VistATestClientFactory的用法示例。


在下文中一共展示了VistATestClientFactory.createVistATestClient方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: _createTestClient

# 需要导入模块: from VistATestClient import VistATestClientFactory [as 别名]
# 或者: from VistATestClient.VistATestClientFactory import createVistATestClient [as 别名]
 def _createTestClient(self):
   testClientConfig = self._config['VistA_Connection']
   system = testClientConfig['system']
   namespace = testClientConfig.get('namespace', DEFAULT_NAMESPACE)
   username = testClientConfig.get('username', None)
   password = testClientConfig.get('password', None)
   prompt = testClientConfig.get('prompt', None)
   return VistATestClientFactory.createVistATestClient(system,
                                          prompt=prompt,
                                          namespace=namespace,
                                          instance=self._instance,
                                          username=username,
                                          password=password)
开发者ID:A7medKotb,项目名称:VistA,代码行数:15,代码来源:PatchIncrInstallExtractCommit.py

示例2: dispatch

# 需要导入模块: from VistATestClient import VistATestClientFactory [as 别名]
# 或者: from VistATestClient.VistATestClientFactory import createVistATestClient [as 别名]
  def dispatch(self):
#    expectConn = VistATestClientFactory.createVistATestClient(self._system, namespace=self._namespace)
#    if not expectConn:
#      return
#    FileManGlobalAttributes.listFileManFileAttributes(expectConn, self._fileManFile, 3,
#                              os.path.join(self._logDir, self._fileManFile + ".custom"),
#                              os.path.join(self._logDir, self._fileManFile + ".customlog"))
    expectConn = VistATestClientFactory.createVistATestClient(self._system, namespace=self._namespace)
    if not expectConn:
      return
    FileManGlobalAttributes.listFileManFileAttributes(expectConn, self._fileManFile, 1,
                              os.path.join(self._logDir, self._fileManFile + ".schema"),
                              os.path.join(self._logDir, self._fileManFile + ".log"))
开发者ID:jasonli2000,项目名称:expect-script,代码行数:15,代码来源:GetAllFileManSchemaLog.py

示例3: __reindexKernelRPCParameterFile__

# 需要导入模块: from VistATestClient import VistATestClientFactory [as 别名]
# 或者: from VistATestClient.VistATestClientFactory import createVistATestClient [as 别名]
    connection.expect("OK, ARE YOU SURE YOU WANT TO KILL OFF THE EXISTING")
    connection.send("YES\r")
    connection.expect("DO YOU THEN WANT TO \'RE-CROSS-REFERENCE\'\?")
    connection.send("YES\r")
    connection.expect("Select UTILITY OPTION:")
    connection.send("\r")
    connection.expect("Select OPTION:")
    connection.send("\r")
  def __reindexKernelRPCParameterFile__(self):
    self.__reindexFile__("8989.3") # kernel system parameters
    self.__reindexFile__("8994.1") # RPC broker site parameters

if __name__ == '__main__':
  parser = argparse.ArgumentParser(description='Setup Domain Name')
  parser.add_argument('-N', dest='DomainName',
                      help='Domain Name')
  #parser.add_argument('-a', dest="Add", help="Add a new volume set")
  parser.add_argument('-m', required=True, dest="mumpsSystem", choices='12',
                      help="1. Cache, 2. GTM")
  parser.add_argument('-l', required=True, dest="logFile",
                      help="where to store the log file")
  result = vars(parser.parse_args());
  print (result)
  expectConn = None
  system = int(result['mumpsSystem'])
  expectConn = VistATestClientFactory.createVistATestClient(system)
  if not expectConn:
    sys.exit(-1)
  domain = CreateNewDomain(system, expectConn, result['DomainName'], result['logFile'])
  domain.run()
开发者ID:jasonli2000,项目名称:expect-script,代码行数:32,代码来源:CreateNewDomain.py

示例4: testFindoutSystemManagerDuz

# 需要导入模块: from VistATestClient import VistATestClientFactory [as 别名]
# 或者: from VistATestClient.VistATestClientFactory import createVistATestClient [as 别名]
def testFindoutSystemManagerDuz():
  expectConn = None
  expectConn = VistATestClientFactory.createVistATestClient(1)
  if not expectConn:
    sys.exit(-1)
  findoutSystemManagerDuz(expectConn, "TESTUSER,SIXTY")
开发者ID:jasonli2000,项目名称:expect-script,代码行数:8,代码来源:CreateSystemManager.py


注:本文中的VistATestClient.VistATestClientFactory.createVistATestClient方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。