使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
假测试
public class FakeTest
extends Object
implements IDeviceTest , IRemoteTest
java.lang.Object |
↳ | com.android.tradefed.testtype.FakeTest |
一种假测试,其目的是使生成可重复的测试结果变得容易。
概括
公共方法 |
---|
ITestDevice | getDevice () 获取被测设备。 |
void | run (TestInformation testInfo, ITestInvocationListener listener) |
void | setDevice (ITestDevice device) 注入被测设备。 |
公共构造函数
公共方法
获取设备
public ITestDevice getDevice ()
获取被测设备。
public void run (TestInformation testInfo,
ITestInvocationListener listener)
参数 |
---|
testInfo | TestInformation |
listener | ITestInvocationListener |
投掷 |
---|
DeviceNotAvailableException | |
设置设备
public void setDevice (ITestDevice device)
注入被测设备。
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-07-06 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]