InstallApexModuleTargetPreparer
public class InstallApexModuleTargetPreparer
extends SuiteApkInstaller
요약
보호된 메서드 |
---|
void | addApksToTestFiles () |
void | addStagedReadyTimeoutForAdb ( cmd) addStagedReadyTimeoutForAdb ( cmd) |
void | addTimeoutMillisForBundletool ( extraArgs) addTimeoutMillisForBundletool ( extraArgs) |
void | checkApexActivation ( ITestDevice device) 모든 정점이 활성화되었는지 확인합니다. |
| collectApexInfoFromApexModules ( testAppFileNames, TestInformation testInfo) collectApexInfoFromApexModules ( testAppFileNames, TestInformation testInfo) 활성화 확인을 위해 apex 모듈에서 apex 정보를 수집합니다. |
| getApkInstalled () |
String | getBundletoolFileName () |
BundletoolUtil | getBundletoolUtil () |
String | getModuleKeywordFromApexPackageName (String packageName) apex 패키지 이름에서 키워드(예: com.android.tzdata.apex의 경우 'tzdata')를 가져옵니다. |
| getModulesFailToActivate ( activatedApexes) getModulesFailToActivate ( activatedApexes) 활성화에 실패한 모듈을 가져옵니다. |
| getSplitsForApks ( TestInformation testInfo, File moduleFile) 지정된 apk에 대한 분할을 추출하고 반환합니다. |
void | initBundletoolUtil ( TestInformation testInfo) 이 클래스의 bundletool 유틸리티를 초기화합니다. |
void | installTrain ( TestInformation testInfo, moduleFilenames) installTrain ( TestInformation testInfo, moduleFilenames) 장치에 apex가 포함된 간선 열차를 설치하려고 시도합니다. |
void | installUsingBundleTool ( TestInformation testInfo, testAppFileNames) installUsingBundleTool ( TestInformation testInfo, testAppFileNames) bundletool을 사용하여 메인라인 모듈을 설치하려고 시도합니다. |
void | installer ( TestInformation testInfo, testAppFileNames) installer ( TestInformation testInfo, testAppFileNames) 장치에 패키지 또는 분할 패키지 설치를 시도합니다. |
ITestDevice.ApexInfo | retrieveApexInfo (File testApexFile, DeviceDescriptor deviceDescriptor) 지정된 apex 파일에서 packageName 및 versionCode를 포함하는 ApexInfo를 검색합니다. |
필드
APEX_OPTION
protected static final String APEX_OPTION
APEX_SUFFIX
protected static final String APEX_SUFFIX
APK_SUFFIX
protected static final String APK_SUFFIX
APK_ZIP_OPTION
protected static final String APK_ZIP_OPTION
CHILD_SESSION_CREATION_CMD
protected static final String CHILD_SESSION_CREATION_CMD
PARENT_SESSION_CREATION_CMD
protected static final String PARENT_SESSION_CREATION_CMD
SPLIT_APKS_SUFFIX
protected static final String SPLIT_APKS_SUFFIX
mTrainFolder경로
protected File mTrainFolderPath
공개 생성자
InstallApexModuleTargetPreparer
public InstallApexModuleTargetPreparer ()
공개 방법
public getModulesToInstall (TestInformation testInfo)
장치에 미리 로드된 모듈을 기반으로 기차에 설치해야 하는 모듈을 가져옵니다. 미리 로드되지 않은 모듈은 설치되지 않습니다.
setIgnoreIfNotPreloaded
public void setIgnoreIfNotPreloaded (boolean skip)
setSkipApexTearDown
public void setSkipApexTearDown (boolean skip)
public void tearDown (TestInformation testInfo,
Throwable e)
매개변수 |
---|
testInfo | TestInformation |
e | Throwable |
보호된 메서드
addApksToTestFiles
protected void addApksToTestFiles ()
addStagedReadyTimeoutForAdb
protected void addStagedReadyTimeoutForAdb ( cmd)
protected void addTimeoutMillisForBundletool ( extraArgs)
checkApexActivation
protected void checkApexActivation (ITestDevice device)
모든 정점이 활성화되었는지 확인합니다.
매개변수 |
---|
device | ITestDevice : 테스트 중입니다. |
protected collectApexInfoFromApexModules ( testAppFileNames,
TestInformation testInfo)
활성화 확인을 위해 apex 모듈에서 apex 정보를 수집합니다.
매개변수 |
---|
testAppFileNames | : 설치할 모듈의 파일명 목록 |
testInfo | TestInformation : TestInformation |
보고 |
---|
| 입력 파일 목록에 있는 apex 모듈의 apexinfo를 포함하는 목록 |
getApk설치됨
protected getApkInstalled ()
protected String getBundletoolFileName ()
getModuleKeywordFromApexPackageName
protected String getModuleKeywordFromApexPackageName (String packageName)
apex 패키지 이름에서 키워드(예: com.android.tzdata.apex의 경우 'tzdata')를 가져옵니다.
매개변수 |
---|
packageName | String : apex 파일의 패키지 이름입니다. |
보고 |
---|
String | 문자열 apex 패키지 이름의 키워드입니다. |
getModulesFailToActivate
protected getModulesFailToActivate ( activatedApexes)
활성화에 실패한 모듈을 가져옵니다.
매개변수 |
---|
activatedApexes | : 장치의 활성 정점 집합 |
보고 |
---|
| 활성화에 실패한 입력 apex 모듈의 apexinfo가 포함된 목록입니다. |
protected getSplitsForApks (TestInformation testInfo,
File moduleFile)
지정된 apk에 대한 분할을 추출하고 반환합니다.
매개변수 |
---|
testInfo | TestInformation : TestInformation |
moduleFile | File : 분할을 추출할 모듈 파일입니다. |
protected void initBundletoolUtil (TestInformation testInfo)
이 클래스의 bundletool 유틸리티를 초기화합니다.
protected void installTrain (TestInformation testInfo,
moduleFilenames)
장치에 apex가 포함된 간선 열차를 설치하려고 시도합니다.
매개변수 |
---|
testInfo | TestInformation : TestInformation |
moduleFilenames | : 문자열 목록입니다. 설치할 기본 모듈의 파일 이름 목록입니다. |
protected void installUsingBundleTool (TestInformation testInfo,
testAppFileNames)
bundletool을 사용하여 메인라인 모듈을 설치하려고 시도합니다.
매개변수 |
---|
testInfo | TestInformation : TestInformation |
testAppFileNames | : 설치할 미리 로드된 모듈의 파일 이름입니다. |
protected void installer (TestInformation testInfo,
testAppFileNames)
장치에 패키지 또는 분할 패키지 설치를 시도합니다.
매개변수 |
---|
testInfo | TestInformation : 호출에 대한 TestInformation |
testAppFileNames | : 설치할 apk 및 해당 패키지입니다. |
검색ApexInfo
protected ITestDevice.ApexInfo retrieveApexInfo (File testApexFile,
DeviceDescriptor deviceDescriptor)
지정된 apex 파일에서 packageName 및 versionCode를 포함하는 ApexInfo를 검색합니다.
매개변수 |
---|
testApexFile | File : 정보를 검색하는 apex 파일입니다. |
deviceDescriptor | DeviceDescriptor |