測試資源

public class TestResource
extends Object

java.lang.Object
com.android.tradefed.cluster.TestResource


對 TFC API 返回的 TestResource 消息建模的類。

概括

公共方法

static TestResource fromJson (JSONObject json)
static fromJsonArray (JSONArray jsonArray)
boolean getDecompress ()
String getDecompressDir ()
File getDecompressDir (File parentDir)
getDecompressFiles ()
File getFile (File parentDir)
String getName ()
String getUrl ()
boolean mountZip ()
JSONObject toJson ()

公共方法

來自Json

public static TestResource fromJson (JSONObject json)

參數
json JSONObject

退貨
TestResource

來自JsonArray

public static  fromJsonArray (JSONArray jsonArray)

參數
jsonArray JSONArray

退貨

投擲
JSONException

解壓縮

public boolean getDecompress ()

退貨
boolean

獲取解壓目錄

public String getDecompressDir ()

退貨
String

獲取解壓目錄

public File getDecompressDir (File parentDir)

參數
parentDir File

退貨
File

獲取解壓縮文件

public  getDecompressFiles ()

退貨

獲取文件

public File getFile (File parentDir)

參數
parentDir File

退貨
File

獲取名稱

public String getName ()

退貨
String

獲取網址

public String getUrl ()

退貨
String

掛載Zip

public boolean mountZip ()

退貨
boolean

托傑森

public JSONObject toJson ()

退貨
JSONObject

投擲
JSONException