Beispiel #1
0
 def deploy(self):
     self.__output("Start to deploy the tool")
     if len(self.sDeploySourceMachine) == 0:
         WBXTF.WBXTFError("Fail to deploying: not set source machine")
         return
     if len(self.sDeploySourcePath) == 0:
         WBXTF.WBXTFError("Fail to deploying: not set source path")
         return
     if len(self.sDeployTargetPath) == 0:
         WBXTF.WBXTFError("Fail to deploying: not set target path")
         return
     bRes = True
     for machine in self.sMachines:
         objMachine = WBXTF.WBXTFObject("staf://%s/pack" % (machine))
         res = objMachine.Execute(
             "Install(%s, %s, %s, %s)" %
             (self.sDeployPackName, self.sDeploySourceMachine,
              self.sDeploySourcePath, self.sDeployTargetPath))
         try:
             if res["rc"] != 0 or int(res["result"]["rc"]) != 0:
                 bRes = False
                 WBXTF.WBXTFError("Fail to deploy on machine %s:%s" %
                                  (machine, res))
         except Exception:
             bRes = False
             WBXTF.WBXTFError("Fail to deploy on machine %s" % machine)
     self.sToolPath = self.sDeployTargetPath
     self.sToolPath = self.sToolPath + "/attendee.exe"
     return bRes
Beispiel #2
0
    def joinMeetingForGroup(self, group):
        self.__output("Start to join the meeting")
        if self.bNeedUpateMeetingInfo and (
                not self.__updateMeetingToGroup(group)):
            WBXTF.WBXTFError("Fail to update meeting information")
            return False

        res = group.execute("meeting.Open()")
        if not self.__checkResultsAsTrue(res):
            WBXTF.WBXTFError("Fail to join meeting")
            return False
        return self.waitMeetingJoin()
Beispiel #3
0
    def joinMeeting(self):
        self.__output("Start to join the meeting")
        if self.bNeedUpateMeetingInfo and (
                not self.__updateMeetingToAttendee()):
            WBXTF.WBXTFError("Fail to update meeting information")
            return False

        res = self.SendToAttendee("meeting.Open()")
        if not self.__checkResultsAsTrue(res):
            WBXTF.WBXTFError("Fail to join meeting")
            return False
        return self.waitMeetingJoin()
Beispiel #4
0
 def createMeetingByMeetingInfo(self):
     self.__output("Start to create a meeting")
     if not self.__updateMeetingToHost():
         WBXTF.WBXTFError("Fail to update meeting information")
         return False
     res = self.groupHost.execute("meeting.Open()")
     if not self.__checkResultsAsTrue(res):
         WBXTF.WBXTFError("Fail to create meeting")
         return False
     bRes = self.waitMeetingCreate()
     self.bNeedUpateMeetingInfo = True
     return bRes
Beispiel #5
0
 def closeSession(self, sessionName):
     self.__output("Start to close session:%s" % (sessionName))
     res = self.sendToHost("%s.Close" % (sessionName))
     if not self.__checkResultsAsTrue(res):
         WBXTF.WBXTFError("Fail to create session %s" % (sessionName))
         return False
     return True
Beispiel #6
0
 def createSession(self, sessionName):
     self.__output("Start to open session:%s" % (sessionName))
     res = self.sendToHost("%s.Open" % (sessionName))
     if not self.__checkResultsAsTrue(res):
         WBXTF.WBXTFError("Fail to create session %s" % (sessionName))
         return
     self.WaitSessionCreate(sessionName)