MoblyBinaryHostTest테스트
public class MoblyBinaryHostTest
extends Object
implements IRemoteTest , IDeviceTest , IBuildReceiver , ITestFilterReceiver , IShardableTest
java.lang.객체 | |
↳ | 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) |
공개 생성자
MoblyBinaryHostTest테스트
public MoblyBinaryHostTest ()
공개 방법
addAllExcludeFilters
public void addAllExcludeFilters (filters)
제외할 테스트 필터의 ERROR(/Set)
추가합니다.
매개변수 | |
---|---|
filters |
addAllIncludeFilters
public void addAllIncludeFilters (filters)
테스트를 포함할 필터의 ERROR(/Set)
추가합니다.
매개변수 | |
---|---|
filters |
추가 제외 필터
public void addExcludeFilter (String filter)
제외할 테스트 필터를 추가합니다.
매개변수 | |
---|---|
filter | String |
추가 포함 필터
public void addIncludeFilter (String filter)
포함할 테스트에 대한 필터를 추가합니다.
매개변수 | |
---|---|
filter | String |
제외 필터 지우기
public void clearExcludeFilters ()
현재 추적된 모든 제외 필터를 삭제합니다.
포함 필터 지우기
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 |
getLogDirFile
protected File getLogDirFile ()
보고 | |
---|---|
File |
프로세스YamlTestResults
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 |
reportLogs
protected void reportLogs (File logDir, ITestInvocationListener listener)
매개변수 | |
---|---|
logDir | File |
listener | ITestInvocationListener |
업데이트 구성 파일
protected void updateConfigFile (InputStream configInputStream, Writer writer)
매개변수 | |
---|---|
configInputStream | InputStream |
writer | Writer |
던지기 | |
---|---|
HarnessRuntimeException |