假测试
public class FakeTest
extends Object
implements IDeviceTest , IRemoteTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.FakeTest |
一种假测试,其目的是轻松生成可重复的测试结果。
概括
公共构造函数 | |
---|---|
FakeTest () |
公共方法 | |
---|---|
ITestDevice | getDevice () 获取待测设备。 |
void | run ( TestInformation testInfo, ITestInvocationListener listener) 运行测试,并将结果报告给侦听器。 |
void | setDevice ( ITestDevice device) 注入被测设备。 |
公共构造函数
假测试
public FakeTest ()
公共方法
跑步
public void run (TestInformation testInfo, ITestInvocationListener listener)
运行测试,并将结果报告给侦听器。
参数 | |
---|---|
testInfo | TestInformation :包含运行测试的有用信息的TestInformation 对象。 |
listener | ITestInvocationListener : 测试结果的ITestInvocationListener |
投掷 | |
---|---|
DeviceNotAvailableException |