示例#1
0
    def runHost(self):
        if self.groupHost.getCount() > 0:
            return ASKGroup()

        self.__output("Start to run the host")
        objHost = WBXTF.WBXTFRunObject(self.sHostMachine, self.sToolPath,
                                       self.sParamHost, self.nTimeout)
        bRes = objHost != None
        self.__check("Verify running host", bRes)
        if bRes:
            self.groupHost.add(objHost)
            WBXTF.WBXTFOutput("RunHost SetUniqueAttendeeId %s" %
                              self.sHostMachine)
            self.groupHost.execute("config.SetUniqueAttendeeId(%s)" %
                                   self.sHostMachine)
        group = ASKGroup()
        group.copyFrom(self.groupHost)
        return group
示例#2
0
 def __output(self, text, type=WBXTF.typeInfo):
     if self.bEnableTrace:
         WBXTF.WBXTFOutput(text, type)