コード例 #1
0
ファイル: testplan.py プロジェクト: jackiejay888/askey
 def FTP_NA_Download_S(self):
     android = Android()
     adbClient = AdbClient()
     print "NB Server & android Client (ftp download)"
     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("Download")
         android.ftp_download(filename)
         adbClient.del_file("vsftpd.log")
         adbClient.Transfer_Status(filestart, fileend)
         adbClient.getfile_command()
         adbClient.Check_FileStatus()
         adbClient.adb_event("4")
         android.screen_shot_save("FTP_Download")
         adbClient.FTP_Drate()
         adbClient.adb_event("66")
         adbClient.adb_event("66")
         adbClient.adb_event("111")
         adbClient.adb_event("111")
         adbClient.adb_event("111")
     android.mobile_device_disconnect()
     print "mobile_device_disconnect"
コード例 #2
0
ファイル: testplan.py プロジェクト: jackiejay888/askey
 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()