InstrumentationArgsRunner
An AndroidJUnitRunner that copies selected instrumentation arguments to system properties before tests start, so app code that reads System.getProperty (for example a base URL override) sees values passed with -e or testInstrumentationRunnerArguments.
class AppTestRunner : InstrumentationArgsRunner(setOf("MOCK_SERVER_BASE_URL"))Content copied to clipboard
Parameters
forwardedArguments
The argument names to copy.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
open fun addMonitor(filter: IntentFilter?, result: Instrumentation.ActivityResult?, block: Boolean): Instrumentation.ActivityMonitor?
open fun addMonitor(cls: String?, result: Instrumentation.ActivityResult?, block: Boolean): Instrumentation.ActivityMonitor?
Link copied to clipboard
Link copied to clipboard
open fun callActivityOnCreate(activity: Activity?, icicle: Bundle?, persistentState: PersistableBundle?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun callActivityOnPostCreate(activity: Activity, savedInstanceState: Bundle?, persistentState: PersistableBundle?)
Link copied to clipboard
Link copied to clipboard
open fun callActivityOnRestoreInstanceState(activity: Activity, savedInstanceState: Bundle?, persistentState: PersistableBundle?)
Link copied to clipboard
Link copied to clipboard
open fun callActivityOnSaveInstanceState(activity: Activity, outState: Bundle, outPersistentState: PersistableBundle)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun execStartActivity(who: Context?, contextThread: IBinder?, token: IBinder?, target: Activity?, intent: Intent?, requestCode: Int): Instrumentation.ActivityResult?
open fun execStartActivity(who: Context?, contextThread: IBinder?, token: IBinder?, target: Activity?, intent: Intent?, requestCode: Int, options: Bundle?): Instrumentation.ActivityResult?
open fun execStartActivity(who: Context?, contextThread: IBinder?, token: IBinder?, target: Fragment?, intent: Intent?, requestCode: Int, options: Bundle?): Instrumentation.ActivityResult?
open fun execStartActivity(who: Context?, contextThread: IBinder?, token: IBinder?, target: String?, intent: Intent?, requestCode: Int, options: Bundle?): Instrumentation.ActivityResult?
open fun execStartActivity(who: Context?, contextThread: IBinder?, token: IBinder?, target: Activity?, intent: Intent?, requestCode: Int, options: Bundle?, user: UserHandle?): Instrumentation.ActivityResult?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun newActivity(clazz: Class<*>?, context: Context?, token: IBinder?, application: Application?, intent: Intent?, info: ActivityInfo?, title: CharSequence?, parent: Activity?, id: String?, lastNonConfigurationInstance: Any?): Activity?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun waitForMonitorWithTimeout(monitor: Instrumentation.ActivityMonitor?, timeOut: Long): Activity?