本文整理汇总了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)
示例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"))
示例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()
示例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")