StaticTestData

@Incubating interface StaticTestData


Interface for retrieving all test data for a given test invocation for use by the DeviceTestRunTaskAction.

This is supplied to the DeviceTestRunTaskAction as a part of the DeviceTestRunParameters.testRunData

Summary

Public properties

String

The application ID of the test APK.

String

The class name for the Test Instrumentation Runner.

Map<StringString>

The arguments that should be passed to the InstrumentationRunner.

String

The instrumentation target application id.

AndroidVersion

The minimum SDK version required to test the given testApk.

File

The APK containing the tests.

List<File?>

List of the directories of all test sources in the testApk.

(<ERROR CLASS>) -> List<File>

Returns the APK files to install based on given Device Configuration (such as abi and screen density).

String?

The application ID of the APK under test.

String

The description of the APK under test.

Public properties

applicationId

val applicationIdString

The application ID of the test APK.

instrumentationRunner

val instrumentationRunnerString

The class name for the Test Instrumentation Runner.

instrumentationRunnerArguments

val instrumentationRunnerArgumentsMap<StringString>

The arguments that should be passed to the InstrumentationRunner.

instrumentationTargetPackageId

val instrumentationTargetPackageIdString

The instrumentation target application id.

If this is a self instrumenting test, then this value will be the same a applicationId. Otherwise, the instrumentation target will be the same as testedApplicationId.

minSdkVersion

val minSdkVersionAndroidVersion

The minimum SDK version required to test the given testApk.

testApk

val testApkFile

The APK containing the tests.

testDirectories

val testDirectoriesList<File?>

List of the directories of all test sources in the testApk.

testedApkFinder

val testedApkFinder: (<ERROR CLASS>) -> List<File>

Returns the APK files to install based on given Device Configuration (such as abi and screen density).

If no such APK can be found, an empty list is returned.

testedApplicationId

val testedApplicationIdString?

The application ID of the APK under test.

This can be null if there is no such APK. For example, android-test in library module does not have a tested-application.

testedDescription

val testedDescriptionString

The description of the APK under test.