TestDescriptionsFile

public class TestDescriptionsFile
extends Object

java.lang.Object 中
   ↳ com.android.tradefed.result.TestDescriptionsFile


一个实用程序类,用于对 TestDescriptions 列表进行编组和取消编组到测试文件。

用于通过延迟加载实现缓存并尽量减少文件 I/O。

非线程安全。

摘要

公共构造函数

TestDescriptionsFile()

创建一个空白的测试说明列表。

TestDescriptionsFile(File file)

根据文件内容创建测试说明列表。

公共方法

void add(TestDescription test)
void addAll( test)
static TestDescriptionsFile fromTests( shardTests)
File getFile()

返回测试的测试文件表示 - 根据需要进行构建。

getTests()

返回存储的测试的副本 - 必要时从测试文件构建。

void populateTestFile(File testfile)

使用当前测试填充给定文件。

void remove(TestDescription test)
int size()

公共构造函数

TestDescriptionsFile

public TestDescriptionsFile ()

创建一个空白的测试说明列表。

TestDescriptionsFile

public TestDescriptionsFile (File file)

根据文件内容创建测试说明列表。

参数
file File

公共方法

添加

public void add (TestDescription test)

参数
test TestDescription

全部添加

public void addAll ( test)

参数
test

fromTests

public static TestDescriptionsFile fromTests ( shardTests)

参数
shardTests

返回
TestDescriptionsFile

getFile

public File getFile ()

返回测试的测试文件表示 - 根据需要进行构建。

测试将是唯一的,并且会进行排序。

返回
File

getTest

public  getTests ()

返回存储的测试的副本 - 必要时从测试文件构建。

返回

填充测试文件

public void populateTestFile (File testfile)

使用当前测试填充给定文件。

参数
testfile File

移除

public void remove (TestDescription test)

参数
test TestDescription

size

public int size ()

返回
int