TestOutputUploader

public class TestOutputUploader
extends Object

java.lang.Object
   ↳ com.android.tradefed.cluster.TestOutputUploader


將測試輸出檔案上傳至本機檔案系統、GCS 或 HTTP(S) 端點。

摘要

公用建構函式

TestOutputUploader()

公用方法

void setUploadUrl(String url)
String uploadFile(File file, String destPath)

將檔案上傳至指定的目的路徑 (相對於上傳網址)。

公用建構函式

TestOutputUploader

public TestOutputUploader ()

公用方法

setUploadUrl

public void setUploadUrl (String url)

參數
url String

uploadFile

public String uploadFile (File file, 
                String destPath)

將檔案上傳至指定的目的路徑 (相對於上傳網址)。

參數
file File:要上傳的檔案

destPath String:相對目的地路徑

傳回
String 已上傳檔案的網址