套件测试过滤器
public class SuiteTestFilter
extends Object
对象 | |
↳ | com.android.tradefed.testtype.suite.SuiteTestFilter |
表示用于包含和排除测试的过滤器。
概括
公共构造函数 | |
---|---|
SuiteTestFilter (String abi, String name, String test) 创建一个新的 | |
SuiteTestFilter (Integer shardIndex, String abi, String name, String test) 创建一个新的 |
公共方法 | |
---|---|
static SuiteTestFilter | createFrom (String filter) 构建一个新的 |
boolean | equals (Object obj) |
String | getAbi () |
String | getBaseName () 返回模块的基本名称,没有任何参数化。 |
String | getName () |
String | getParameterName () 如果模块已参数化,则返回参数值。 |
Integer | getShardIndex () 返回测试的分片索引,如果未指定,则返回 null。 |
String | getTest () |
int | hashCode () |
String | toString () 返回此过滤器的字符串表示形式。 |
公共构造函数
套件测试过滤器
public SuiteTestFilter (String abi, String name, String test)
创建一个新的SuiteTestFilter
从给定的部分。
参数 | |
---|---|
abi | String :将ABI必须支持AbiUtils#isAbiSupportedByCompatibility(String) |
name | String :该模块的名称 |
test | String :测试的标识如 |
套件测试过滤器
public SuiteTestFilter (Integer shardIndex, String abi, String name, String test)
创建一个新的SuiteTestFilter
从给定的部分。
参数 | |
---|---|
shardIndex | Integer |
abi | String :将ABI必须支持AbiUtils#isAbiSupportedByCompatibility(String) |
name | String :该模块的名称 |
test | String :测试的标识如 |
公共方法
创建自
public static SuiteTestFilter createFrom (String filter)
构建一个新的SuiteTestFilter
从给定的字符串。过滤器可以是四种形式之一,实例将被初始化为; -"name" -> abi = null, name = "name", test = null -"name" "test..." -> abi = null, name = "name", test = "test..." - "abi" "name" -> abi = "abi", name = "name", test = null -"abi" "name" "test..." -> abi = "abi", name = "name",测试 = "测试..."
测试标识符可以包含多个部分,例如参数化测试。
参数 | |
---|---|
filter | String :过滤器解析 |
退货 | |
---|---|
SuiteTestFilter | 该SuiteTestFilter |
等于
public boolean equals (Object obj)
参数 | |
---|---|
obj | Object |
退货 | |
---|---|
boolean |
获取阿比
public String getAbi ()
退货 | |
---|---|
String | 此过滤器的 abi,如果未指定,则为 null。 |
获取名称
public String getName ()
退货 | |
---|---|
String | 此过滤器的模块名称,如果未指定,则为 null。 |
获取参数名称
public String getParameterName ()
如果模块已参数化,则返回参数值。如果未参数化,则为空。
退货 | |
---|---|
String |
获取分片索引
public Integer getShardIndex ()
返回测试的分片索引,如果未指定,则返回 null。
退货 | |
---|---|
Integer |
获取测试
public String getTest ()
退货 | |
---|---|
String | 此过滤器的测试标识符,如果未指定,则为 null。 |
哈希码
public int hashCode ()
退货 | |
---|---|
int |
字符串
public String toString ()
返回此过滤器的字符串表示形式。此功能的逆createFrom(String)
。
对于一个有效的过滤器 f;
new TestFilter(f).toString().equals(f)
退货 | |
---|---|
String |