MoblyBinaryHost테스트
public class MoblyBinaryHostTest
extends Object
implements IRemoteTest , IDeviceTest , IBuildReceiver , ITestFilterReceiver , IShardableTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.mobly.MoblyBinaryHostTest |
Android 빌드 시스템(Soong)에서 Mobly Python 바이너리 파일을 실행하기 위한 호스트 테스트
요약
공개 생성자 | |
---|---|
MoblyBinaryHostTest () |
공개 메소드 | |
---|---|
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) 제외할 테스트 필터의 |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) 포함할 테스트에 대한 필터의 |
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, tests) buildCommandLineArray (String filePath, String configPath, tests) |
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) |
공개 생성자
MoblyBinaryHost테스트
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 |
클리어제외필터
public void clearExcludeFilters ()
현재 추적 중인 모든 제외 필터를 삭제합니다.
명확한IncludeFilters
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)
실행을 시도하는 shardCount도 제공하는 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 |
getLogDir파일
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 : str, Mobly 테스트 바이너리 실행의 이름입니다. |
보고 | |
---|---|
boolean |
보고서로그
protected void reportLogs (File logDir, ITestInvocationListener listener)
매개변수 | |
---|---|
logDir | File |
listener | ITestInvocationListener |
업데이트구성파일
protected void updateConfigFile (InputStream configInputStream, Writer writer)
매개변수 | |
---|---|
configInputStream | InputStream |
writer | Writer |
던지기 | |
---|---|
HarnessRuntimeException |