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


Python AllTests.allTests方法代码示例

本文整理汇总了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)
开发者ID:zeroc-ice,项目名称:ice-debian-packaging,代码行数:27,代码来源:Client.py

示例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)
开发者ID:zeroc-ice,项目名称:ice-debian-packaging,代码行数:9,代码来源:Collocated.py

示例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
开发者ID:2008hatake,项目名称:zeroc-ice,代码行数:11,代码来源:Collocated.py

示例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
开发者ID:ming-hai,项目名称:ice,代码行数:11,代码来源:Collocated.py

示例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
开发者ID:bjarnescottlee,项目名称:ice,代码行数:12,代码来源:Collocated.py

示例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
开发者ID:bholl,项目名称:zeroc-ice,代码行数:14,代码来源:Collocated.py

示例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
开发者ID:pedia,项目名称:zeroc-ice,代码行数:17,代码来源:Collocated.py

示例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
开发者ID:hadoop835,项目名称:ice,代码行数:18,代码来源:Collocated.py

示例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
开发者ID:BlackHoleJet,项目名称:ice,代码行数:21,代码来源:Collocated.py

示例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
开发者ID:sbesson,项目名称:zeroc-ice,代码行数:14,代码来源:Collocated.py

示例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
开发者ID:liuxin-samsung,项目名称:zeroc-ice,代码行数:14,代码来源:Client.py

示例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
开发者ID:yuanbaopapa,项目名称:ice,代码行数:24,代码来源:Client.py

示例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
开发者ID:2008hatake,项目名称:zeroc-ice,代码行数:15,代码来源:Client.py

示例14: run

# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
    AllTests.allTests(communicator)
    return True
开发者ID:bjarnescottlee,项目名称:ice,代码行数:5,代码来源:Client.py

示例15: run

# 需要导入模块: import AllTests [as 别名]
# 或者: from AllTests import allTests [as 别名]
def run(args, communicator):
    Test = AllTests.allTests(communicator)
    Test.shutdown()
    return True
开发者ID:ming-hai,项目名称:ice,代码行数:6,代码来源:Client.py


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