MoblyBinaryHostTest
public
class
MoblyBinaryHostTest
extends Object
implements
IBuildReceiver,
IDeviceTest,
IRemoteTest,
IShardableTest,
ITestFilterReceiver
java.lang.Object | |
↳ | com.android.tradefed.testtype.mobly.MoblyBinaryHostTest |
Android 빌드 시스템 (Soong)에서 mobly python 바이너리 파일을 실행하기 위한 호스트 테스트
요약
공개 생성자 | |
---|---|
MoblyBinaryHostTest()
|
공개 메서드 | |
---|---|
void
|
addAllExcludeFilters(
제외할 테스트 필터의 |
void
|
addAllIncludeFilters(
포함할 테스트의 필터 |
void
|
addExcludeFilter(String filter)
제외할 테스트의 필터를 추가합니다. |
void
|
addIncludeFilter(String filter)
포함할 테스트의 필터를 추가합니다. |
void
|
clearExcludeFilters()
현재 추적된 모든 제외 필터를 삭제합니다. |
void
|
clearIncludeFilters()
현재 추적된 모든 포함 필터를 삭제합니다. |
ITestDevice
|
getDevice()
테스트 대상 기기를 가져옵니다. |
|
getExcludeFilters()
제외 필터의 현재 |
|
getIncludeFilters()
포함 필터의 현재 |
final
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
테스트를 실행하고 리스너에 결과를 보고합니다. |
void
|
setBuild(IBuildInfo buildInfo)
|
void
|
setDevice(ITestDevice device)
테스트 중인 기기를 삽입합니다. |
|
split(int shardCountHint)
실행하려는 shardCount도 제공하는 |
보호된 메서드 | |
---|---|
String[]
|
buildCommandLineArray(String filePath, String configPath,
|
String[]
|
buildCommandLineArray(String filePath, String configPath)
|
|
filterTests(String[] testListLines, String runName, ITestInvocationListener listener)
|
String
|
getLogDirAbsolutePath()
|
File
|
getLogDirFile()
|
boolean
|
processYamlTestResults(InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)
Mobly 테스트 결과를 파싱하고 결과 보고를 실행합니다. |
void
|
reportLogs(File logDir, ITestInvocationListener listener)
|
void
|
updateConfigFile(InputStream configInputStream, Writer writer)
|
공개 생성자
MoblyBinaryHostTest
public MoblyBinaryHostTest ()
공개 메서드
addAllExcludeFilters
public void addAllExcludeFilters (filters)
제외할 테스트의 필터 ERROR(/Set)
를 추가합니다.
매개변수 | |
---|---|
filters |
|
addAllIncludeFilters
public void addAllIncludeFilters (filters)
포함할 테스트의 필터 ERROR(/Set)
를 추가합니다.
매개변수 | |
---|---|
filters |
|
addExcludeFilter
public void addExcludeFilter (String filter)
제외할 테스트의 필터를 추가합니다.
매개변수 | |
---|---|
filter |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
포함할 테스트의 필터를 추가합니다.
매개변수 | |
---|---|
filter |
String |
clear제외Filters
public void clearExcludeFilters ()
현재 추적 중인 제외 필터를 모두 삭제합니다.
clearIncludeFilters
public void clearIncludeFilters ()
현재 추적 중인 포함 필터를 모두 삭제합니다.
실행
public final void run (TestInformation testInfo, ITestInvocationListener listener)
테스트를 실행하고 결과를 리스너에 보고합니다.
매개변수 | |
---|---|
testInfo |
TestInformation : 테스트를 실행하는 데 유용한 정보가 포함된 TestInformation 객체입니다. |
listener |
ITestInvocationListener : 테스트 결과의 ITestInvocationListener |
setDevice
public void setDevice (ITestDevice device)
테스트 대상 기기를 삽입합니다.
매개변수 | |
---|---|
device |
ITestDevice : 사용할 ITestDevice |
분할
publicsplit (int shardCountHint)
split()
의 대체 버전으로, 실행하려고 했던 샤딩 횟수도 제공합니다. 이는 때때로 임의로 결정할 수 없는 일부 테스트 실행기에 유용합니다.
매개변수 | |
---|---|
shardCountHint |
int : 시도된 샤드 수입니다. |
반환 값 | |
---|---|
|
개별적으로 실행할 하위 테스트 모음 또는 테스트가 현재 샤드할 수 없는 경우 null |
보호된 메서드
buildCommandLineArray
protected String[] buildCommandLineArray (String filePath, String configPath,tests)
매개변수 | |
---|---|
filePath |
String |
configPath |
String |
tests |
|
반환 값 | |
---|---|
String[] |
buildCommandLineArray
protected String[] buildCommandLineArray (String filePath, String configPath)
매개변수 | |
---|---|
filePath |
String |
configPath |
String |
반환 값 | |
---|---|
String[] |
필터 테스트
protectedfilterTests (String[] testListLines, String runName, ITestInvocationListener listener)
매개변수 | |
---|---|
testListLines |
String |
runName |
String |
listener |
ITestInvocationListener |
반환 값 | |
---|---|
|
getLogDirAbsolutePath
protected String getLogDirAbsolutePath ()
반환 값 | |
---|---|
String |
getLogDirFile
protected File getLogDirFile ()
반환 값 | |
---|---|
File |
processYamlTestResults
protected boolean processYamlTestResults (InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)
Mobly 테스트 결과를 파싱하고 결과 보고를 실행합니다.
매개변수 | |
---|---|
inputStream |
InputStream : Mobly 테스트 결과 파일을 읽는 InputStream 객체입니다. |
parser |
MoblyYamlResultParser : Mobly 테스트 결과를 처리하는 MoblyYamlResultParser 객체입니다. |
listener |
ITestInvocationListener : 다양한 보고를 실행하는 ITestInvocationListener 인스턴스 |
runName |
String : Mobly 테스트 바이너리 실행의 이름입니다(str). |
반환 값 | |
---|---|
boolean |
reportLogs
protected void reportLogs (File logDir, ITestInvocationListener listener)
매개변수 | |
---|---|
logDir |
File |
listener |
ITestInvocationListener |
updateConfigFile
protected void updateConfigFile (InputStream configInputStream, Writer writer)
매개변수 | |
---|---|
configInputStream |
InputStream |
writer |
Writer |
생성 값 | |
---|---|
HarnessRuntimeException |