Пример #1
0
 def test(self):
     self.login()
     ThreadRun( "TimeHello." + str(self.name),  self.timeHello ).start()
     # ThreadRun( "TimeCtrl." + str(self.name),  self.inputHello ).start()
     ThreadRun( "TimeSend." + str(self.name),  self.timeSend ).start()
     self.socket.waitRead(self.onException)    #异常回调
     tool.wait()
     return
Пример #2
0
    def test2(self):
        self.login()
        self.getRooms()
        # self.goRoom("QGSNLntBvK")
        # self.goRoomName("深海")
        # self.goARoom()
        # ThreadRun( "DoSend." + str(self.count),  self.doHello ).start()
        ThreadRun( "SayHello." + str(self.count),  self.sayHello ).start()
        ThreadRun( "GetHello." + str(self.count),  self.getHello ).start()
        # ThreadRun( "InputHello." + str(self.count),  self.inputHello ).start()

        return
Пример #3
0
    def test2(self):
        self.login()
        self.getRooms()
        self.createRoom()
        # self.goRoom("YfdWkQ1lEs")
        # self.goRoomName("上帝")
        ThreadRun("DoSend." + str(self.count), self.doHello).start()
        ThreadRun("SayHello." + str(self.count), self.sayHello).start()
        ThreadRun("GetHello." + str(self.count), self.getHello).start()
        ThreadRun("InputHello." + str(self.count), self.inputHello).start()

        tool.wait()
Пример #4
0
    def test(self):
        self.login()
        # 输入监控线程
        ThreadRun( "InputHello." + str(self.name),  self.inputHello ).start()

        tool.wait()
        return
Пример #5
0
 def test(self):
     self.login()
     ThreadRun("InputHello." + str(self.name), self.inputHello).start()
     flag, res = self.getAudio("百度你好")
     print(flag)
     print(res)
     tool.wait()
     return
Пример #6
0
    def test(self):
        self.login()
        self.getRooms()
        # self.goRoom("QGSNLntBvK")
        # self.goRoomName("深海")
        self.goARoom()
        ThreadRun( "DoSend." + str(self.count),  self.doHello ).start()
        ThreadRun( "SayHello." + str(self.count),  self.sayHello ).start()
        ThreadRun( "GetHello." + str(self.count),  self.getHello ).start()
        # ThreadRun( "InputHello." + str(self.count),  self.inputHello ).start()

        # for i in range(len(self.roomIndex.keys())):
        #     self.goRoom( self.roomIndex.keys()[i] )
        #     self.music("turn")
        #     time.sleep(7)
        #     self.outRoom()
        #     time.sleep(3)

        return