本文整理汇总了Python中AllTests.allTests方法的典型用法代码示例。如果您正苦于以下问题:Python AllTests.allTests方法的具体用法?Python AllTests.allTests怎么用?Python AllTests.allTests使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AllTests
的用法示例。
在下文中一共展示了AllTests.allTests方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(self, args):
#
# In this test, we need at least two threads in the
# client side thread pool for nested AMI.
#
properties = self.createTestProperties(args)
#
# For this test, we want to disable retries.
#
properties.setProperty("Ice.RetryIntervals", "-1")
#
# This test kills connections, so we don't want warnings.
#
properties.setProperty("Ice.Warn.Connections", "0")
#
# Limit the send buffer size, this test relies on the socket
# send() blocking after sending a given amount of data.
#
properties.setProperty("Ice.TCP.SndSize", "50000")
with self.initialize(properties=properties) as communicator:
AllTests.allTests(self, communicator)
示例2: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(self, args):
with self.initialize(args=args) as communicator:
communicator.getProperties().setProperty("TestAdapter.Endpoints", self.getTestEndpoint())
adapter = communicator.createObjectAdapter("TestAdapter")
adapter.add(TestI.InitialI(adapter), Ice.stringToIdentity("initial"))
# adapter.activate() // Don't activate OA to ensure collocation is used.
AllTests.allTests(self, communicator)
示例3: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010")
adapter = communicator.createObjectAdapter("TestAdapter")
adapter.add(TestI.MyDerivedClassI(), communicator.stringToIdentity("test"))
adapter.activate()
AllTests.allTests(communicator, True)
return True
示例4: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010")
adapter = communicator.createObjectAdapter("TestAdapter")
adapter.add(TestI.MyDerivedClassI(), Ice.stringToIdentity("test"))
#adapter.activate() // Don't activate OA to ensure collocation is used.
AllTests.allTests(communicator, True)
return True
示例5: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010")
adapter = communicator.createObjectAdapter("TestAdapter")
object = TestI.InitialI(adapter)
adapter.add(object, communicator.stringToIdentity("initial"))
#adapter.activate() // Don't activate OA to ensure collocation is used.
AllTests.allTests(communicator)
return True
示例6: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(self, args):
self.communicator().getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010")
adapter = self.communicator().createObjectAdapter("TestAdapter")
locator = TestI.ServantLocatorI()
adapter.addServantLocator(locator, "")
adapter.activate()
AllTests.allTests(self.communicator())
adapter.waitForDeactivate()
return 0
示例7: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010")
adapter = communicator.createObjectAdapter("TestAdapter")
initial = TestI.InitialI(adapter)
adapter.add(initial, communicator.stringToIdentity("initial"))
uoet = TestI.UnexpectedObjectExceptionTestI()
adapter.add(uoet, communicator.stringToIdentity("uoet"))
#adapter.activate() // Don't activate OA to ensure collocation is used.
AllTests.allTests(communicator)
# We must call shutdown even in the collocated case for cyclic dependency cleanup
initial.shutdown()
return True
示例8: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(self, args):
self.communicator().getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010")
self.communicator().getProperties().setProperty("Ice.Warn.Dispatch", "0")
adapter = self.communicator().createObjectAdapter("TestAdapter")
#adapter.activate() // Don't activate OA to ensure collocation is used.
adapter.addServantLocator(TestI.ServantLocatorI("category"), "category")
adapter.addServantLocator(TestI.ServantLocatorI(""), "")
adapter.add(TestI.TestI(), Ice.stringToIdentity("asm"))
adapter.add(TestActivationI.TestActivationI(), Ice.stringToIdentity("test/activation"))
AllTests.allTests(self.communicator(), False)
adapter.deactivate()
adapter.waitForDeactivate()
return 0
示例9: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010")
communicator.getProperties().setProperty("ControllerAdapter.Endpoints", "default -p 12011")
communicator.getProperties().setProperty("ControllerAdapter.ThreadPool.Size", "1")
adapter = communicator.createObjectAdapter("TestAdapter")
adapter2 = communicator.createObjectAdapter("ControllerAdapter")
testController = TestI.TestIntfControllerI(adapter)
adapter.add(TestI.TestIntfI(), communicator.stringToIdentity("test"))
#adapter.activate() # Collocated test doesn't need to active the OA
adapter2.add(testController, communicator.stringToIdentity("testController"))
#adapter2.activate() # Collocated test doesn't need to active the OA
AllTests.allTests(communicator, True)
return True
示例10: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
properties = communicator.getProperties()
properties.setProperty("Ice.Warn.Dispatch", "0")
properties.setProperty("TestAdapter.Endpoints", "default -p 12010")
adapter = communicator.createObjectAdapter("TestAdapter")
object = TestI.ThrowerI()
adapter.add(object, communicator.stringToIdentity("thrower"))
adapter.activate()
thrower = AllTests.allTests(communicator)
return True
示例11: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
myClass = AllTests.allTests(communicator, False)
print "testing server shutdown...",
myClass.shutdown()
try:
myClass.opVoid()
test(False)
except Ice.LocalException:
print "ok"
return True
示例12: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
ports = []
for arg in args[1:]:
if arg[0] == '-':
sys.stderr.write(args[0] + ": unknown option `" + arg + "'\n")
usage(args[0])
return False
ports.append(12010 + int(arg))
if len(ports) == 0:
sys.stderr.write(args[0] + ": no ports specified\n")
usage(args[0])
return False
try:
AllTests.allTests(communicator, ports)
except:
traceback.print_exc()
test(False)
return True
示例13: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
myClass = AllTests.allTests(communicator, False)
sys.stdout.write("testing server shutdown... ")
sys.stdout.flush()
myClass.shutdown()
try:
myClass.opVoid()
test(False)
except Ice.LocalException:
print("ok")
return True
示例14: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
AllTests.allTests(communicator)
return True
示例15: run
# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
Test = AllTests.allTests(communicator)
Test.shutdown()
return True