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<String, String> |
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 |
File |
The APK containing the tests. |
List<File?> |
List of the directories of all test sources in the |
(<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
instrumentationRunner
val instrumentationRunner: String
The class name for the Test Instrumentation Runner.
instrumentationRunnerArguments
val instrumentationRunnerArguments: Map<String, String>
The arguments that should be passed to the InstrumentationRunner.
instrumentationTargetPackageId
val instrumentationTargetPackageId: String
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 minSdkVersion: AndroidVersion
The minimum SDK version required to test the given testApk
.
testDirectories
val testDirectories: List<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 testedApplicationId: String?
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.