I\'ve implemented an Instrumentation and an AndroidTestCase.
For my tests I need to connect to an external WIFI device. I want the testers to be able to specify an S
To expand on selalerer's answer, instrumentation test(s) can be started with arguments specified via Gradle:
./gradlew -Pandroid.testInstrumentationRunnerArguments.exampleArgument=hello connectedAndroidTest
You can retrieve instrumentation arguments using:
InstrumentationRegistry.getArguments().getString("exampleArgument") // returns "hello"