Exemple #1
0
 def FTP_NA_Upload(self):
     android = Android()
     adbClient = AdbClient()
     times = "1"
     filename = "2.pdf"
     filestart = "/2.pdf"
     fileend = "62914560 bytes"
     print "NB Server & android Client (ftp upload)"
     adbClient.swiandroidh_FtpClient()
     adbClient.ftplog_renew()
     android.mobile_device_connect()
     adbClient.download_over()
     android.ftp_creataccount()
     android.ftp_connect()
     android.Verify_ftp_connect()
     android.folder_select("Upload")
     android.ftp_localfolder()
     adbClient.adb_event("123")
     adbClient.adb_event("123")
     android.folder_select("Upload")
     android.ftp_upload(filename)
     adbClient.Transfer_Status(filestart, fileend)
     adbClient.getfile_command()
     adbClient.Check_FileStatus()
     adbClient.adb_event("4")
     android.screen_shot_save("FTP_Upload")
     adbClient.FTP_Urate()
     android.mobile_device_disconnect()
Exemple #2
0
 def FTP_NA_Upload_S(self):
     android = Android()
     adbClient = AdbClient()
     print "NB Server & android Client (ftp upload)"
     adbClient.swiandroidh_FtpClient()
     android.mobile_device_connect()
     adbClient.download_over()
     android.ftp_creataccount()
     for i in range(0, int(times)):
         adbClient.ftplog_renew()
         android.ftp_connect()
         android.Verify_ftp_connect()
         android.folder_select("Upload")
         android.ftp_localfolder()
         adbClient.adb_event("123")
         adbClient.adb_event("123")
         android.folder_select("Upload")
         android.ftp_upload(filename)
         adbClient.Transfer_Status(filestart, fileend)
         adbClient.getfile_command()
         adbClient.Check_FileStatus()
         adbClient.adb_event("4")
         android.screen_shot_save("FTP_Upload")
         adbClient.FTP_Urate()
         adbClient.adb_event("66")
         adbClient.adb_event("66")
         adbClient.adb_event("111")
         adbClient.adb_event("111")
         adbClient.adb_event("111")
     android.mobile_device_disconnect()
Exemple #3
0
 def FTP_NA_Download(self):
     android = Android()
     adbClient = AdbClient()
     filename = "1.pdf"
     filestart = "/1.pdf"
     fileend = "104857600 bytes"
     print "NB Server & android Client (ftp download)"
     adbClient.swiandroidh_FtpClient()
     adbClient.ftplog_renew()
     android.mobile_device_connect()
     adbClient.download_over()
     android.ftp_creataccount()
     android.ftp_connect()
     android.Verify_ftp_connect()
     android.folder_select("Download")
     android.ftp_download(filename)
     adbClient.Transfer_Status(filestart, fileend)
     adbClient.getfile_command()
     adbClient.Check_FileStatus()
     adbClient.adb_event("4")
     android.screen_shot_save("FTP_Download")
     adbClient.FTP_Drate()
     android.mobile_device_disconnect()