Ejemplo n.º 1
0
            #If not logged in, log in
            if not loggedIn:
                self.step_Login()
                loggedIn = True

            self.step_NavigateCabinetUpload()
            
            self.step_UploadFile(uploadFile)

            #Wrap up test
            if loggedIn and self.queue.empty():                
                self.step_Logout()
                loggedIn = False

            #Finish steps for current file            
            self.queue.task_done()


if __name__ == "__main__":
    results = cc.callTest(
        UploadFilestoCabinet,
        usrStart = 250,
        usrEnd = 470,
        usrChunk = 15,
        usrCycle = 7,
        totalFiles = glob.glob(r"C:\cygwin\home\bvandemerwe\www.ols11.com.nyud.net\dprine\Books\Epub books\*.*")[:450],
        userObject = users.ducotDrones,
        urlPack = urls.ducotURLpack,
        spreadsheet = '')
    
    cc.printStats(results)
Ejemplo n.º 2
0
            
            self.step_SearchForFolder()

            self.step_NavigateRootFolder()
            
            self.step_NavigateDocumentProfile()
            
            self.step_DownloadDocument()

            #Wrap up test
            if loggedIn:                
                self.step_Logout()
                loggedIn = False

            #Finish steps for current file            
            self.queue.task_done()


if __name__ == "__main__":
    results = cc.callTest(
        DownloadFile,
        usrStart = 670,
        usrEnd = 950,
        usrChunk = 45,
        usrCycle = 18,
        totalFiles = range(0, 550),
        userObject = users.ducotDrones,
        urlPack = urls.ducotURLpack,
        spreadsheet = r'C:\Users\bvandemerwe.NV\Documents\My Dropbox\NetDocuments\Automated\csvs\cito_fileupload-1330709380.csv')
    
    cc.printStats(results)
Ejemplo n.º 3
0
        while not self.queue.empty():
            #Retrieve a file from the queue and add its size
            x = self.queue.get()
            
            #If not logged in, log in
            if not loggedIn:
                self.step_Login()
                loggedIn = True

            #Wrap up test
            if loggedIn:                
                self.step_Logout()
                loggedIn = False

            #Finish steps for current file            
            self.queue.task_done()


if __name__ == "__main__":
    results = cc.callTest(
        LoginLogout,
        usrStart = 1,
        usrEnd = 450,
        usrChunk = 2,
        usrCycle = 15,
        totalFiles = range(0, 2000),
        userObject = users.ducotDrones,
        urlPack = urls.ducotURLpack,
        spreadsheet = '')
    
    cc.printStats(results)